-
Notifications
You must be signed in to change notification settings - Fork 45
Set up A100 environment on ExCL #2147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
73aa9f5
Add milan0 scripts
sethrj 4962fbf
Add strict linking to ORANGE builds
sethrj 44a0e21
Merge remote-tracking branch 'upstream/develop' into milan-env
sethrj 22a8feb
Add hidden flags
sethrj dfeb5a0
Fix orange builds
sethrj bed034e
Fix clangd setup
sethrj 9d190ec
Change cache dir
sethrj cb522d4
Auto-install environment setup
sethrj a6b423b
Use ccache for cuda and hip
sethrj bd8f5bf
Use git hook path
sethrj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,96 @@ | ||
| { | ||
| "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", | ||
| "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": ["release", ".orange"] | ||
| }, | ||
| { | ||
| "name": "reldeb-orange", | ||
| "displayName": "Build with optimizations, but enable host debugging (ORANGE)", | ||
| "inherits": ["reldeb", ".orange"] | ||
| }, | ||
| { | ||
| "name": "debug-orange", | ||
| "displayName": "Build without optimization, enabling full host debugging (ORANGE)", | ||
| "inherits": [".base", ".debug", ".orange"], | ||
| "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"} | ||
| ] | ||
| } | ||
This file contains hidden or 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,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 $? |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.