Skip to content

Commit

Permalink
Merge pull request #1722 from CEED/jeremy/rocm-ci-build
Browse files Browse the repository at this point in the history
ci - add rocm build only test
  • Loading branch information
jeremylt authored Jan 9, 2025
2 parents 7ccb332 + 527d8be commit 514f0e7
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ noether-cuda:
# ROCm backends
# ----------------------------------------------------------------------------------------

# ROCm tests currently disabled
# ROCm test execution currently disabled

#noether-rocm:
# stage: test:gpu-and-float
Expand Down Expand Up @@ -320,6 +320,42 @@ noether-cuda:
# performance: performance.json


noether-rocm:
stage: test:gpu-and-float
tags:
- rocm
interruptible: true
before_script:
# Environment
- export COVERAGE=1 CC=gcc CXX=g++ FC=gfortran HIPCC=hipcc
- export NPROC_POOL=4
- echo "-------------- nproc ---------------" && NPROC_CPU=$(nproc) && NPROC_GPU=$(($(nproc)<8?$(nproc):8)) && echo "NPROC_CPU" $NPROC_CPU && echo "NPROC_GPU" $NPROC_GPU
- echo "-------------- CC ------------------" && $CC --version
- echo "-------------- CXX -----------------" && $CXX --version
- echo "-------------- FC ------------------" && $FC --version
- echo "-------------- HIPCC ---------------" && $HIPCC --version
- echo "-------------- GCOV ----------------" && gcov --version
# Libraries for backends
# -- MAGMA from dev branch
- echo "-------------- MAGMA ---------------"
- export MAGMA_DIR=/projects/hipMAGMA && git -C $MAGMA_DIR -c safe.directory=$MAGMA_DIR describe
script:
- rm -f .SUCCESS
# libCEED
- make configure ROCM_DIR=/opt/rocm-6.1.0 OPT='-O -march=native -ffp-contract=fast'
- BACKENDS_CPU=$(make info-backends-all | grep -o '/cpu[^ ]*' | tr '\n' ' ') && BACKENDS_GPU=$(make info-backends | grep -o '/gpu[^ ]*' | tr '\n' ' ')
- echo "-------------- libCEED -------------" && make info
- echo "-------------- BACKENDS_GPU --------" && echo $BACKENDS_GPU
- make clean
- make -j$NPROC_CPU
# Clang-tidy
- echo "-------------- clang-tidy ----------" && clang-tidy --version
- make clean
- TIDY_OPTS="-fix-errors" make -j$NPROC_CPU tidy && git diff --color=always --exit-code
# Report status
- touch .SUCCESS


# ----------------------------------------------------------------------------------------
# CPU + CUDA backends with CeedScalar == float (32 bit)
# ----------------------------------------------------------------------------------------
Expand Down

0 comments on commit 514f0e7

Please sign in to comment.