Double precision floating point in CUDA

cuda-dev picture cuda-dev · May 12, 2010 · Viewed 25.4k times · Source

Does CUDA support double precision floating point numbers?

Also, what are the reasons for the same?

Answer

Paul R picture Paul R · May 12, 2010

If your GPU has compute capability 1.3 then you can do double precision. You should be aware though that 1.3 hardware has only one double precision FP unit per MP, which has to be shared by all the threads on that MP, whereas there are 8 single precision FPUs, so each active thread has its own single precision FPU. In other words you may well see 8x worse performance with double precision than with single precision.