Skip to content

Commit c332fd5

Browse files
committed
Add more tests to GPU CI pipelines
1 parent 3ea2baf commit c332fd5

1 file changed

Lines changed: 40 additions & 8 deletions

File tree

.gitlab/ci.yaml

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ NVIDIA-H100:
3838
-DBUILDNAME=GPU-H100-CUDA-SP \
3939
-DSITE=Frank_UO \
4040
-DWarpX_COMPUTE=CUDA \
41+
-DWarpX_DIMS="1;2;3;RZ;RCYLINDER;RSPHERE" \
4142
-DWarpX_EB=ON \
4243
-DWarpX_PYTHON=OFF \
4344
-DCMAKE_CUDA_ARCHITECTURES=90 \
@@ -51,13 +52,28 @@ NVIDIA-H100:
5152
- export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
5253
- export AMREX_DEFAULT_INIT="amrex.the_arena_init_size=0"
5354
- |
55+
GPU_TESTS=(
56+
test_1d_langmuir_multi
57+
test_2d_refined_injection
58+
test_3d_laser_acceleration_btd
59+
test_rcylinder_langmuir_multi
60+
test_rsphere_langmuir_multi
61+
test_rz_embedded_boundary_diffraction
62+
)
63+
# Join the test names with "|" to form regex alternatives.
64+
GPU_TESTS_REGEX=""
65+
for test_name in "${GPU_TESTS[@]}"; do
66+
GPU_TESTS_REGEX+="${GPU_TESTS_REGEX:+|}${test_name}"
67+
done
68+
# Match all generated stages (e.g., <test_name>.run, <test_name>.analysis, etc.).
69+
GPU_TESTS_REGEX="^(${GPU_TESTS_REGEX})\."
70+
echo "Resolved GPU test regex: ${GPU_TESTS_REGEX}"
71+
ctest --test-dir build -N -R "${GPU_TESTS_REGEX}"
5472
if [[ "${CI_COMMIT_BRANCH}" == "development" ]]; then
5573
# run tests and submit results to CDash as Experimental
56-
ctest --test-dir build -R test_3d_laser_acceleration_btd \
57-
--output-on-failure --no-tests=error -D ExperimentalTest -D ExperimentalSubmit
74+
ctest --test-dir build -R "${GPU_TESTS_REGEX}" --output-on-failure -D ExperimentalTest -D ExperimentalSubmit
5875
else
59-
ctest --test-dir build -R test_3d_laser_acceleration_btd \
60-
--output-on-failure --no-tests=error
76+
ctest --test-dir build -R "${GPU_TESTS_REGEX}" --output-on-failure
6177
fi
6278
6379
AMD-MI300:
@@ -80,6 +96,7 @@ AMD-MI300:
8096
-DSITE=Frank_UO \
8197
-DAMReX_AMD_ARCH=gfx942 \
8298
-DWarpX_COMPUTE=HIP \
99+
-DWarpX_DIMS="1;2;3;RZ;RCYLINDER;RSPHERE" \
83100
-DWarpX_EB=ON \
84101
-DWarpX_PYTHON=OFF \
85102
-DWarpX_MPI=ON \
@@ -91,13 +108,28 @@ AMD-MI300:
91108
- export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
92109
- export AMREX_DEFAULT_INIT="amrex.the_arena_init_size=0"
93110
- |
111+
GPU_TESTS=(
112+
test_1d_langmuir_multi
113+
test_2d_refined_injection
114+
test_3d_laser_acceleration_btd
115+
test_rcylinder_langmuir_multi
116+
test_rsphere_langmuir_multi
117+
test_rz_embedded_boundary_diffraction
118+
)
119+
# Join the test names with "|" to form regex alternatives.
120+
GPU_TESTS_REGEX=""
121+
for test_name in "${GPU_TESTS[@]}"; do
122+
GPU_TESTS_REGEX+="${GPU_TESTS_REGEX:+|}${test_name}"
123+
done
124+
# Match all generated stages (e.g., <test_name>.run, <test_name>.analysis, etc.).
125+
GPU_TESTS_REGEX="^(${GPU_TESTS_REGEX})\."
126+
echo "Resolved GPU test regex: ${GPU_TESTS_REGEX}"
127+
ctest --test-dir build -N -R "${GPU_TESTS_REGEX}"
94128
if [[ "${CI_COMMIT_BRANCH}" == "development" ]]; then
95129
# run tests and submit results to CDash as Experimental
96-
ctest --test-dir build -R test_3d_laser_acceleration_btd \
97-
--output-on-failure --no-tests=error -D ExperimentalTest -D ExperimentalSubmit
130+
ctest --test-dir build -R "${GPU_TESTS_REGEX}" --output-on-failure -D ExperimentalTest -D ExperimentalSubmit
98131
else
99-
ctest --test-dir build -R test_3d_laser_acceleration_btd \
100-
--output-on-failure --no-tests=error
132+
ctest --test-dir build -R "${GPU_TESTS_REGEX}" --output-on-failure
101133
fi
102134
103135
Intel-PVC:

0 commit comments

Comments
 (0)