Skip to content

Commit 3147a45

Browse files
Gengze LinGengze Lin
authored andcommitted
test: add validated NAO cases to CUDA CI
1 parent 0dca9dd commit 3147a45

3 files changed

Lines changed: 126 additions & 0 deletions

File tree

.github/workflows/cuda.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,44 @@ jobs:
7373
cd tests/13_NAO_multik_GPU
7474
bash ../integrate/Autotest.sh -n 2 -f CASES_GPU.txt
7575
76+
- name: Test 02_NAO_Gamma on GPU
77+
run: |
78+
cd tests/02_NAO_Gamma
79+
while IFS= read -r case; do
80+
[ -z "$case" ] && continue
81+
case "$case" in \#*) continue ;; esac
82+
input="$case/INPUT"
83+
[ -f "$input" ] || {
84+
echo "Missing INPUT file: $input" >&2
85+
exit 1
86+
}
87+
if grep -qE '^[[:space:]]*device[[:space:]]+' "$input"; then
88+
sed -i -E 's/^[[:space:]]*device[[:space:]]+.*/device gpu/' "$input"
89+
else
90+
echo "device gpu" >> "$input"
91+
fi
92+
done < CASES_GPU.txt
93+
bash ../integrate/Autotest.sh -n 2 -f CASES_GPU.txt
94+
95+
- name: Test 03_NAO_multik on GPU
96+
run: |
97+
cd tests/03_NAO_multik
98+
while IFS= read -r case; do
99+
[ -z "$case" ] && continue
100+
case "$case" in \#*) continue ;; esac
101+
input="$case/INPUT"
102+
[ -f "$input" ] || {
103+
echo "Missing INPUT file: $input" >&2
104+
exit 1
105+
}
106+
if grep -qE '^[[:space:]]*device[[:space:]]+' "$input"; then
107+
sed -i -E 's/^[[:space:]]*device[[:space:]]+.*/device gpu/' "$input"
108+
else
109+
echo "device gpu" >> "$input"
110+
fi
111+
done < CASES_GPU.txt
112+
bash ../integrate/Autotest.sh -n 2 -f CASES_GPU.txt
113+
76114
- name: Test 15_rtTDDFT_GPU
77115
run: |
78116
cd tests/15_rtTDDFT_GPU

tests/02_NAO_Gamma/CASES_GPU.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
get_pchg
2+
get_wf_spin2
3+
md_msst
4+
md_msst2
5+
md_out_hk_syns
6+
md_out_hk_spin2
7+
relax_bfgs2
8+
relax_cell
9+
relax_old_cg
10+
relax_out_hk
11+
relax_out_hk_spin2
12+
scf_afm
13+
scf_bsse
14+
scf_elenum
15+
scf_elenum_spin2
16+
scf_fm
17+
scf_force_stress
18+
scf_in_wf
19+
scf_ocp_spin2
20+
scf_out_dm
21+
scf_out_hk
22+
scf_out_hk_spin2
23+
scf_out_hxc
24+
scf_out_dh
25+
scf_out_mul
26+
scf_out_mul_spin2
27+
scf_out_wf
28+
scf_solvation
29+
scf_u_spin2
30+
scf_upf100

tests/03_NAO_multik/CASES_GPU.txt

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
scf_pp_upf1
2+
scf_pp_upf201
3+
scf_pp_sg15
4+
scf_pp_gth
5+
scf_angle_spin4
6+
scf_u_spin1
7+
scf_u_spin2
8+
scf_u_spin4
9+
scf_vdw3abc
10+
scf_solvation
11+
scf_eadd
12+
scf_eadd_spin2
13+
scf_eminus
14+
scf_eminus_spin2
15+
scf_bspline
16+
scf_0atoms
17+
scf_smallg_spin1
18+
scf_smallg_spin2
19+
scf_in_dmr_GaAs
20+
scf_in_dmr_Si
21+
scf_in_restart
22+
scf_out_dos_spin2
23+
scf_out_wf
24+
scf_out_chg_pot1
25+
scf_out_pot3
26+
scf_out_dmr_dmk
27+
scf_out_hsk
28+
scf_out_hsk_binary
29+
scf_out_hsr
30+
scf_out_hsr_binary_spin2
31+
scf_out_dh_t
32+
scf_out_dos_spin4
33+
scf_out_mul
34+
scf_out_mul_spin2
35+
scf_out_mul_spin4
36+
scf_out_mul_nupdw
37+
scf_out_elf
38+
scf_out_qo
39+
nscf_out_dos
40+
nscf_out_band_pband
41+
nscf_out_pot1
42+
nscf_out_mul
43+
relax_bfgs2
44+
relax_old_cg
45+
relax_cell
46+
relax_cell_vdw2
47+
relax_cell_vdw3
48+
relax_cell_vdw3bj
49+
md_nvt
50+
md_msst
51+
md_out_wf
52+
md_out_syns
53+
md_chg_extra
54+
get_wf
55+
get_wf0
56+
get_pchg
57+
get_pchg_k
58+
get_s

0 commit comments

Comments
 (0)