NVCC编译指令

NVCC编译选项

Posted by Memory on March 14, 2017

NVCC Build Configurations

nvcc <filename>.cu [-o <executable>]

  • Builds release mode
    nvcc -g <filename>.cu
  • Build debug mode
  • can debug host code but not device code
    ` nvcc -deviceemu .cu`
  • Builds device emulation mode
  • All code runs on CPU, no debug symbols
    ` nvcc -deviceemu -g .cu`
  • Builds debug device emulation mode
  • All code runs on CPU,with debug symbols