Skip to content

Commit 3e194e5

Browse files
committed
ci: use compatible MPI width for PW GPU cases
1 parent c299082 commit 3e194e5

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/sai-gpu-full.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,19 @@ jobs:
9999
100100
run_suite() {
101101
local suite="$1"
102-
(cd "$CI_SRC/tests/$suite" && bash ../integrate/Autotest.sh \
103-
-a "$ABACUS" -n 4 -o 1 -f CASES_GPU.txt)
102+
local ranks=4
103+
if [[ "$suite" == 11_PW_GPU ]]; then
104+
# bpcg/use_k_continuity and out_wfc cases are intentionally
105+
# single-rank because their k-point layouts are not MPI-safe.
106+
ranks=1
107+
fi
108+
if [[ "$ranks" == 1 ]]; then
109+
(unset OMPI_MCA_rmaps_base_mapping_policy; cd "$CI_SRC/tests/$suite" && \
110+
bash ../integrate/Autotest.sh -a "$ABACUS" -n 1 -o 1 -f CASES_GPU.txt)
111+
else
112+
(cd "$CI_SRC/tests/$suite" && bash ../integrate/Autotest.sh \
113+
-a "$ABACUS" -n "$ranks" -o 1 -f CASES_GPU.txt)
114+
fi
104115
}
105116
106117
for suite in 11_PW_GPU 12_NAO_Gamma_GPU 13_NAO_multik_GPU 15_rtTDDFT_GPU 16_SDFT_GPU; do

0 commit comments

Comments
 (0)