@@ -256,7 +256,7 @@ noether-cuda:
256
256
# ROCm backends
257
257
# ----------------------------------------------------------------------------------------
258
258
259
- # ROCm tests currently disabled
259
+ # ROCm test execution currently disabled
260
260
261
261
# noether-rocm:
262
262
# stage: test:gpu-and-float
@@ -320,6 +320,42 @@ noether-cuda:
320
320
# performance: performance.json
321
321
322
322
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
+
323
359
# ----------------------------------------------------------------------------------------
324
360
# CPU + CUDA backends with CeedScalar == float (32 bit)
325
361
# ----------------------------------------------------------------------------------------
0 commit comments