-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This includes better integration into OpenHPC (again). This also removes an old patch which was not applied for a long time. This patch was important to make spack installed software packages available to OpenHPC users. In its default configuration in OpenHPC only root can install additional software packages using spack, but these packages will be made available to all users again. Non-root users can also use spack, but it requires additional configuration for each user. Unfortunately spack does not automatically set different defaults when running as non-root like EasyBuild for example seems to do. Signed-off-by: Adrian Reber <[email protected]>
- Loading branch information
1 parent
611b01f
commit 76412d4
Showing
5 changed files
with
55 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/etc/spack/defaults/config.yaml 2024-09-21 10:39:55.000000000 +0000 | ||
+++ b/etc/spack/defaults/config.yaml 2024-10-01 15:05:36.648000000 +0000 | ||
@@ -17,7 +17,7 @@ | ||
# This is the path to the root of the Spack install tree. | ||
# You can use $spack here to refer to the root of the spack instance. | ||
install_tree: | ||
- root: $spack/opt/spack | ||
+ root: @@OHPC_APPS@@/spack/local | ||
projections: | ||
all: "{architecture}/{compiler.name}-{compiler.version}/{name}-{version}-{hash}" | ||
# install_tree can include an optional padded length (int or boolean) |
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,27 @@ | ||
--- a/etc/spack/defaults/modules.yaml 2024-09-21 10:39:55.000000000 +0000 | ||
+++ b/etc/spack/defaults/modules.yaml 2024-10-01 15:05:36.648000000 +0000 | ||
@@ -38,17 +38,22 @@ | ||
default: | ||
# Where to install modules | ||
roots: | ||
- tcl: $spack/share/spack/modules | ||
+ tcl: @@OHPC_MODULEDEPS@@/spack | ||
lmod: $spack/share/spack/lmod | ||
+ arch_folder: false | ||
# What type of modules to use ("tcl" and/or "lmod") | ||
- enable: [] | ||
+ enable: ["tcl"] | ||
|
||
tcl: | ||
+ hide_implicits: true | ||
+ projections: | ||
+ all: '{name}/{version}-{compiler.name}-{compiler.version}-{architecture}' | ||
all: | ||
autoload: direct | ||
|
||
# Default configurations if lmod is enabled | ||
lmod: | ||
+ hide_implicits: true | ||
all: | ||
autoload: direct | ||
hierarchy: |
This file was deleted.
Oops, something went wrong.
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