Hi,
Does anyone have a list of acceptable values for --optimize and --ptxas-options compiler option? I cannot find such information from the compiler documentation nvcc_2.1.pdf. I tried using 0 for --optimize, which resulted in nvcc failing to execute.
Thanks,
e.ping
January 30, 2009, 8:07pm
2
Try running the command line assembler (“ptxas --help”) to display the valid ptxas options.
As for the optimize flags, this compiles for me with CUDA 2.0:
[font=“Courier New”]nvcc -O0 test.cu[/font]
as does this:
[font=“Courier New”]nvcc --optimize=0 test.cu[/font]
and even this:
[font=“Courier New”]nvcc -O65536 test.cu[/font]
Running -O0 and -O3 for a transpose kernel yielded identical .cubin files, but I don’t know if that’s true in general. I haven’t tried with CUDA 2.1.
Jeremy
Try running the command line assembler (“ptxas --help”) to display the valid ptxas options.
As for the optimize flags, this compiles for me with CUDA 2.0:
[font=“Courier New”]nvcc -O0 test.cu[/font]
as does this:
[font=“Courier New”]nvcc --optimize=0 test.cu[/font]
and even this:
[font=“Courier New”]nvcc -O65536 test.cu[/font]
Running -O0 and -O3 for a transpose kernel yielded identical .cubin files, but I don’t know if that’s true in general. I haven’t tried with CUDA 2.1.
Jeremy
Thank you very much Jeremy. Your reply answers my question.
Tigga
January 31, 2009, 12:36pm
4
I was under the impression that the optimize flags only effected any C code in the file. Might be wrong.