Skip to content

Commit

Permalink
Open Update Perlmutter CMake profile and env script (celeritas-proje…
Browse files Browse the repository at this point in the history
  • Loading branch information
esseivaju committed Nov 30, 2023
1 parent 1dc8da2 commit 9cc4998
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
24 changes: 19 additions & 5 deletions scripts/cmake-presets/perlmutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"binaryDir": "${sourceDir}/build-${presetName}",
"generator": "Ninja",
"cacheVariables": {
"BUILD_SHARED_LIBS": {"type": "BOOL", "value": "OFF"},
"BUILD_SHARED_LIBS": {"type": "BOOL", "value": "ON"},
"CELERITAS_BUILD_DOCS": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_OpenMP": {"type": "BOOL", "value": "ON"},
"CELERITAS_USE_Geant4": {"type": "BOOL", "value": "ON"},
Expand All @@ -18,16 +18,15 @@
"CELERITAS_USE_HIP": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_JSON": {"type": "BOOL", "value": "ON"},
"CELERITAS_USE_MPI": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_ROOT": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_ROOT": {"type": "BOOL", "value": "ON"},
"CELERITAS_USE_SWIG": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_VecGeom": {"type": "BOOL", "value": "ON"},
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wno-psabi -pedantic -pedantic-errors",
"CMAKE_CUDA_FLAGS": "-Xcompiler -Wno-psabi",
"CMAKE_CUDA_FLAGS": "-lineinfo -Xptxas=-v -Xcompiler -Wno-psabi",
"CMAKE_CUDA_ARCHITECTURES": {"type": "STRING", "value": "80"},
"CMAKE_CXX_STANDARD": {"type": "STRING", "value": "17"},
"CMAKE_CXX_EXTENSIONS": {"type": "BOOL", "value": "OFF"},
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install-${presetName}",
"CMAKE_CXX_COMPILER": "CC",
"CMAKE_CXX_FLAGS_RELEASE": "-O3 -DNDEBUG -march=znver3 -mtune=znver3",
"CMAKE_EXPORT_COMPILE_COMMANDS": {"type": "BOOL", "value": "ON"}
}
Expand All @@ -38,6 +37,15 @@
"inherits": [".base"],
"binaryDir": "${sourceDir}/build"
},
{
"name": "base-novg",
"displayName": "Perlmutter default options (GCC, debug)",
"inherits": [".debug", ".base"],
"binaryDir": "${sourceDir}/build-novg",
"cacheVariables": {
"CELERITAS_USE_VecGeom": {"type": "BOOL", "value": "OFF"}
}
},
{
"name": "reldeb-novg",
"displayName": "Perlmutter release mode",
Expand All @@ -56,13 +64,17 @@
"displayName": "Perlmutter release mode",
"inherits": [".ndebug", ".base"],
"cacheVariables": {
"BUILD_SHARED_LIBS":{"type": "BOOL", "value": "ON"},
"CELERITAS_USE_VecGeom": {"type": "BOOL", "value": "OFF"}
}
},
{
"name": "ndebug",
"displayName": "Perlmutter release mode",
"inherits": [".ndebug", ".base"]
"inherits": [".ndebug", ".base"],
"cacheVariables": {
"BUILD_SHARED_LIBS":{"type": "BOOL", "value": "ON"}
}
}
],
"buildPresets": [
Expand All @@ -72,6 +84,7 @@
"jobs": 8,
"nativeToolOptions": ["-k0"]
},
{"name": "base-novg", "configurePreset": "base-novg", "inherits": "base"},
{"name": "ndebug", "configurePreset": "ndebug", "inherits": "base"},
{"name": "ndebug-novg", "configurePreset": "ndebug-novg", "inherits": "base"},
{"name": "reldeb", "configurePreset": "reldeb", "inherits": "base"},
Expand All @@ -84,6 +97,7 @@
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": false, "jobs": 8}
},
{"name": "base-novg", "configurePreset": "base-novg", "inherits": "base"},
{"name": "ndebug", "configurePreset": "ndebug", "inherits": "base"},
{"name": "ndebug-novg", "configurePreset": "ndebug-novg", "inherits": "base"},
{"name": "reldeb", "configurePreset": "reldeb", "inherits": "base"},
Expand Down
1 change: 1 addition & 0 deletions scripts/env/perlmutter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ fi

. ${_SPACK_SOURCE_FILE}
spack env activate celeritas
export LD_LIBRARY_PATH=$SPACK_ENV/.spack-env/view/lib64:$LD_LIBRARY_PATH

0 comments on commit 9cc4998

Please sign in to comment.