Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting name in nvrtc create program #299

Open
torsteingrindvik opened this issue Nov 16, 2024 · 0 comments
Open

Allow setting name in nvrtc create program #299

torsteingrindvik opened this issue Nov 16, 2024 · 0 comments

Comments

@torsteingrindvik
Copy link

https://docs.rs/cudarc/0.12.1/cudarc/nvrtc/result/fn.create_program.html#

I found that in Nsight Compute if I try to correlate a kernel's SASS/PTX with actual source code, the file must be named "default_program".

image

The reason for this is because when using the create_program API the underlying nvrtc call is given a null ptr as the name, which then sets it to "default_program": https://docs.nvidia.com/cuda/nvrtc/#_CPPv418nvrtcCreateProgramP12nvrtcProgramPKcPKciPPCKcPPCKc

It would be nice to be able to set the name via the mid level APIs instead of using the lowest level APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant