Skip to content

Commit 9dfbe53

Browse files
committed
load hpcx module using the new init script
1 parent 43f643e commit 9dfbe53

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/ci.cpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
run: |
7676
set -ex;
7777
78-
. devcontainer-utils-post-attach-command;
78+
devcontainer-utils-post-attach-command;
7979
8080
# Copy source folder into ~/stdexec
8181
cp -r "${GITHUB_WORKSPACE}"/stdexec ~/;

.github/workflows/ci.gpu.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,19 @@ jobs:
7575
role-to-assume: arn:aws:iam::279114543810:role/gha-oidc-NVIDIA
7676
- name: Build and test GPU schedulers
7777
run: |
78-
set -ex;
78+
set -e;
7979
80-
. devcontainer-utils-post-attach-command;
80+
devcontainer-utils-post-attach-command;
81+
82+
if test -n "${NVHPC_ROOT:+x}"; then
83+
HPCX_INIT="$(find -L "$NVHPC_ROOT"/comm_libs/ -path '*/latest/hpcx-init.sh')";
84+
if test -n "${HPCX_INIT:+x}"; then
85+
. "$HPCX_INIT";
86+
hpcx_load;
87+
fi
88+
fi
89+
90+
set -x;
8191
8292
# Copy source folder into ~/stdexec
8393
cp -r "${GITHUB_WORKSPACE}"/stdexec ~/;

0 commit comments

Comments
 (0)