File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
GPU/GPUTracking/Standalone Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
3333
3434if (BUILD_DEBUG)
3535 set (CMAKE_CXX_FLAGS "-O0 -ggdb" )
36+ set (CMAKE_BUILD_TYPE DEBUG)
3637else ()
3738 set (CMAKE_CXX_FLAGS "-O3 -march=native -ggdb -minline-all-stringops -ftracer -funroll-loops -fprefetch-loop-arrays -ffast-math -fno-stack-protector -Wno-error -Wall -Wextra -Wshadow -Wno-unused-function -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-unknown-pragmas -Wno-write-strings" )
3839 add_definitions (-DNDEBUG )
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ if(ENABLE_CUDA)
5252 # Forward CXX flags to CUDA C++ Host compiler (for warnings, gdb, etc.)
5353 STRING (REGEX REPLACE "\- std=[^ ]*" "" CMAKE_CXX_FLAGS_NOSTD ${CMAKE_CXX_FLAGS} ) # Need to strip c++17 imposed by alidist defaults
5454 set (CMAKE_CUDA_FLAGS "-Xcompiler \" ${CMAKE_CXX_FLAGS_NOSTD} \" --expt-relaxed-constexpr -Xptxas -v" )
55- set (CMAKE_CUDA_FLAGS_DEBUG "-Xcompiler \" ${CMAKE_CXX_FLAGS_DEBUG} \" -Xptxas -O0 -Xcompiler -O0" )
55+ set (CMAKE_CUDA_FLAGS_DEBUG "-lineinfo - Xcompiler \" ${CMAKE_CXX_FLAGS_DEBUG} \" -Xptxas -O0 -Xcompiler -O0" )
5656 if (NOT CMAKE_BUILD_TYPE STREQUAL "DEBUG" )
5757 set (CMAKE_CUDA_FLAGS_${CMAKE_BUILD_TYPE} "-Xcompiler \" ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE} }\" -Xptxas -O4 -Xcompiler -O4 -use_fast_math" )
5858 endif ()
You can’t perform that action at this time.
0 commit comments