-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update imi base image to explicitly install gcc in env, use a tagged …
…version of spack, and mamba for python dependencies
- Loading branch information
Showing
6 changed files
with
18 additions
and
10 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 |
---|---|---|
|
@@ -11,10 +11,11 @@ spack: | |
- spec: [email protected] | ||
prefix: /usr | ||
specs: | ||
- cmake@3.22.1 | ||
- cmake%[email protected] | ||
- [email protected]%[email protected] | ||
- [email protected]%[email protected] | ||
- [email protected]%[email protected] | ||
- [email protected]%[email protected] | ||
# - [email protected]%[email protected] +lustre +gpfs fabrics=auto | ||
# - [email protected] fabrics=sockets,tcp,udp,efa,mlx,shm | ||
# - [email protected]%[email protected] | ||
|
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 |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
set -x | ||
set -e # exit 1 if error | ||
|
||
# Spack version to install | ||
SpackVersion="v0.21.0" | ||
# Spack install spec for desired compiler | ||
SpackCompiler="[email protected]" | ||
# Name of spack env | ||
|
@@ -12,15 +14,19 @@ SpackEnvironmentName="compute_env" | |
SpackEnvironmentFile="geoschem_deps-gnu-openmpi-102.yaml" | ||
# InstallSpack | ||
source /etc/bashrc | ||
yum install -y git curl texinfo | ||
|
||
yum install -y git curl curl-devel texinfo | ||
yum groupinstall -y "Development tools" | ||
umask 022 | ||
# Use spack v0.21.0 | ||
git clone https://github.com/spack/spack /opt/spack | ||
(cd /opt/spack && git checkout $SpackVersion) | ||
|
||
SPACK_ROOT=/opt/spack | ||
. /opt/spack/share/spack/setup-env.sh | ||
spack compiler find --scope system | ||
spack external find --scope system | ||
spack install $SpackCompiler | ||
spack install --fail-fast $SpackCompiler | ||
spack load $SpackCompiler | ||
spack compiler find --scope system | ||
|
||
|
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