Skip to content

Commit

Permalink
Merge pull request #300 from IPPL-framework/299-compilation-error-in-…
Browse files Browse the repository at this point in the history
…debug-mode-for-gpu

Fix compilation error in debug mode for GPUs
  • Loading branch information
mohsensadr authored Jun 12, 2024
2 parents 5bb8192 + 9bc606b commit db2ea88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINGO} -O3 -g ")
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
#set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g")

if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
if (NOT "${IPPL_PLATFORMS}" STREQUAL "CUDA" AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
# Use sanitizer flags for GCC or Clang only
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address,undefined")
endif ()
Expand Down

0 comments on commit db2ea88

Please sign in to comment.