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

Support mangling and demangling independently of programs #679

Open
eyalroz opened this issue Sep 14, 2024 · 0 comments
Open

Support mangling and demangling independently of programs #679

eyalroz opened this issue Sep 14, 2024 · 0 comments
Labels

Comments

@eyalroz
Copy link
Owner

eyalroz commented Sep 14, 2024

CUDA NVRTC programs have the API function:

nvrtcResult nvrtcGetLoweredName(
    nvrtcProgram prog,
    const char *const name_expression,
    const char** lowered_name);

which mangle a function's name (or its signature). Unfortunately:

  • This requires a program, although mangling should in in principle be uniform over all programs - independent of the NVRTC program.
  • No demangling :-(

We should try and offer a program-independent mangling and de-mangling functionality which covers everything CUDA does with mangled names (which is probably not just plain vanilla Itanium ABI).

@eyalroz eyalroz added the task label Sep 14, 2024
eyalroz added a commit that referenced this issue Oct 26, 2024
* Added demangling support using NVIDIA's (nearly-hidden) libcufilt
* Updated the `execution_control` example to not fail needlessly when getting the full signature as the demangled name
* Clarified kernel-name-mismatch error messages in `execution_control`
eyalroz added a commit that referenced this issue Oct 26, 2024
* Added demangling support using NVIDIA's (nearly-hidden) libcufilt
* Updated the `execution_control` example to not fail needlessly when getting the full signature as the demangled name
* Clarified kernel-name-mismatch error messages in `execution_control`
eyalroz added a commit that referenced this issue Oct 28, 2024
* Added demangling support using NVIDIA's (nearly-hidden) libcufilt
* Updated the `execution_control` example to not fail needlessly when getting the full signature as the demangled name
* Clarified kernel-name-mismatch error messages in `execution_control`
eyalroz added a commit that referenced this issue Nov 17, 2024
* Added demangling support using NVIDIA's (nearly-hidden) libcufilt
* Updated the `execution_control` example to not fail needlessly when getting the full signature as the demangled name
* Clarified kernel-name-mismatch error messages in `execution_control`
* Caveat: Can't locate `nv_decode.h` on Windows - is that even installed?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant