Skip to content

Commit 137ecb3

Browse files
committed
dpl-workflow.sh: Fixed GPUTYPE=HIP NGPUS=4 is only for EPNs
1 parent d9f827c commit 137ecb3

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

prodtests/full-system-test/dpl-workflow.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,14 @@ fi
3636
: ${RANS_OPT:="--ans-version 1.0 --ctf-dict none"}
3737

3838
workflow_has_parameter CTF && export SAVECTF=1
39-
workflow_has_parameter GPU && { export GPUTYPE=HIP; export NGPUS=4; }
39+
if workflow_has_parameter GPU; then
40+
if [[ $EPNSYNCMODE == 1 ]]; then
41+
export GPUTYPE=HIP; export NGPUS=4;
42+
elif [[ $GPUTYPE == "CPU" ]]; then
43+
echo "FATAL: WORKFLOW_PARAMETER GPU requested, but GPUTYPE set to CPU" 1>&2
44+
exit 1
45+
fi
46+
fi
4047

4148
# ---------------------------------------------------------------------------------------------------------------------
4249
# Process multiplicities

0 commit comments

Comments
 (0)