Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions scripts/cmake-presets/faraday.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"CMAKE_CXX_FLAGS": "-Wall -Wextra -pedantic -Werror -fdiagnostics-color=always",
"CMAKE_CXX_STANDARD": "20",
"CMAKE_CXX_EXTENSIONS": {"type": "BOOL", "value": "OFF"},
"CMAKE_EXE_LINKER_FLAGS": "-Wl,-z,defs",
"CMAKE_SHARED_LINKER_FLAGS": "-Wl,-z,defs",
"CMAKE_HIP_FLAGS": "-Wall -Wextra -pedantic -Werror -fdiagnostics-color=always",
"CMAKE_HIP_PLATFORM": "amd",
"CMAKE_HIP_ARCHITECTURES": "gfx942",
Expand Down
24 changes: 13 additions & 11 deletions scripts/cmake-presets/hudson.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
"CMAKE_EXPORT_COMPILE_COMMANDS": {"type": "BOOL", "value": "ON"}
}
},
{
"name": ".orange",
"hidden": true,
"cacheVariables": {
"CELERITAS_USE_VecGeom": {"type": "BOOL", "value": "OFF"},
"CMAKE_EXE_LINKER_FLAGS": "-Wl,-z,defs",
"CMAKE_SHARED_LINKER_FLAGS": "-Wl,-z,defs"
}
},
{
"name": "release",
"displayName": "Build with full optimizations (VecGeom)",
Expand All @@ -42,26 +51,19 @@
{
"name": "release-orange",
"displayName": "Build with full optimizations (ORANGE)",
"inherits": ["release"],
"cacheVariables": {
"CELERITAS_USE_VecGeom": {"type": "BOOL", "value": "OFF"}
}
"inherits": [".orange", "release"]
},
{
"name": "reldeb-orange",
"displayName": "Build with optimizations, but enable host debugging (ORANGE)",
"inherits": ["reldeb"],
"cacheVariables": {
"CELERITAS_USE_VecGeom": {"type": "BOOL", "value": "OFF"}
}
"inherits": [".orange", "reldeb"]
},
{
"name": "debug-orange",
"displayName": "Build without optimization, enabling full host debugging (ORANGE)",
"inherits": [".base", ".debug"],
"inherits": [".orange", ".base", ".debug"],
"cacheVariables": {
"CELERITAS_DEVICE_DEBUG":{"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_VecGeom": {"type": "BOOL", "value": "OFF"}
"CELERITAS_DEVICE_DEBUG":{"type": "BOOL", "value": "OFF"}
}
},
{
Expand Down
97 changes: 97 additions & 0 deletions scripts/cmake-presets/milan0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"version": 3,
"cmakeMinimumRequired": {"major": 3, "minor": 21, "patch": 0},
"configurePresets": [
{
"name": ".base",
"hidden": true,
"inherits": ["full", ".spack-base"],
"binaryDir": "/scratch/$env{USER}/build/celeritas-${presetName}",
"generator": "Ninja",
"cacheVariables": {
"BUILD_SHARED_LIBS": {"type": "BOOL", "value": "ON"},
"CELERITAS_BUILD_DOCS": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_CUDA": {"type": "BOOL", "value": "ON"},
"CELERITAS_USE_HIP": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_OpenMP": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_MPI": {"type": "BOOL", "value": "OFF"},
"CELERITAS_USE_ROOT": {"type": "BOOL", "value": "OFF"},
"CMAKE_CXX_FLAGS": "-Wall -Wextra -pedantic -Werror -Wno-stringop-overread",
"CMAKE_CXX_STANDARD": "20",
"CMAKE_CXX_COMPILER": "/usr/bin/c++",
"CMAKE_CXX_EXTENSIONS": {"type": "BOOL", "value": "OFF"},
"CMAKE_CUDA_FLAGS": "-Werror all-warnings",
"CMAKE_CUDA_HOST_COMPILER": "/usr/bin/c++",
"CMAKE_CUDA_ARCHITECTURES": "80",
"CMAKE_INSTALL_PREFIX": "/scratch/$env{USER}/install/celeritas-${presetName}",
"CMAKE_EXPORT_COMPILE_COMMANDS": {"type": "BOOL", "value": "ON"}
}
},
{
"name": ".orange",
"hidden": true,
"cacheVariables": {
"CELERITAS_USE_VecGeom": {"type": "BOOL", "value": "OFF"},
"CMAKE_EXE_LINKER_FLAGS": "-Wl,-z,defs",
"CMAKE_SHARED_LINKER_FLAGS": "-Wl,-z,defs"
}
},
{
"name": "release",
"displayName": "Build with full optimizations (VecGeom)",
"inherits": [".base", ".ndebug"]
},
{
"name": "reldeb",
"displayName": "Build with optimizations, but enable host debugging (VecGeom)",
"inherits": [".base", ".reldeb"],
"cacheVariables": {
"CELERITAS_DEVICE_DEBUG":{"type": "BOOL", "value": "OFF"}
}
},
{
"name": "release-orange",
"displayName": "Build with full optimizations (ORANGE)",
"inherits": [".orange", "release"]
},
{
"name": "reldeb-orange",
"displayName": "Build with optimizations, but enable host debugging (ORANGE)",
"inherits": [".orange", "reldeb"]
},
{
"name": "debug-orange",
"displayName": "Build without optimization, enabling full host debugging (ORANGE)",
"inherits": [".orange", ".base", ".debug"],
"cacheVariables": {
"CELERITAS_DEVICE_DEBUG":{"type": "BOOL", "value": "OFF"}
}
}
],
"buildPresets": [
{
"name": ".base",
"configurePreset": ".base",
"jobs": 48,
"nativeToolOptions": ["-k0"]
},
{"name": "release", "configurePreset": "release", "inherits": ".base"},
{"name": "reldeb", "configurePreset": "reldeb", "inherits": ".base"},
{"name": "release-orange", "configurePreset": "release-orange", "inherits": ".base"},
{"name": "reldeb-orange", "configurePreset": "reldeb-orange", "inherits": ".base"},
{"name": "debug-orange", "configurePreset": "debug-orange", "inherits": ".base"}
],
"testPresets": [
{
"name": ".base",
"configurePreset": ".base",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": false, "jobs": 8}
},
{"name": "release", "configurePreset": "release", "inherits": ".base"},
{"name": "reldeb", "configurePreset": "reldeb", "inherits": ".base"},
{"name": "release-orange", "configurePreset": "release-orange", "inherits": ".base"},
{"name": "reldeb-orange", "configurePreset": "reldeb-orange", "inherits": ".base"},
{"name": "debug-orange", "configurePreset": "debug-orange", "inherits": ".base"}
]
}
23 changes: 23 additions & 0 deletions scripts/env/milan0.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh -ex
#-------------------------------- -*- sh -*- ---------------------------------#
# Copyright Celeritas contributors: see top-level COPYRIGHT file for details
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
#-----------------------------------------------------------------------------#

if ! command -v load_system_env >/dev/null 2>&1; then
printf 'error: define a function "load_system_env" in your .bashrc:
load_system_env() {
. "${CELER_SOURCE_DIR}/scripts/env/$1.sh"
}
' >&2
return 1
fi

# Redundant with cmake prefix but useful if this is being used for other env
export CUDAARCHS=90
# Set C++ compiler
export CXX=/usr/bin/c++
export CC=/usr/bin/cc

# Dispatch common loading to the 'excl' system
load_system_env excl || return $?
Loading