Mask kernel function name from the SASS text?

Hello,

Do you know how to hide the kernel functions displayed from the SASS text? I added “-Xcompiler -fvisibility=hidden” as additional command from VS2022 but it seems that it does not recognize the command itself.

Thanks

I’m not sure what that means. I guess you want to eliminate some or all of the information displayed by e.g. a tool like cuobjdump -sass ...

I don’t know of a method to do that directly.

If you wanted to eliminate SASS info, you could modify your compilation settings to only produce PTX, not SASS. If you wanted to eliminate PTX info, you could modify your compilation settings to only produce SASS, not PTX. If you wanted to eliminate both PTX and SASS, you could switch to NVRTC, and go back to the source code. Since the source code is handled by your host code in NVRTC, if you also wanted to reduce the visibility of that, you could use any method you like to encrypt it, and then decrypt it shortly before processing/using with NVRTC.

There may be other methods as well.

that is a switch which forwards the next switch/option/command to the host compiler. The host compiler, whether cl.exe, gcc, clang, or whatever, knows nothing about SASS or its visibility. So I don’t think that would be a useful avenue. AFAIK, -fvisibility-hidden is a switch that is unique to gcc (in fact, I believe -f switch is unique to gcc i.e. not recognized by cl.exe) so I am not surprised that VS2022 cl.exe does not recognize it.