Skip to content

Commit

Permalink
Update blueprints to reflect spack module split
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-stroud committed Jul 14, 2023
1 parent fcf1377 commit 9713fe4
Show file tree
Hide file tree
Showing 16 changed files with 109 additions and 67 deletions.
12 changes: 8 additions & 4 deletions community/examples/AMD/hpc-amd-slurm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,16 @@ deployment_groups:
settings:
local_mount: /sw

- id: spack
- id: spack-setup
source: community/modules/scripts/spack-install
settings:
install_dir: /sw/spack
spack_ref: v0.18.1

- id: spack-execute
source: community/modules/scripts/spack-execute
use: [spack-setup]
settings:
log_file: /var/log/spack.log
data_files:
- destination: /tmp/projections-config.yaml
Expand Down Expand Up @@ -113,8 +118,7 @@ deployment_groups:
source: modules/scripts/startup-script
settings:
runners:
- $(spack.install_spack_deps_runner)
- $(spack.install_spack_runner)
- $(spack-execute.spack_runner)
- type: shell
destination: shutdown.sh
content: |
Expand All @@ -128,7 +132,7 @@ deployment_groups:
source: modules/scripts/startup-script
settings:
runners:
- $(spack.setup_spack_runner)
- $(spack-setup.setup_spack_runner)
# the following installation of AOCC may be automated in the future
# with a clear direction to the user to read the EULA at
# https://developer.amd.com/aocc-compiler-eula/
Expand Down
16 changes: 7 additions & 9 deletions community/examples/hpc-slurm-gromacs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,15 @@ deployment_groups:
local_mount: /home

## Install Scripts
- id: spack
- id: spack-setup
source: community/modules/scripts/spack-install
settings:
install_dir: /sw/spack

- id: spack-execute
source: community/modules/scripts/spack-execute
use: [spack-setup]
settings:
log_file: /var/log/spack.log
data_files:
- destination: /tmp/projections-config.yaml
Expand Down Expand Up @@ -77,13 +82,6 @@ deployment_groups:
spack install intel-mpi@2018.4.274%gcc@10.3.0
spack install gromacs@2023.1 %gcc@10.3.0 ^intel-mpi@2018.4.274 ^cmake@3.26.3 %gcc@4.8.5
- id: spack-startup
source: modules/scripts/startup-script
settings:
runners:
- $(spack.install_spack_deps_runner)
- $(spack.install_spack_runner)

- id: compute_partition
source: community/modules/compute/SchedMD-slurm-on-gcp-partition
use:
Expand Down Expand Up @@ -111,7 +109,7 @@ deployment_groups:
- homefs
- appsfs
- slurm_controller
- spack-startup
- spack-execute
settings:
login_machine_type: c2-standard-4
login_scopes:
Expand Down
12 changes: 8 additions & 4 deletions community/examples/hpc-slurm-ramble-gromacs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,15 @@ deployment_groups:
source: modules/network/vpc

## Install Scripts
- id: spack
- id: spack-install
source: community/modules/scripts/spack-install
settings:
install_dir: /opt/apps/spack

- id: spack-execute
source: community/modules/scripts/spack-execute
use: [spack-install]
settings:
log_file: /var/log/spack.log
commands: |
# Un-comment and update mirror_url to install from spack cache
Expand All @@ -55,7 +60,7 @@ deployment_groups:

- id: ramble-execute
source: community/modules/scripts/ramble-execute
use: [spack, ramble-setup]
use: [spack-install, ramble-setup]
settings:
commands: |
ramble workspace create gromacs -c /opt/apps/gromacs_scaling.yaml -t /opt/apps/execute_experiment.tpl
Expand All @@ -66,8 +71,7 @@ deployment_groups:
source: modules/scripts/startup-script
settings:
runners:
- $(spack.install_spack_deps_runner)
- $(spack.install_spack_runner)
- $(spack-execute.spack_runner)
- type: data
destination: /opt/apps/gromacs_scaling.yaml
content: |
Expand Down
10 changes: 7 additions & 3 deletions docs/tutorials/gromacs/spack-gromacs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,15 @@ deployment_groups:
source: modules/monitoring/dashboard

## Install Scripts
- id: spack
- id: spack-setup
source: community/modules/scripts/spack-install
settings:
install_dir: /apps/spack

- id: spack-execute
source: community/modules/scripts/spack-execute
use: [spack-setup]
settings:
log_file: /var/log/spack.log
data_files:
- destination: /tmp/projections-config.yaml
Expand Down Expand Up @@ -99,8 +104,7 @@ deployment_groups:
source: modules/scripts/startup-script
settings:
runners:
- $(spack.install_spack_deps_runner)
- $(spack.install_spack_runner)
- $(spack-execute.spack_runner)
- type: shell
destination: setup_gromacs.sh
content: |
Expand Down
10 changes: 7 additions & 3 deletions docs/tutorials/openfoam/spack-openfoam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,15 @@ deployment_groups:
source: modules/monitoring/dashboard

## Install Scripts
- id: spack
- id: spack-setup
source: community/modules/scripts/spack-install
settings:
install_dir: /apps/spack

- id: spack-execute
source: community/modules/scripts/spack-execute
use: [spack-setup]
settings:
log_file: /var/log/spack.log
data_files:
- destination: /tmp/projections-config.yaml
Expand Down Expand Up @@ -106,8 +111,7 @@ deployment_groups:
source: modules/scripts/startup-script
settings:
runners:
- $(spack.install_spack_deps_runner)
- $(spack.install_spack_runner)
- $(spack-execute.spack_runner)
- type: shell
destination: setup_openfoam.sh
content: |
Expand Down
10 changes: 7 additions & 3 deletions docs/tutorials/wrfv3/spack-wrfv3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,15 @@ deployment_groups:
source: modules/monitoring/dashboard

## Install Scripts
- id: spack
- id: spack-setup
source: community/modules/scripts/spack-install
settings:
install_dir: /apps/spack

- id: spack-execute
source: community/modules/scripts/spack-execute
use: [spack-setup]
settings:
log_file: /var/log/spack.log
data_files:
- destination: /tmp/projections-config.yaml
Expand Down Expand Up @@ -99,8 +104,7 @@ deployment_groups:
source: modules/scripts/startup-script
settings:
runners:
- $(spack.install_spack_deps_runner)
- $(spack.install_spack_runner)
- $(spack-execute.spack_runner)
- type: shell
destination: wrfv3_setup.sh
content: |
Expand Down
9 changes: 7 additions & 2 deletions docs/videos/healthcare-and-life-sciences/hcls-blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,15 @@ deployment_groups:

### Software ###

- id: spack
- id: spack-setup
source: community/modules/scripts/spack-install
settings:
install_dir: /apps/spack

- id: spack-execute
source: community/modules/scripts/spack-execute
use: [spack-setup]
settings:
data_files:
- destination: /tmp/projections-config.yaml
content: |
Expand Down Expand Up @@ -185,7 +190,7 @@ deployment_groups:
source: modules/scripts/startup-script
settings:
runners:
- $(spack.install_spack_deps_runner)
- $(spack-execute.spack_runner)

- type: data
destination: /tmp/install_spack.sh
Expand Down
12 changes: 8 additions & 4 deletions examples/serverless-batch-mpi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,16 @@ deployment_groups:
settings:
local_mount: /share

- id: spack
- id: spack-setup
source: community/modules/scripts/spack-install
settings:
spack_ref: v0.19.0
install_dir: /share/spack

- id: spack-execute
source: community/modules/scripts/spack-execute
use: [spack-setup]
settings:
data_files:
- destination: /tmp/projections-config.yaml
content: |
Expand Down Expand Up @@ -92,8 +97,7 @@ deployment_groups:
source: modules/scripts/startup-script
settings:
runners:
- $(spack.install_spack_deps_runner)
- $(spack.install_spack_runner)
- $(spack-execute.spack_runner)
- type: shell
destination: wrfv3_setup.sh
content: |
Expand Down Expand Up @@ -153,7 +157,7 @@ deployment_groups:
source: modules/scripts/startup-script
settings:
runners:
- $(spack.setup_spack_runner)
- $(spack-setup.setup_spack_runner)

- id: batch-login
source: modules/scheduler/batch-login-node
Expand Down
3 changes: 1 addition & 2 deletions tools/validate_configs/ramble.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ deployment_groups:
source: modules/scripts/startup-script
settings:
runners:
- $(spack.install_spack_deps_runner)
- $(spack.install_spack_runner)
- $(spack.spack_runner)
- $(ramble-execute.ramble_runner)

- id: ramble-vm
Expand Down
12 changes: 7 additions & 5 deletions tools/validate_configs/test_configs/centos8-ss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,15 @@ deployment_groups:
settings:
auto_delete_disk: true

- id: spack
- id: spack-setup
source: ./community//modules/scripts/spack-install
settings:
install_dir: /apps/spack

- id: spack-execute
source: community/modules/scripts/spack-execute
use: [spack-setup]
settings:
commands: |
spack install gcc@10.3.0 target=x86_64
spack load gcc@10.3.0 target=x86_64
Expand All @@ -66,10 +71,7 @@ deployment_groups:
echo $2
tar zxvf /tmp/$1 -C /
args: "foo.tgz 'Expanding the file'"
- $(spack.install_spack_deps_runner)
- type: shell
content: $(spack.startup_script)
destination: "/apps/spack-install.sh"
- $(spack-execute.spack_runner)

- id: instance
source: ./modules/compute/vm-instance
Expand Down
12 changes: 7 additions & 5 deletions tools/validate_configs/test_configs/debian-ss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,15 @@ deployment_groups:
settings:
auto_delete_disk: true

- id: spack
- id: spack-setup
source: ./community//modules/scripts/spack-install
settings:
install_dir: /apps/spack

- id: spack-execute
source: community/modules/scripts/spack-execute
use: [spack-setup]
settings:
commands: |
spack install gcc@10.3.0 target=x86_64
spack load gcc@10.3.0 target=x86_64
Expand All @@ -66,10 +71,7 @@ deployment_groups:
echo $2
tar zxvf /tmp/$1 -C /
args: "foo.tgz 'Expanding the file'"
- $(spack.install_spack_deps_runner)
- type: shell
content: $(spack.startup_script)
destination: "/apps/spack-install.sh"
- $(spack-execute.spack_runner)

- id: instance
source: ./modules/compute/vm-instance
Expand Down
12 changes: 7 additions & 5 deletions tools/validate_configs/test_configs/hpc-centos-ss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,15 @@ deployment_groups:
settings:
auto_delete_disk: true

- id: spack
- id: spack-setup
source: ./community//modules/scripts/spack-install
settings:
install_dir: /apps/spack

- id: spack-execute
source: community/modules/scripts/spack-execute
use: [spack-setup]
settings:
commands: |
spack install gcc@10.3.0 target=x86_64
spack load gcc@10.3.0 target=x86_64
Expand All @@ -66,10 +71,7 @@ deployment_groups:
echo $2
tar zxvf /tmp/$1 -C /
args: "foo.tgz 'Expanding the file'"
- $(spack.install_spack_deps_runner)
- type: shell
content: $(spack.startup_script)
destination: "/apps/spack-install.sh"
- $(spack-execute.spack_runner)

- id: instance
source: ./modules/compute/vm-instance
Expand Down
12 changes: 7 additions & 5 deletions tools/validate_configs/test_configs/rocky-ss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,15 @@ deployment_groups:
image: rocky-linux-cloud/rocky-linux-8
auto_delete_disk: true

- id: spack
- id: spack-setup
source: ./community//modules/scripts/spack-install
settings:
install_dir: /apps/spack

- id: spack-execute
source: community/modules/scripts/spack-execute
use: [spack-setup]
settings:
commands: |
spack install gcc@10.3.0 target=x86_64
spack load gcc@10.3.0 target=x86_64
Expand All @@ -67,10 +72,7 @@ deployment_groups:
echo $2
tar zxvf /tmp/$1 -C /
args: "foo.tgz 'Expanding the file'"
- $(spack.install_spack_deps_runner)
- type: shell
content: $(spack.startup_script)
destination: "/apps/spack-install.sh"
- $(spack-execute.spack_runner)

- id: instance
source: ./modules/compute/vm-instance
Expand Down
Loading

0 comments on commit 9713fe4

Please sign in to comment.