Skip to content

Commit

Permalink
[guix] Loading an MPI module is not necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Sep 1, 2023
1 parent ab5862f commit 74b8dcf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/ci/jobs/build-guix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test guix container eve:
- mkdir -p $work_dir
- cp -r ${CI_PROJECT_DIR}/Tests/Data/EllipticPETSc $work_dir/
- export prj_file=${work_dir}/EllipticPETSc/cube_1e3_XDMF_np3.prj
- jid=$(sbatch --chdir=${work_dir} --job-name=test-guix-container --mem-per-cpu=1G --ntasks=3 --output=/work/%u/%x_%j.out --parsable --time=1 --partition=rocky-9 --wrap="module load GCC/12.2.0 OpenMPI/4.1.4 && srun apptainer exec ${GUIX_PETSC_CONTAINER} ogs ${prj_file}")
- jid=$(sbatch --chdir=${work_dir} --job-name=test-guix-container --mem-per-cpu=1G --ntasks=3 --output=/work/%u/%x_%j.out --parsable --time=1 --partition=rocky-9 --wrap="srun apptainer exec ${GUIX_PETSC_CONTAINER} ogs ${prj_file}")
# - touch /work/$USER/ci_log_$jid.out # required on frontend1, tail -F does not recognize file created
- while true; do grep "$jid" < <(squeue -hj "$jid") || break; sleep 10; done &> /dev/null & tail -F /work/$USER/test-guix-container_$jid.out --pid="$!" || true
- exit_code=$(sacct -j $jid.0 --format=ExitCode --noheader | cut -d':' -f1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ You need to modify your submit script, e.g.:
...
#SBATCH ...

module load GCC/12.2.0 OpenMPI/4.1.4
srun apptainer exec /data/ogs/apptainer/guix/ogs-petsc-ssd_head.squashfs ogs $PRJ_FILE
```

Expand Down

0 comments on commit 74b8dcf

Please sign in to comment.