Skip to content

Commit

Permalink
Add OMP CI
Browse files Browse the repository at this point in the history
Add an additional step to the CI to test the OpenMP acceleration. This was previously tested alongside the GPU setup but was deactivated in !427 to avoid Ginkgo issues. It is now restored.

See merge request gysela-developpers/gyselalibxx!434

--------------------------------------------

Co-authored-by: Thomas Padioleau <[email protected]>
  • Loading branch information
EmilyBourne and tpadioleau committed Apr 8, 2024
1 parent c4f8b5f commit b81445d
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cmake_tests:
rm -rf build || true
mkdir build
cd build
cmake -DCMAKE_CXX_FLAGS="-Wall -Werror=unused-variable -Wno-sign-compare" -DBUILD_BENCHMARKS=ON $GENERAL_CMAKE_OPTIONS ..
cmake -DCMAKE_CXX_FLAGS="-Wall -Werror=unused-variable -Wno-sign-compare" -DBUILD_BENCHMARKS=ON $GENERAL_CMAKE_OPTIONS -DKokkos_ENABLE_SERIAL=ON ..
make -j 4
ctest -j 2 --output-on-failure --timeout 5 -LE test_on_Release_only --output-junit tests.xml
artifacts:
Expand All @@ -30,7 +30,7 @@ cmake_tests_Release:
rm -rf build || true
mkdir build
cd build
cmake -DCMAKE_CXX_FLAGS="-Wall -Wno-sign-compare" -DBUILD_BENCHMARKS=ON -DCMAKE_BUILD_TYPE=Release $GENERAL_CMAKE_OPTIONS ..
cmake -DCMAKE_CXX_FLAGS="-Wall -Wno-sign-compare" -DBUILD_BENCHMARKS=ON -DCMAKE_BUILD_TYPE=Release $GENERAL_CMAKE_OPTIONS -DKokkos_ENABLE_SERIAL=ON ..
make -j 4
ctest -j 2 --output-on-failure --timeout 5 --output-junit tests.xml
ls ./tests/geometryXVx/landau/fft/growthrate_t0.0to45.0.png
Expand All @@ -44,6 +44,29 @@ cmake_tests_Release:
reports:
junit: ./build/tests.xml

cmake_tests_Release_OMP:
extends: .cmake_tests
image: ghcr.io/gyselax/gyselalibxx_env
script: |
set -x
git config --global --add safe.directory /builds/gysela-developpers/gyselalibxx/vendor/kokkos
rm -rf build || true
mkdir build
cd build
cmake -DCMAKE_CXX_FLAGS="-Wall -Wno-sign-compare" -DBUILD_BENCHMARKS=ON -DCMAKE_BUILD_TYPE=Release $GENERAL_CMAKE_OPTIONS -DKokkos_ENABLE_OPENMP=ON ..
make -j 4
OMP_NUM_THREADS=2 ctest -j 2 --output-on-failure --timeout 5 --output-junit tests.xml
ls ./tests/geometryXVx/landau/fft/growthrate_t0.0to45.0.png
ls ./tests/geometryXVx/landau/fft/frequency_t0.0to45.0.png
artifacts:
when: always
expire_in: 1 day
paths:
- ./build/tests/geometryXVx/landau/fft/growthrate_t0.0to45.0.png
- ./build/tests/geometryXVx/landau/fft/frequency_t0.0to45.0.png
reports:
junit: ./build/tests.xml

cmake_tests_Release_GPU:
extends: .cmake_tests
tags:
Expand Down

0 comments on commit b81445d

Please sign in to comment.