@@ -60,7 +60,7 @@ are used to create the environments. You only need to do this once.
6060To create the oneAPI environment, do:
6161
6262```
63- spack stack create env --name ue-oneapi-2024.2.0 --template unified-dev --site nas --compiler=oneapi-2024.2.0 |& tee log.create.ue-oneapi-2024.2.0
63+ spack stack create env --name ue-oneapi-2024.2.0 --template unified-dev --site nas --compiler=oneapi-2024.2.0
6464cd envs/ue-oneapi-2024.2.0
6565```
6666
@@ -69,7 +69,7 @@ cd envs/ue-oneapi-2024.2.0
6969To create the GCC environment, do:
7070
7171```
72- spack stack create env --name ue-gcc-13.2.0 --template unified-dev --site nas --compiler gcc-13.2.0 |& tee log.create.ue-gcc-13.2.0
72+ spack stack create env --name ue-gcc-13.2.0 --template unified-dev --site nas --compiler gcc-13.2.0
7373cd envs/ue-gcc-13.2.0
7474```
7575
@@ -99,7 +99,7 @@ Because this step downloads all the source code for all packages and all version
9999should be done on a login node with internet access.
100100
101101```
102- spack mirror create -a -d /nobackup /gmao_SIteam/spack-stack/source-cache
102+ spack mirror create -a -d /swbuild /gmao_SIteam/spack-stack/source-cache
103103```
104104
105105NOTE: Make sure you are in an environment when you run that ` spack mirror create ` command. Otherwise,
@@ -109,15 +109,10 @@ you will download *EVERY* package and *EVERY* version in spack!
109109
110110Some packages use Rust/Cargo for dependencies. These need internet access to build. So we pre-fetch them here.
111111
112- We need to set ` CARGO_HOME ` to a location inside the spack environment so that the cargo downloads are cached.
113- When we are in an environment, we have, say:
114- ```
115- SPACK_ENV=/nobackupp28/gmao_SIteam/spack-stack/spack-stack-2.0.0-test/envs/ue-oneapi-2024.2.0
116- ```
117- set for oneapi, so we can use the same "path" for each stack.
112+ We need to set ` CARGO_HOME ` to a location where the Cargo deps have been downloaded
118113
119114```
120- export CARGO_HOME=${SPACK_ENV} /cargo-cache
115+ export CARGO_HOME=/swbuild/gmao_SIteam/spack-stack /cargo-cache
121116../../util/fetch_cargo_deps.py
122117```
123118
@@ -140,7 +135,7 @@ then have to build ecflow on a login node as well.
140135So we first install all the dependencies of then codes.
141136
142137```
143- export CARGO_HOME=${SPACK_ENV} /cargo-cache
138+ export CARGO_HOME=/swbuild/gmao_SIteam/spack-stack /cargo-cache
144139spack install -j 16 --verbose --fail-fast --show-log-on-error --no-check-signature --only dependencies py-cryptography py-maturin py-rpds-py ecflow 2>&1 | tee log.install.deps-for-rust-and-ecflow
145140```
146141
@@ -153,7 +148,7 @@ you will get an illegal instruction error when the install below calls python3.
153148So go back to an afe login node and run:
154149
155150```
156- export CARGO_HOME=${SPACK_ENV} /cargo-cache
151+ export CARGO_HOME=/swbuild/gmao_SIteam/spack-stack /cargo-cache
157152spack install -j 2 -p 1 --verbose --fail-fast --show-log-on-error --no-check-signature py-cryptography py-maturin py-rpds-py ecflow 2>&1 | tee log.install.rust-and-ecflow
158153```
159154
@@ -162,7 +157,7 @@ Note we are only using 2 processes here because NAS limits you to 2 processes on
162157### Install Step 3: The rest (COMPUTE NODE)
163158
164159```
165- export CARGO_HOME=${SPACK_ENV} /cargo-cache
160+ export CARGO_HOME=/swbuild/gmao_SIteam/spack-stack /cargo-cache
166161spack install -j 16 --verbose --fail-fast --show-log-on-error --no-check-signature 2>&1 | tee log.install.after-cargo
167162```
168163
0 commit comments