Skip to content

Commit

Permalink
Load MPI through printed variables from spack.
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronrutherford committed Sep 19, 2024
1 parent 2cfa5fc commit f4b8db8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/spack_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
# Once we move submodule deps into spack, we can do some more builds
# Also need to change build script to use spack from base image
submodules: true

- name: Clone Spack
run: |
# TODO: Move back to spack@develop once patch in in develop
Expand Down Expand Up @@ -178,7 +178,9 @@ jobs:
- name: Test Build
run: |
# Not all pipelines have `+mpi`, so this command might fail
spack -e . load --sh openmpi || true
# Command also only prints shell commands, need to source
spack -e . load --sh openmpi > env.txt || [ rm env.txt || true ]
source env.txt || true
cd $(spack -e . location --build-dir hiop@develop)
ctest -VV
Expand Down

0 comments on commit f4b8db8

Please sign in to comment.