Skip to content

Commit 514f0e7

Browse files
authored
Merge pull request #1722 from CEED/jeremy/rocm-ci-build
ci - add rocm build only test
2 parents 7ccb332 + 527d8be commit 514f0e7

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

.gitlab-ci.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ noether-cuda:
256256
# ROCm backends
257257
# ----------------------------------------------------------------------------------------
258258

259-
# ROCm tests currently disabled
259+
# ROCm test execution currently disabled
260260

261261
#noether-rocm:
262262
# stage: test:gpu-and-float
@@ -320,6 +320,42 @@ noether-cuda:
320320
# performance: performance.json
321321

322322

323+
noether-rocm:
324+
stage: test:gpu-and-float
325+
tags:
326+
- rocm
327+
interruptible: true
328+
before_script:
329+
# Environment
330+
- export COVERAGE=1 CC=gcc CXX=g++ FC=gfortran HIPCC=hipcc
331+
- export NPROC_POOL=4
332+
- echo "-------------- nproc ---------------" && NPROC_CPU=$(nproc) && NPROC_GPU=$(($(nproc)<8?$(nproc):8)) && echo "NPROC_CPU" $NPROC_CPU && echo "NPROC_GPU" $NPROC_GPU
333+
- echo "-------------- CC ------------------" && $CC --version
334+
- echo "-------------- CXX -----------------" && $CXX --version
335+
- echo "-------------- FC ------------------" && $FC --version
336+
- echo "-------------- HIPCC ---------------" && $HIPCC --version
337+
- echo "-------------- GCOV ----------------" && gcov --version
338+
# Libraries for backends
339+
# -- MAGMA from dev branch
340+
- echo "-------------- MAGMA ---------------"
341+
- export MAGMA_DIR=/projects/hipMAGMA && git -C $MAGMA_DIR -c safe.directory=$MAGMA_DIR describe
342+
script:
343+
- rm -f .SUCCESS
344+
# libCEED
345+
- make configure ROCM_DIR=/opt/rocm-6.1.0 OPT='-O -march=native -ffp-contract=fast'
346+
- BACKENDS_CPU=$(make info-backends-all | grep -o '/cpu[^ ]*' | tr '\n' ' ') && BACKENDS_GPU=$(make info-backends | grep -o '/gpu[^ ]*' | tr '\n' ' ')
347+
- echo "-------------- libCEED -------------" && make info
348+
- echo "-------------- BACKENDS_GPU --------" && echo $BACKENDS_GPU
349+
- make clean
350+
- make -j$NPROC_CPU
351+
# Clang-tidy
352+
- echo "-------------- clang-tidy ----------" && clang-tidy --version
353+
- make clean
354+
- TIDY_OPTS="-fix-errors" make -j$NPROC_CPU tidy && git diff --color=always --exit-code
355+
# Report status
356+
- touch .SUCCESS
357+
358+
323359
# ----------------------------------------------------------------------------------------
324360
# CPU + CUDA backends with CeedScalar == float (32 bit)
325361
# ----------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)