Change to use -O0 instead of -O1 in debug build. (#1949)
* Change to use -O0 instead of -O1 in debug build.
* Use -O1 for device code to avoid linking issue in debug build.
[ROCm/rccl commit: feee02ca61]
This commit is contained in:
committed by
GitHub
parent
6ade586fdc
commit
5f16e69d8e
@@ -13,7 +13,7 @@ else()
|
||||
endif()
|
||||
|
||||
if (NOT DEFINED ENV{CXXFLAGS})
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-g -O1")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
||||
endif()
|
||||
|
||||
@@ -24,6 +24,6 @@ else()
|
||||
endif()
|
||||
|
||||
if (NOT DEFINED ENV{CFLAGS})
|
||||
set(CMAKE_C_FLAGS_DEBUG "-g -O1")
|
||||
set(CMAKE_C_FLAGS_DEBUG "-g -O0")
|
||||
set(CMAKE_C_FLAGS_RELEASE "-O3")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user