I'm getting the following message:
Double is not supported. Demoting to float
I added the following command to the compiler : -arch=sm_20
but im still getting that message.
im using sdk 4 with Nvida G105M.
What does this message mean?
The G105M is only compute capability 1.1 and so lacks any double precision floating point capability. You need a device with at least compute capability 1.3 if you really do need double precision, and even then it's generally not a good idea, as it tends to be a major performance killer on all but some of the newer, high end GPUs.
From your comment that you are using "sdk 4" I infer you are trying to compile an SDK sample. The SDK makefile already contains a variety of -arch or -gencode command line settings for nvcc, so even if you add -arch=sm_20, there are probably other options on the command line that are causing the compiler to generate pre-sm_13 code, which is probably why it is warning.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With