Initialize CMAKE_CUDA_FLAGS_DEBUG to `-g -G`
Currently, CMAKE_CUDA_FLAGS_DEBUG
is initialized to -g
, which for Cuda means to generate debug symbols for the host code.
Would it make sense to initialize it to -g -G
, which also generated debug information for the device code? Or is it disabled on purpose, because it turns off optimizations?
4.2.3.2. --debug (-g)
Generate debug information for host code.
4.2.3.3. --device-debug (-G)
Generate debug information for device code.
This option turns off all optimizations on device code. It is not intended for profiling; use --generate-line-info > instead for profiling.