OptiX pipelines do not show up in Nsight Compute

Depending on the display driver you’re using, you might need to set the environment variable OPTIX_FORCE_DEPRECATED_LAUNCHER to 1 to let the user defined OptiX device functions appear inside Nsight Compute. This is a temporary workaround and will be solved in the future.

Here also read especially the last bullet point about the line info and debugLevel setting which is important for profiling:
https://raytracing-docs.nvidia.com/optix7/guide/index.html#program_pipeline_creation#7017

Related topic:
https://forums.developer.nvidia.com/t/debugging-is-broken-after-updating-to-cuda-12-1/245616