Menu

Faster Compilation Times for CUDA Code

If code in a .cu file calls CUDA Runtime API functions but contains no ‘__device__’ code, rename the file to .cpp and compile it with the host compiler. You’ll get faster compilation time, which adds up in a large project.

-Courtesy of Mark Harris at NVIDIA