-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Daint] Upstream for large Python deps and rttov (#722)
- Loading branch information
1 parent
2ba63d0
commit e1a22fb
Showing
11 changed files
with
137 additions
and
6 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
requests | ||
pytest-xdist | ||
pytest-xdist |
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,27 @@ | ||
import shutil | ||
import sys | ||
import os | ||
|
||
sys.path.insert(1, 'spack/lib/spack/external') | ||
from ruamel import yaml | ||
|
||
|
||
def read_upstream_from_spack_yaml(config_dir): | ||
spack_yaml = os.path.join(config_dir, 'spack.yaml') | ||
with open(spack_yaml, 'r') as f: | ||
spack_config = yaml.load(f) | ||
upstream = spack_config['spack']['config']['install_tree']['root'] | ||
return upstream | ||
|
||
|
||
def delete_upstream(upstream): | ||
print(f'Delete upstream {upstream}') | ||
shutil.rmtree(upstream, ignore_errors=True) | ||
|
||
|
||
if __name__ == '__main__': | ||
|
||
if len(sys.argv) != 2: | ||
raise ValueError('Need path to folder containing a spack.yaml') | ||
else: | ||
delete_upstream(read_upstream_from_spack_yaml(sys.argv[1])) |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
upstreams: | ||
system: | ||
base: | ||
install_tree: /project/g110/spack/upstream/daint_v0.18.1.2 | ||
icon-dsl: | ||
install_tree: /project/g110/spack/upstream/daint_v0.18.1.4/icon-dsl | ||
icon-rttov: | ||
install_tree: /project/g110/spack/upstream/daint_v0.18.1.4/icon-rttov |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
pipeline { | ||
|
||
agent { | ||
node { | ||
label 'daint' | ||
} | ||
} | ||
stages { | ||
stage('Uninstall Upstream Base') { | ||
steps { | ||
sh""" | ||
python3 src/upstream.py upstreams/daint/base | ||
""" | ||
} | ||
} | ||
stage('Uninstall Upstream Icon-DSL') { | ||
steps { | ||
sh""" | ||
python3 src/upstream.py upstreams/daint/icon-dsl | ||
""" | ||
} | ||
} | ||
stage('Uninstall Upstream Icon-rttov') { | ||
steps { | ||
sh""" | ||
python3 src/upstream.py upstreams/daint/icon-rttov | ||
""" | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
echo 'Cleaning up workspace' | ||
deleteDir() | ||
} | ||
} | ||
|
||
} | ||
|
File renamed without changes.
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,10 @@ | ||
spack: | ||
specs: | ||
- py-icon4py@0.0.3%gcc@9.3.0 | ||
- py-gt4py@1.1.1%gcc@9.3.0 | ||
concretizer: | ||
unify: true | ||
view: false | ||
config: | ||
install_tree: | ||
root: /project/g110/spack/upstream/do_not_use/icon-dsl |
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,15 @@ | ||
spack: | ||
specs: | ||
# ICON + rttov | ||
- rttov@13.1%nvhpc ~openmp +hdf5 | ||
- nvidia-blas%nvhpc | ||
- nvidia-lapack%nvhpc | ||
- pkg-config%gcc | ||
- zlib%gcc | ||
- hdf5@1.12.2%nvhpc | ||
concretizer: | ||
unify: true | ||
view: false | ||
config: | ||
install_tree: | ||
root: /project/g110/spack/upstream/do_not_use/icon-rttov |