Need help profiling an optix application

Yes, I’m asking for the host compiler version because not all combinations of CUDA Toolkit and MSVS versions are compatible.

Your configuration looks fine. There might be issues when using an Nsight Version which is older than the OptiX SDK/Display Driver combination but you’re already on the newest ones.

I don’t start Nsight Compute from inside the MSVS IDE, so that would be one thing to try, running Nsight Compute as administrator as standalone application.

Other than that, since you’re running the most recent driver release for your graphics board, you could also upgrade your OptiX SDK version, even to the newest available 8.0.0 release.

(OptiX SDK 7.5.0 had a small issue under Linux with the error reporting which is fixed in newer versions:
https://forums.developer.nvidia.com/t/earlier-feedback-for-syntax-errors-in-shaders/230343/4 )

I also skipped CUDA 11.7 and used 11.8 without issues for quite some time and I’m currently using CUDA 12.1 for my OptiX work.

I really don’t know what else could be responsible for not finding the CUDA source code.
If the PTX code contains the right CUDA source file information from the lineinfo, then that should be known to Nsight Compute because that is part of the OptiX input source code and if you say that you explicitly set the CUDA source code locations inside Nsight Compute and that didn’t find them, then I don’t know.

I would need to check with the same drivers and Nsight Compute version if that works on my system.