1stages: 2 - test 3 4noether-rocm: 5 stage: test 6 tags: 7 - rocm 8 image: jedbrown/rocm:latest 9 script: 10# Compilers 11 - export COVERAGE=1 CC=gcc CXX=g++ FC=gfortran HIPCC=hipcc 12 - echo "---------- CC -------------" && $CC --version 13 - echo "---------- CXX ------------" && $CXX --version 14 - echo "---------- FC -------------" && $FC --version 15 - echo "---------- HIPCC ----------" && $HIPCC --version 16 - echo "---------- GCOV -----------" && gcov --version 17# MAGMA from dev branch 18 - export MAGMA_DIR=/projects/hipMAGMA && git -C $MAGMA_DIR describe 19# PETSc with HIP (minimal) 20 - export PETSC_DIR=/projects/jed/petsc PETSC_ARCH=mpich-hip-g && git -C $PETSC_DIR describe && make -C $PETSC_DIR info 21# LIBXSMM v1.16.1 22 - cd .. && export XSMM_VERSION=libxsmm-1.16.1 && { [[ -d $XSMM_VERSION ]] || { git clone --depth 1 --branch 1.16.1 https://github.com/hfp/libxsmm.git $XSMM_VERSION && make -C $XSMM_VERSION -j$(nproc); }; } && git -C $XSMM_VERSION describe --tags && export XSMM_DIR=$PWD/$XSMM_VERSION && cd libCEED 23# OCCA v1.1.0 24 - cd .. && export OCCA_VERSION=occa-1.1.0 OCCA_OPENCL_ENABLED=0 && { [[ -d $OCCA_VERSION ]] || { git clone --depth 1 --branch v1.1.0 https://github.com/libocca/occa.git $OCCA_VERSION && make -C $OCCA_VERSION -j$(nproc); }; } && make -C $OCCA_VERSION info && export OCCA_DIR=$PWD/$OCCA_VERSION && cd libCEED 25# libCEED 26 - make info 27 - make -j$(nproc) 28 - echo '[{"subject":"/","metrics":[{"name":"Transfer Size (KB)","value":"19.5","desiredSize":"smaller"},{"name":"Speed Index","value":0,"desiredSize":"smaller"},{"name":"Total Score","value":92,"desiredSize":"larger"},{"name":"Requests","value":4,"desiredSize":"smaller"}]}]' > performance.json 29 - make -k -j$(nproc) junit realsearch=% 30# MFEM v4.2 31 - cd .. && export MFEM_VERSION=mfem-4.2 && { [[ -d $MFEM_VERSION ]] || { git clone --depth 1 --branch v4.2 https://github.com/mfem/mfem.git $MFEM_VERSION && make -C $MFEM_VERSION -j$(nproc) serial CXXFLAGS="-O -std=c++11"; }; } && export MFEM_DIR=$PWD/$MFEM_VERSION && cd libCEED 32 - make -C $MFEM_DIR info 33 - make -k -j$(nproc) junit search=mfem 34# Nek5000 v19.0 35 - export COVERAGE=0 36 - cd .. && export NEK5K_VERSION=Nek5000-19.0 && { [[ -d $NEK5K_VERSION ]] || { git clone --depth 1 --branch v19.0 https://github.com/Nek5000/Nek5000.git $NEK5K_VERSION && cd $NEK5K_VERSION/tools && ./maketools genbox genmap reatore2 && cd ../..; }; } && git -C $NEK5K_VERSION describe --tags && export NEK5K_DIR=$PWD/$NEK5K_VERSION && export PATH=$NEK5K_DIR/bin:$PATH MPI=0 && cd libCEED 37 - make -k -j$(nproc) junit search=nek 38# Report status 39 - echo "SUCCESS" > .job_status 40 after_script: 41 - | 42 if [ $(cat .job_status) == "SUCCESS" ]; then 43 lcov --directory . --capture --output-file coverage.info; 44 bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F interface; 45 bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F gallery; 46 bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F backends; 47 bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F tests; 48 bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F examples; 49 fi 50 artifacts: 51 paths: 52 - build/*.junit 53 reports: 54 junit: build/*.junit 55 performance: performance.json 56