Skip to content

Commit

Permalink
Merge branch 'v100_debug_toolchain' into 'main'
Browse files Browse the repository at this point in the history
Add debug toolchain for v100

See merge request gysela-developpers/gyselalibxx!675
  • Loading branch information
gdgirard committed Sep 2, 2024
1 parent d22ace3 commit f0737c5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions toolchains/v100.persee/debug_toolchain.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

include(${CMAKE_CURRENT_LIST_DIR}/../cicd_default_toolchain.cmake)

# CMake options
set(CMAKE_BUILD_TYPE Debug)

# Compiler options
set(CMAKE_CXX_COMPILER ${PROJECT_SOURCE_DIR}/vendor/kokkos/bin/nvcc_wrapper)
set(CMAKE_CXX_FLAGS "-g -Wall -Werror -Wno-sign-compare -Xcudafe --diag_suppress=unsigned_compare_with_zero -Xcudafe --diag_suppress=integer_sign_change")

# Kokkos options
set(Kokkos_ENABLE_SERIAL ON CACHE BOOL "Allow serial code to run" FORCE)
set(Kokkos_ENABLE_CUDA ON CACHE BOOL "Activate GPU usage via cuda" FORCE)
set(Kokkos_ARCH_VOLTA70 ON CACHE BOOL "Indicate that the GPU architecture is V100" FORCE)

# Activate/deactivate parts of the code
if (DEFINED ENV{DDC_BUILD_TESTING})
set(DDC_BUILD_TESTS $ENV{DDC_BUILD_TESTING})
endif()
set(ACTIVATE_RESTART_TESTS OFF)

0 comments on commit f0737c5

Please sign in to comment.