CMake compiler debugger flag when CUDA is enabled.
Created by: kyungjoo-kim
I usually set this cmake flag CMAKE_BUILD_TYPE=DEBUG
to put debugging flag "-g" in Trilinos compiling. However, this does not include "-G" (this put debugging symbols on device code. without this flag, I cannot trace cuda device code).
It took a while that I found that "-G" was not used. So, somehow this additional debug flag should be translated into Trilinos cmake. There are two options:
- Trilinos cmake recorgnize CUDA and when it is debug build, put "-G".
- Kokkos translates the cmake build type option into "-G".
How do we resolve this ?