1bedd5dcaSJeremy L Thompson# ---------------------------------------------------------------------------------------- 2bedd5dcaSJeremy L Thompson# HONEE GitLab CI 3bedd5dcaSJeremy L Thompson# ---------------------------------------------------------------------------------------- 4bedd5dcaSJeremy L Thompsonstages: 5bedd5dcaSJeremy L Thompson - test:stage-lint 6f27266cbSJeremy L Thompson - test:stage-full 7a3c4661bSJames Wright - test:docs 8a3c4661bSJames Wright - deploy 9bedd5dcaSJeremy L Thompson 10bedd5dcaSJeremy L Thompson.test-basic: 11bedd5dcaSJeremy L Thompson interruptible: true 12bedd5dcaSJeremy L Thompson only: 13bedd5dcaSJeremy L Thompson refs: 14bedd5dcaSJeremy L Thompson - web 15bedd5dcaSJeremy L Thompson - merge_requests 16bedd5dcaSJeremy L Thompson 17bedd5dcaSJeremy L Thompson.test: 18bedd5dcaSJeremy L Thompson extends: .test-basic 19bedd5dcaSJeremy L Thompson only: 20bedd5dcaSJeremy L Thompson refs: 21bedd5dcaSJeremy L Thompson - web 22bedd5dcaSJeremy L Thompson - merge_requests 23bedd5dcaSJeremy L Thompson - main 24bedd5dcaSJeremy L Thompson - release 25bedd5dcaSJeremy L Thompson except: 26bedd5dcaSJeremy L Thompson variables: 27bedd5dcaSJeremy L Thompson # Skip if the No-Code label is attached to a merge request (i.e., documentation only) 28bedd5dcaSJeremy L Thompson - $CI_MERGE_REQUEST_LABELS =~ /(^|,)No-Code($|,)/ 29bedd5dcaSJeremy L Thompson needs: 30bedd5dcaSJeremy L Thompson - job: docker-build 31bedd5dcaSJeremy L Thompson optional: true 32bedd5dcaSJeremy L Thompson 33bedd5dcaSJeremy L Thompson.docs: 34bedd5dcaSJeremy L Thompson image: python:3.10 35bedd5dcaSJeremy L Thompson before_script: 36bedd5dcaSJeremy L Thompson - pip install -r doc/requirements.txt 37bedd5dcaSJeremy L Thompson - apt-get update 38bedd5dcaSJeremy L Thompson - apt-get install -y doxygen librsvg2-bin 39bedd5dcaSJeremy L Thompson 40bedd5dcaSJeremy L Thompson 41bedd5dcaSJeremy L Thompson# ---------------------------------------------------------------------------------------- 42bedd5dcaSJeremy L Thompson# Test formatting and static analysis 43bedd5dcaSJeremy L Thompson# ---------------------------------------------------------------------------------------- 44bedd5dcaSJeremy L Thompsonnoether-lint: 45bedd5dcaSJeremy L Thompson stage: test:stage-lint 46bedd5dcaSJeremy L Thompson extends: .test 47bedd5dcaSJeremy L Thompson tags: 48bedd5dcaSJeremy L Thompson - noether 49bedd5dcaSJeremy L Thompson - shell 50bedd5dcaSJeremy L Thompson needs: [] 51bedd5dcaSJeremy L Thompson script: 52bedd5dcaSJeremy L Thompson - rm -f .SUCCESS 53bedd5dcaSJeremy L Thompson # Environment 54bedd5dcaSJeremy L Thompson - export COVERAGE=1 CC=gcc HIPCC=hipcc 55bedd5dcaSJeremy L Thompson - echo "-------------- nproc ---------------" && NPROC_CPU=$(nproc) && NPROC_GPU=$(($(nproc)<8?$(nproc):8)) && echo "NPROC_CPU" $NPROC_CPU && echo "NPROC_GPU" $NPROC_GPU 56bedd5dcaSJeremy L Thompson - echo "-------------- CC ------------------" && $CC --version 57bedd5dcaSJeremy L Thompson - echo "-------------- GCOV ----------------" && gcov --version 58bedd5dcaSJeremy L Thompson - echo "-------------- HIPCC ---------------" && $HIPCC --version && export HIP_DIR=/opt/rocm 59bedd5dcaSJeremy L Thompson # Libraries 60bedd5dcaSJeremy L Thompson # -- libCEED 61bedd5dcaSJeremy L Thompson - echo "-------------- libCEED -------------" 62bedd5dcaSJeremy L Thompson - export CEED_DIR=/projects/honee/libCEED && git -C $CEED_DIR -c safe.directory=$CEED_DIR describe && make -C $CEED_DIR info 63bedd5dcaSJeremy L Thompson # -- PETSc 64bedd5dcaSJeremy L Thompson - echo "-------------- PETSc ---------------" 65bedd5dcaSJeremy L Thompson - export PETSC_DIR=/projects/honee/petsc 66bedd5dcaSJeremy L Thompson - export PETSC_ARCH=arch-serial-gpu && git -C $PETSC_DIR -c safe.directory=$PETSC_DIR describe && make -C $PETSC_DIR info 67bedd5dcaSJeremy L Thompson - export PETSC_OPTIONS='-malloc_debug no' # faster tests 68bedd5dcaSJeremy L Thompson - export LD_LIBRARY_PATH=$PETSC_DIR/lib PATH="$PATH:$PETSC_DIR/bin" # cgnsdiff 69bedd5dcaSJeremy L Thompson # make with Werror, Wall, supress loop vectorization warnings 70bedd5dcaSJeremy L Thompson - echo "-------------- make Werror ---------" 7174512b2dSJeremy L Thompson - PEDANTIC=1 PEDANTICFLAGS="-Werror -Wall -Wno-pass-failed" make -j$NPROC_CPU 72bedd5dcaSJeremy L Thompson # make format 73bedd5dcaSJeremy L Thompson - echo "-------------- make format ---------" && export CLANG_FORMAT=clang-format-15 && $CLANG_FORMAT --version 74bedd5dcaSJeremy L Thompson - make -j$NPROC_CPU format && git diff --color=always --exit-code 75bedd5dcaSJeremy L Thompson # Clang-tidy 76bedd5dcaSJeremy L Thompson - echo "-------------- clang-tidy ----------" && export CLANG_TIDY=clang-tidy-15 && $CLANG_TIDY --version 771bb043dcSJeremy L Thompson - PETSC_ARCH=arch-serial-gpu make -j$NPROC_CPU tidy 78bedd5dcaSJeremy L Thompson # Report status 79bedd5dcaSJeremy L Thompson - touch .SUCCESS 80bedd5dcaSJeremy L Thompson 81bedd5dcaSJeremy L Thompson 82bedd5dcaSJeremy L Thompson# ---------------------------------------------------------------------------------------- 83bedd5dcaSJeremy L Thompson# Test memory access assumptions 84bedd5dcaSJeremy L Thompson# ---------------------------------------------------------------------------------------- 85bedd5dcaSJeremy L Thompsonnoether-memcheck: 86f27266cbSJeremy L Thompson stage: test:stage-lint 87bedd5dcaSJeremy L Thompson extends: .test 88bedd5dcaSJeremy L Thompson tags: 89bedd5dcaSJeremy L Thompson - noether 90bedd5dcaSJeremy L Thompson - shell 91bedd5dcaSJeremy L Thompson needs: [] 92bedd5dcaSJeremy L Thompson script: 93bedd5dcaSJeremy L Thompson - rm -f .SUCCESS 94bedd5dcaSJeremy L Thompson # Environment 95bedd5dcaSJeremy L Thompson # -- NOTE: Coverage disabled because it doesn't play nice with the ASAN options 96bedd5dcaSJeremy L Thompson - export CC=clang-15 97bedd5dcaSJeremy L Thompson - export NPROC_POOL=8 98bedd5dcaSJeremy L Thompson - echo "-------------- nproc ---------------" && NPROC_CPU=$(nproc) && NPROC_GPU=$(($(nproc)<8?$(nproc):8)) && echo "NPROC_CPU" $NPROC_CPU && echo "NPROC_GPU" $NPROC_GPU 99bedd5dcaSJeremy L Thompson - echo "-------------- CC ------------------" && $CC --version 100bedd5dcaSJeremy L Thompson # Libraries 101bedd5dcaSJeremy L Thompson # -- libCEED 102bedd5dcaSJeremy L Thompson - echo "-------------- libCEED -------------" 103bedd5dcaSJeremy L Thompson - export CEED_DIR=/projects/honee/libCEED-cpu && git -C $CEED_DIR -c safe.directory=$CEED_DIR describe && make -C $CEED_DIR info 104bedd5dcaSJeremy L Thompson # -- PETSc 105bedd5dcaSJeremy L Thompson - echo "-------------- PETSc ---------------" 106bedd5dcaSJeremy L Thompson - export PETSC_DIR=/projects/honee/petsc 107bedd5dcaSJeremy L Thompson - export PETSC_ARCH=arch-serial-cpu-clang && git -C $PETSC_DIR -c safe.directory=$PETSC_DIR describe && make -C $PETSC_DIR info 108bedd5dcaSJeremy L Thompson - export PETSC_OPTIONS='-malloc_debug no' # faster tests 109bedd5dcaSJeremy L Thompson - export LD_LIBRARY_PATH=$PETSC_DIR/lib PATH="$PATH:$PETSC_DIR/bin" # cgnsdiff 110bedd5dcaSJeremy L Thompson # ASAN 111bedd5dcaSJeremy L Thompson - echo "-------------- ASAN ----------------" 11203f5db93SJeremy L Thompson - echo "ASAN intentionlly skipped, known leaks" 11303f5db93SJeremy L Thompson # - export ASAN=1 AFLAGS="-fsanitize=address -fsanitize=leak" 114bedd5dcaSJeremy L Thompson - echo $AFLAGS 115bedd5dcaSJeremy L Thompson # HONEE 116bedd5dcaSJeremy L Thompson - echo "-------------- HONEE ---------------" && make info 117bedd5dcaSJeremy L Thompson - make clean 11874512b2dSJeremy L Thompson - make -j$NPROC_CPU 119bedd5dcaSJeremy L Thompson # Test suite 120bedd5dcaSJeremy L Thompson - echo "-------------- HONEE tests ---------" 121bedd5dcaSJeremy L Thompson - 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 122bedd5dcaSJeremy L Thompson # -- Memcheck libCEED CPU backend, serial 123e97df35aSJeremy L Thompson - NPROC_TEST=1 make -k -j$((NPROC_CPU / NPROC_POOL)) CEED_BACKENDS="/cpu/self/memcheck" JUNIT_BATCH="cpu-serial-memcheck" junit search=navierstokes 124bedd5dcaSJeremy L Thompson # Report status 125bedd5dcaSJeremy L Thompson - touch .SUCCESS 126bedd5dcaSJeremy L Thompson artifacts: 127bedd5dcaSJeremy L Thompson paths: 128bedd5dcaSJeremy L Thompson - build/*.junit 129bedd5dcaSJeremy L Thompson reports: 130bedd5dcaSJeremy L Thompson junit: build/*.junit 131bedd5dcaSJeremy L Thompson performance: performance.json 132bedd5dcaSJeremy L Thompson expire_in: 28 days 133bedd5dcaSJeremy L Thompson 134bedd5dcaSJeremy L Thompson 135bedd5dcaSJeremy L Thompson# ---------------------------------------------------------------------------------------- 136bedd5dcaSJeremy L Thompson# CPU testing on Noether 137bedd5dcaSJeremy L Thompson# ---------------------------------------------------------------------------------------- 138bedd5dcaSJeremy L Thompsonnoether-cpu: 139f27266cbSJeremy L Thompson stage: test:stage-full 140bedd5dcaSJeremy L Thompson extends: .test 141bedd5dcaSJeremy L Thompson tags: 142bedd5dcaSJeremy L Thompson - noether 143bedd5dcaSJeremy L Thompson - shell 144bedd5dcaSJeremy L Thompson script: 145bedd5dcaSJeremy L Thompson - rm -f .SUCCESS 146bedd5dcaSJeremy L Thompson # Environment 147bedd5dcaSJeremy L Thompson - export COVERAGE=1 CC=gcc HIPCC=hipcc 148bedd5dcaSJeremy L Thompson - export NPROC_POOL=4 149bedd5dcaSJeremy L Thompson - echo "-------------- nproc ---------------" && NPROC_CPU=$(nproc) && NPROC_GPU=$(($(nproc)<8?$(nproc):8)) && echo "NPROC_CPU" $NPROC_CPU && echo "NPROC_GPU" $NPROC_GPU 150bedd5dcaSJeremy L Thompson - echo "-------------- CC ------------------" && $CC --version 151bedd5dcaSJeremy L Thompson - echo "-------------- GCOV ----------------" && gcov --version 152bedd5dcaSJeremy L Thompson - echo "-------------- HIPCC ---------------" && $HIPCC --version && export HIP_DIR=/opt/rocm 153bedd5dcaSJeremy L Thompson # Libraries 154bedd5dcaSJeremy L Thompson # -- libCEED 155bedd5dcaSJeremy L Thompson - echo "-------------- libCEED -------------" 156bedd5dcaSJeremy L Thompson - export CEED_DIR=/projects/honee/libCEED && git -C $CEED_DIR -c safe.directory=$CEED_DIR describe && make -C $CEED_DIR info 157bedd5dcaSJeremy L Thompson # -- PETSc 158bedd5dcaSJeremy L Thompson - echo "-------------- PETSc ---------------" 159bedd5dcaSJeremy L Thompson - export PETSC_DIR=/projects/honee/petsc 160bedd5dcaSJeremy L Thompson - export PETSC_ARCH=arch-parallel-gpu && git -C $PETSC_DIR -c safe.directory=$PETSC_DIR describe && make -C $PETSC_DIR info 161bedd5dcaSJeremy L Thompson - export PETSC_OPTIONS='-malloc_debug no' # faster tests 162bedd5dcaSJeremy L Thompson - export LD_LIBRARY_PATH=$PETSC_DIR/$PETSC_ARCH/lib PATH="$PATH:$PETSC_DIR/$PETSC_ARCH/bin" # cgnsdiff 163bedd5dcaSJeremy L Thompson # HONEE 164bedd5dcaSJeremy L Thompson - echo "-------------- HONEE ---------------" && make info 165bedd5dcaSJeremy L Thompson - make clean 16674512b2dSJeremy L Thompson - make -j$NPROC_CPU 167bedd5dcaSJeremy L Thompson # Test suite 168bedd5dcaSJeremy L Thompson - echo "-------------- HONEE tests ---------" 169bedd5dcaSJeremy L Thompson - 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 170bedd5dcaSJeremy L Thompson # -- Fastest libCEED CPU backend, parallel 171a447840aSJeremy L Thompson - echo "Parallel tests skipped for now" 172*67f3e659SJames Wright - source /home/phypid/spack/share/spack/setup-env.sh && spack load py-torch@2.3+cuda && export USE_TORCH=1 173*67f3e659SJames Wright - export SMARTREDIS_DIR=/home/phypid/SmartSimTestingSoftware/smartredis/install 174869763b2SJeremy L Thompson - NPROC_TEST=1 make -k -j$((NPROC_CPU / NPROC_POOL / 1)) CEED_BACKENDS="/cpu/self" JUNIT_BATCH="cpu-serial" junit search=navierstokes 175*67f3e659SJames Wright - spack unload py-torch@2.3+cuda && export USE_TORCH=0 176*67f3e659SJames Wright - source /home/phypid/SmartSimTestingSoftware/bin/activate 177*67f3e659SJames Wright - NPROC_TEST=1 make -k -j$((NPROC_CPU / NPROC_POOL / 1)) CEED_BACKENDS="/cpu/self" JUNIT_BATCH="cpu-serial" junit search="test-smartsim" 178bedd5dcaSJeremy L Thompson # Report status 179bedd5dcaSJeremy L Thompson - touch .SUCCESS 180bedd5dcaSJeremy L Thompson after_script: 181bedd5dcaSJeremy L Thompson - | 182bedd5dcaSJeremy L Thompson if [ -f .SUCCESS ]; then 183bedd5dcaSJeremy L Thompson gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml; 184bedd5dcaSJeremy L Thompson fi 1852ef79a07SJeremy L Thompson coverage: '/^lines:\s+(\d+.\d\%)/' 186bedd5dcaSJeremy L Thompson artifacts: 187bedd5dcaSJeremy L Thompson paths: 188bedd5dcaSJeremy L Thompson - coverage.xml 189bedd5dcaSJeremy L Thompson - build/*.junit 190bedd5dcaSJeremy L Thompson reports: 191bedd5dcaSJeremy L Thompson coverage_report: 192bedd5dcaSJeremy L Thompson coverage_format: cobertura 193bedd5dcaSJeremy L Thompson path: coverage.xml 194bedd5dcaSJeremy L Thompson junit: build/*.junit 195bedd5dcaSJeremy L Thompson performance: performance.json 196bedd5dcaSJeremy L Thompson expire_in: 28 days 197bedd5dcaSJeremy L Thompson 198bedd5dcaSJeremy L Thompson 199bedd5dcaSJeremy L Thompson# ---------------------------------------------------------------------------------------- 20004c6cceaSJeremy L Thompson# CPU Int64 testing on Noether 20104c6cceaSJeremy L Thompson# ---------------------------------------------------------------------------------------- 20204c6cceaSJeremy L Thompsonnoether-cpu-int64: 20304c6cceaSJeremy L Thompson stage: test:stage-full 20404c6cceaSJeremy L Thompson extends: .test 20504c6cceaSJeremy L Thompson tags: 20604c6cceaSJeremy L Thompson - noether 20704c6cceaSJeremy L Thompson - shell 20804c6cceaSJeremy L Thompson script: 20904c6cceaSJeremy L Thompson - rm -f .SUCCESS 21004c6cceaSJeremy L Thompson # Environment 21104c6cceaSJeremy L Thompson - export COVERAGE=1 CC=gcc HIPCC=hipcc 21204c6cceaSJeremy L Thompson - export NPROC_POOL=4 21304c6cceaSJeremy L Thompson - echo "-------------- nproc ---------------" && NPROC_CPU=$(nproc) && NPROC_GPU=$(($(nproc)<8?$(nproc):8)) && echo "NPROC_CPU" $NPROC_CPU && echo "NPROC_GPU" $NPROC_GPU 21404c6cceaSJeremy L Thompson - echo "-------------- CC ------------------" && $CC --version 21504c6cceaSJeremy L Thompson - echo "-------------- GCOV ----------------" && gcov --version 21604c6cceaSJeremy L Thompson - echo "-------------- HIPCC ---------------" && $HIPCC --version && export HIP_DIR=/opt/rocm 21704c6cceaSJeremy L Thompson # Libraries 21804c6cceaSJeremy L Thompson # -- libCEED 21904c6cceaSJeremy L Thompson - echo "-------------- libCEED -------------" 22004c6cceaSJeremy L Thompson - export CEED_DIR=/projects/honee/libCEED && git -C $CEED_DIR -c safe.directory=$CEED_DIR describe && make -C $CEED_DIR info 22104c6cceaSJeremy L Thompson # -- PETSc 22204c6cceaSJeremy L Thompson - echo "-------------- PETSc ---------------" 22304c6cceaSJeremy L Thompson - export PETSC_DIR=/projects/honee/petsc 22404c6cceaSJeremy L Thompson - export PETSC_ARCH=arch-serial-cpu-int64 && git -C $PETSC_DIR -c safe.directory=$PETSC_DIR describe && make -C $PETSC_DIR info 22504c6cceaSJeremy L Thompson - export PETSC_OPTIONS='-malloc_debug no' # faster tests 22604c6cceaSJeremy L Thompson - export LD_LIBRARY_PATH=$PETSC_DIR/$PETSC_ARCH/lib PATH="$PATH:$PETSC_DIR/$PETSC_ARCH/bin" # cgnsdiff 22704c6cceaSJeremy L Thompson # HONEE 22804c6cceaSJeremy L Thompson - echo "-------------- HONEE ---------------" && make info 22904c6cceaSJeremy L Thompson - make clean 23004c6cceaSJeremy L Thompson - make -j$NPROC_CPU 23104c6cceaSJeremy L Thompson # Test suite 23204c6cceaSJeremy L Thompson - echo "-------------- HONEE tests ---------" 23304c6cceaSJeremy L Thompson - 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 23404c6cceaSJeremy L Thompson # -- Fastest libCEED CPU backend, serial 235*67f3e659SJames Wright - source /home/phypid/spack/share/spack/setup-env.sh && spack load py-torch@2.3+cuda && export USE_TORCH=1 236*67f3e659SJames Wright - export SMARTREDIS_DIR=/home/phypid/SmartSimTestingSoftware/smartredis/install 23704c6cceaSJeremy L Thompson - NPROC_TEST=1 make -k -j$((NPROC_CPU / NPROC_POOL / 1)) CEED_BACKENDS="/cpu/self" JUNIT_BATCH="cpu-serial-int64" junit search=navierstokes 238*67f3e659SJames Wright - spack unload py-torch@2.3+cuda && export USE_TORCH=0 239*67f3e659SJames Wright - source /home/phypid/SmartSimTestingSoftware/bin/activate 240*67f3e659SJames Wright - NPROC_TEST=1 make -k -j$((NPROC_CPU / NPROC_POOL / 1)) CEED_BACKENDS="/cpu/self" JUNIT_BATCH="cpu-serial" junit search="test-py-smartsim_regression_framework" 24104c6cceaSJeremy L Thompson # Report status 24204c6cceaSJeremy L Thompson - touch .SUCCESS 24304c6cceaSJeremy L Thompson after_script: 24404c6cceaSJeremy L Thompson - | 24504c6cceaSJeremy L Thompson if [ -f .SUCCESS ]; then 24604c6cceaSJeremy L Thompson gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml; 24704c6cceaSJeremy L Thompson fi 24804c6cceaSJeremy L Thompson coverage: '/^lines:\s+(\d+.\d\%)/' 24904c6cceaSJeremy L Thompson artifacts: 25004c6cceaSJeremy L Thompson paths: 25104c6cceaSJeremy L Thompson - coverage.xml 25204c6cceaSJeremy L Thompson - build/*.junit 25304c6cceaSJeremy L Thompson reports: 25404c6cceaSJeremy L Thompson coverage_report: 25504c6cceaSJeremy L Thompson coverage_format: cobertura 25604c6cceaSJeremy L Thompson path: coverage.xml 25704c6cceaSJeremy L Thompson junit: build/*.junit 25804c6cceaSJeremy L Thompson performance: performance.json 25904c6cceaSJeremy L Thompson expire_in: 28 days 26004c6cceaSJeremy L Thompson 26104c6cceaSJeremy L Thompson 26204c6cceaSJeremy L Thompson# ---------------------------------------------------------------------------------------- 263bedd5dcaSJeremy L Thompson# GPU testing on Noether 264bedd5dcaSJeremy L Thompson# ---------------------------------------------------------------------------------------- 265bedd5dcaSJeremy L Thompsonnoether-gpu: 266f27266cbSJeremy L Thompson stage: test:stage-full 267bedd5dcaSJeremy L Thompson extends: .test 268bedd5dcaSJeremy L Thompson tags: 269bedd5dcaSJeremy L Thompson - noether 270bedd5dcaSJeremy L Thompson - shell 271bedd5dcaSJeremy L Thompson script: 272bedd5dcaSJeremy L Thompson - rm -f .SUCCESS 273bedd5dcaSJeremy L Thompson # Environment 274bedd5dcaSJeremy L Thompson - export COVERAGE=1 CC=gcc HIPCC=hipcc 275bedd5dcaSJeremy L Thompson - export NPROC_POOL=4 276bedd5dcaSJeremy L Thompson - echo "-------------- nproc ---------------" && NPROC_CPU=$(nproc) && NPROC_GPU=$(($(nproc)<8?$(nproc):8)) && echo "NPROC_CPU" $NPROC_CPU && echo "NPROC_GPU" $NPROC_GPU 277bedd5dcaSJeremy L Thompson - echo "-------------- CC ------------------" && $CC --version 278bedd5dcaSJeremy L Thompson - echo "-------------- GCOV ----------------" && gcov --version 279bedd5dcaSJeremy L Thompson - echo "-------------- HIPCC ---------------" && $HIPCC --version && export HIP_DIR=/opt/rocm 280bedd5dcaSJeremy L Thompson # Libraries 281bedd5dcaSJeremy L Thompson # -- libCEED 282bedd5dcaSJeremy L Thompson - echo "-------------- libCEED -------------" 283bedd5dcaSJeremy L Thompson - export CEED_DIR=/projects/honee/libCEED && git -C $CEED_DIR -c safe.directory=$CEED_DIR describe && make -C $CEED_DIR info 284bedd5dcaSJeremy L Thompson # -- PETSc 285bedd5dcaSJeremy L Thompson - echo "-------------- PETSc ---------------" 286bedd5dcaSJeremy L Thompson - export PETSC_DIR=/projects/honee/petsc 287bedd5dcaSJeremy L Thompson - export PETSC_ARCH=arch-parallel-gpu && git -C $PETSC_DIR -c safe.directory=$PETSC_DIR describe && make -C $PETSC_DIR info 288bedd5dcaSJeremy L Thompson - export PETSC_OPTIONS='-malloc_debug no' # faster tests 289bedd5dcaSJeremy L Thompson - export LD_LIBRARY_PATH=$PETSC_DIR/$PETSC_ARCH/lib PATH="$PATH:$PETSC_DIR/$PETSC_ARCH/bin" # cgnsdiff 290bedd5dcaSJeremy L Thompson # HONEE 291bedd5dcaSJeremy L Thompson - echo "-------------- HONEE ---------------" && make info 292bedd5dcaSJeremy L Thompson - make clean 29374512b2dSJeremy L Thompson - make -j$NPROC_CPU 294bedd5dcaSJeremy L Thompson # Test suite 295bedd5dcaSJeremy L Thompson - echo "-------------- HONEE tests ---------" 296bedd5dcaSJeremy L Thompson - 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 297bedd5dcaSJeremy L Thompson # -- Fastest libCEED HIP backend, serial 298b6ee1185SJeremy L Thompson # Note: /shared is faster due to /gen JiT time for CeedOperators overwhelming runtime improvements at these problem sizes 299e97df35aSJeremy L Thompson - NPROC_TEST=1 make -k -j$((NPROC_GPU / NPROC_POOL / 1)) CEED_BACKENDS="/gpu/hip/shared" JUNIT_BATCH="hip-serial" junit search=navierstokes 300bedd5dcaSJeremy L Thompson # Report status 301bedd5dcaSJeremy L Thompson - touch .SUCCESS 302bedd5dcaSJeremy L Thompson after_script: 303bedd5dcaSJeremy L Thompson - | 304bedd5dcaSJeremy L Thompson if [ -f .SUCCESS ]; then 305bedd5dcaSJeremy L Thompson gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml; 306bedd5dcaSJeremy L Thompson fi 3072ef79a07SJeremy L Thompson coverage: '/^lines:\s+(\d+.\d\%)/' 308bedd5dcaSJeremy L Thompson artifacts: 309bedd5dcaSJeremy L Thompson paths: 310bedd5dcaSJeremy L Thompson - coverage.xml 311bedd5dcaSJeremy L Thompson - build/*.junit 312bedd5dcaSJeremy L Thompson reports: 313bedd5dcaSJeremy L Thompson coverage_report: 314bedd5dcaSJeremy L Thompson coverage_format: cobertura 315bedd5dcaSJeremy L Thompson path: coverage.xml 316bedd5dcaSJeremy L Thompson junit: build/*.junit 317bedd5dcaSJeremy L Thompson performance: performance.json 318bedd5dcaSJeremy L Thompson expire_in: 28 days 319a3c4661bSJames Wright 320a3c4661bSJames Wright 321a3c4661bSJames Wright# ---------------------------------------------------------------------------------------- 322a3c4661bSJames Wright# Build documentation 323a3c4661bSJames Wright# ---------------------------------------------------------------------------------------- 324a3c4661bSJames Wrightdocs-review: 325a3c4661bSJames Wright stage: test:docs 326a3c4661bSJames Wright tags: 327a3c4661bSJames Wright - noether 328a3c4661bSJames Wright - docker 329a3c4661bSJames Wright extends: 330a3c4661bSJames Wright - .docs 331a3c4661bSJames Wright - .test-basic 332a3c4661bSJames Wright interruptible: true 333a3c4661bSJames Wright script: 334a3c4661bSJames Wright - export PETSC_DIR=/projects/honee/petsc PETSC_ARCH=arch-parallel-gpu CEED_DIR=/projects/honee/libCEED 335a3c4661bSJames Wright - git submodule update --init 336a3c4661bSJames Wright - make doc-html pkgconf=true DOXYGENOPTS= SPHINXOPTS=-W 337a3c4661bSJames Wright - mv doc/build/html public 338a3c4661bSJames Wright artifacts: 339a3c4661bSJames Wright paths: 340a3c4661bSJames Wright - public 341a3c4661bSJames Wright expire_in: 28 days 342a3c4661bSJames Wright environment: 343a3c4661bSJames Wright name: review/$CI_COMMIT_REF_NAME 344a3c4661bSJames Wright url: https://$CI_PROJECT_NAMESPACE.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/public/index.html 345a3c4661bSJames Wright 346a3c4661bSJames Wright 347a3c4661bSJames Wright# ---------------------------------------------------------------------------------------- 348a3c4661bSJames Wright# Deploy documentation using GitLab pages 349a3c4661bSJames Wright# ---------------------------------------------------------------------------------------- 350a3c4661bSJames Wrightpages: # this job name has special meaning to GitLab 351a3c4661bSJames Wright stage: deploy 352a3c4661bSJames Wright tags: 353a3c4661bSJames Wright - noether 354a3c4661bSJames Wright - docker 355a3c4661bSJames Wright extends: .docs 356a3c4661bSJames Wright interruptible: false 357a3c4661bSJames Wright script: 358a3c4661bSJames Wright - git submodule update --init 359a3c4661bSJames Wright - make doc-dirhtml pkgconf=true DOXYGENOPTS= 360a3c4661bSJames Wright - mv doc/build/dirhtml public 361a3c4661bSJames Wright only: 362a3c4661bSJames Wright - main 363a3c4661bSJames Wright artifacts: 364a3c4661bSJames Wright paths: 365a3c4661bSJames Wright - public 366