NVCC hanging (compiling a single .cu to PTEX)

Hi NVidia

NVCC seems to be hanging on me. This is compiling to PTEX (ie -ptx option) for use in Opitx. With a change in code it goes from ~3seconds compile time of a single .cu file, to hang (ie I kill it after 5mins).

Here is the command I’m running
nvcc -ptx -m64 -use_fast_math --expt-relaxed-constexpr -restrict -D_USE_MATH_DEFINES -I “C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\include” -I “C:\ProgramData\NVIDIA Corporation\OptiX SDK 7.0.0\include” -I “./” -o “renderer.ptx” ./cuda/renderer.cu

I’m on Windows, Driver = 456.43
Optix 7.0
Visual Studio 2017
And this issue occurs for me on Cuda versions v10.2 and v11.1

What should my next steps be? (eg try other compile options, strip the code down and file a bug, try without optix, etc…)

Thanks
Brian

I’ve found the issue!
My functions were marked as forceinline and I was triggering recursion. I’ve since removed forceinline and things are working again.
Cheers!