This command works fine (with the -G
option):
nvcc test.cu -o test -Iinclude -I../boost_1_79_0 -std=c++20 --expt-relaxed-constexpr -DNDEBUG -arch=sm_86 -G
But if I remove the -G
option, the nvcc compiler will take a few minutes to compile. I also tried to replace -G
with -Xptxas -O0
that turns off all the optimization, but it still got in stuck.
When it gets stuck, if I press ctrl + c
, it outputs: nvcc error : 'cicc' died due to signal 2
My code uses a lot of CPP20-featured templates. My NVCC version is V12.0.76
, and g++ version is 11.3.0
.
What is the possible reason for it?
I expect it will compile and work normally for both debug and release modes.