Hi.
I have two questions.
Q1
I would like to compile *.cu to *.ptx.
I have used NVRTC to compile ptx in a few sm versions. (sm_50, sm_52, sm_53)
However, when I tried that in sm_53, the ptx file was empty code.
Compile options of them is the same except for -arch
Do you have any idea what was causes this?
Here is all options
-I/<include directories>
-std=c++11
-arch compute_xx
-use_fast_math
-lineinfo
-default-device
-rdc true
-D__x86_64
Q2
I tried to compile .cu to .ptx using NVCC compiler.
nvcc can generate ptx in all sm version.
But, the ptx generated by NVCC is different code from NVRTC.
Does nvcc has a different compile process from nvrtc?
Here is NVCC compile options.
-I/<include directories>
-std=c++11
-arch compute_xx
-use_fast_math
-lineinfo
-default-device
-rdc true
-m64
-D__x86_64
Thanks.