Does anybody know how to get PTX assembler annotated with C/C++ code with new LLVM back-end?
Can easily get it with CUDA 4.0 or earlier but NVCC rejects all my flags after upgrading CUDA toolkit to version 4.2.
Does anybody know how to get PTX assembler annotated with C/C++ code with new LLVM back-end?
Can easily get it with CUDA 4.0 or earlier but NVCC rejects all my flags after upgrading CUDA toolkit to version 4.2.
Does nvcc.exe --opencc-options -LIST:source=on -ptx kernel.cu work? I have installed cuda 4.2 and this command generates *.ptx file with commented C code between ptx assembler lines.
You may want to use the --source-in-ptx
and -G
nvcc flags to see your original code in the PTX file.