-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cmake preset and env script for building celeritas on Zeus * vecgeom and geant4 version used by AtlasExternals * check geant4 version * include G4Version.hh * if guards for G4Backtrace * make sure that we use gcc11.2, removed duplicate cmake preset * use if preprocess directives as if constexpr still checks that the expression is valid * fix compatibility issue with geant4 10.6 api
- Loading branch information
Showing
9 changed files
with
281 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"version": 3, | ||
"cmakeMinimumRequired": {"major": 3, "minor": 21, "patch": 0}, | ||
"configurePresets": [ | ||
{ | ||
"name": ".base", | ||
"hidden": true, | ||
"inherits": ["full"], | ||
"binaryDir": "${sourceDir}/build-${presetName}", | ||
"generator": "Ninja", | ||
"cacheVariables": { | ||
"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"}, | ||
"CELERITAS_USE_HepMC3": {"type": "BOOL", "value": "ON"}, | ||
"CELERITAS_USE_CUDA": {"type": "BOOL", "value": "ON"}, | ||
"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": "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_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_PREFIX_PATH": "/bld3/build/celeritas/geant4/geant4-v10.6.0-install/lib64;/bld3/build/celeritas/VecGeom/install-v1.1.20/lib64/cmake;/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc11-opt/2023-02-13T2101/AthenaExternals/23.0.17/InstallArea/x86_64-centos7-gcc11-opt/lib/cmake;/cvmfs/sft.cern.ch/lcg/views/LCG_102b_ATLAS_11/x86_64-centos7-gcc11-opt/lib64/cmake;/cvmfs/sft.cern.ch/lcg/views/LCG_102b_ATLAS_11/x86_64-centos7-gcc11-opt/cmake", | ||
"CMAKE_CXX_COMPILER": "g++", | ||
"CMAKE_CXX_FLAGS_RELEASE": "-O3 -DNDEBUG -march=cascadelake -mtune=cascadelake", | ||
"CMAKE_EXPORT_COMPILE_COMMANDS": {"type": "BOOL", "value": "ON"} | ||
} | ||
}, | ||
{ | ||
"name": "base", | ||
"displayName": "Zeus default options (GCC, debug)", | ||
"inherits": [".base"], | ||
"binaryDir": "${sourceDir}/build" | ||
}, | ||
{ | ||
"name": "reldeb-novg", | ||
"displayName": "Zeus release mode", | ||
"inherits": [".reldeb", ".base"], | ||
"cacheVariables": { | ||
"CELERITAS_USE_VecGeom": {"type": "BOOL", "value": "OFF"} | ||
} | ||
}, | ||
{ | ||
"name": "reldeb", | ||
"displayName": "Zeus release mode", | ||
"inherits": [".reldeb", ".base"] | ||
}, | ||
{ | ||
"name": "ndebug-novg", | ||
"displayName": "Zeus release mode", | ||
"inherits": [".ndebug", ".base"], | ||
"cacheVariables": { | ||
"CELERITAS_USE_VecGeom": {"type": "BOOL", "value": "OFF"} | ||
} | ||
}, | ||
{ | ||
"name": "ndebug", | ||
"displayName": "Zeus release mode", | ||
"inherits": [".ndebug", ".base"] | ||
} | ||
], | ||
"buildPresets": [ | ||
{ | ||
"name": "base", | ||
"configurePreset": "base", | ||
"jobs": 8, | ||
"nativeToolOptions": ["-k0"] | ||
}, | ||
{"name": "ndebug", "configurePreset": "ndebug", "inherits": "base"}, | ||
{"name": "ndebug-novg", "configurePreset": "ndebug-novg", "inherits": "base"}, | ||
{"name": "reldeb", "configurePreset": "reldeb", "inherits": "base"}, | ||
{"name": "reldeb-novg", "configurePreset": "reldeb-novg", "inherits": "base"} | ||
], | ||
"testPresets": [ | ||
{ | ||
"name": "base", | ||
"configurePreset": "base", | ||
"output": {"outputOnFailure": true}, | ||
"execution": {"noTestsAction": "error", "stopOnFailure": false, "jobs": 8} | ||
}, | ||
{"name": "ndebug", "configurePreset": "ndebug", "inherits": "base"}, | ||
{"name": "ndebug-novg", "configurePreset": "ndebug-novg", "inherits": "base"}, | ||
{"name": "reldeb", "configurePreset": "reldeb", "inherits": "base"}, | ||
{"name": "reldeb-novg", "configurePreset": "reldeb-novg", "inherits": "base"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh -e | ||
|
||
export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase | ||
# we need to clear exit on unchecked error for atlasLocalSetup... | ||
set +e | ||
source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh | ||
lsetup "views LCG_102b_ATLAS_11 x86_64-centos7-gcc11-opt" | ||
asetup none,gcc112,cmakesetup,siteroot=cvmfs | ||
set -e | ||
|
||
# not in standard Atlas build env but we need it for cuda-enabled vecgeom | ||
module load cuda/11.8.0 | ||
source /bld3/build/celeritas/geant4/geant4-v10.6.0-install/bin/geant4.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.