diff --git a/.github/workflows/ci-github-actions.yaml b/.github/workflows/ci-github-actions.yaml index f9b540c252..e37814c47f 100644 --- a/.github/workflows/ci-github-actions.yaml +++ b/.github/workflows/ci-github-actions.yaml @@ -26,7 +26,7 @@ jobs: clang-openmpi-real-asan, clang-openmpi-complex-asan, clang-openmpi-real-ubsan, - clang-latest-openmp-offload-build + clang-latest-openmp-offload ] include: - jobname: gcc-openmpi-real-coverage @@ -54,7 +54,7 @@ jobs: image: williamfgc/qmcpack-ci:ubuntu20-openmpi options: -u 1001 - - jobname: clang-latest-openmp-offload-build + - jobname: clang-latest-openmp-offload container: image: williamfgc/qmcpack-ci:ubuntu20-clang-latest options: -u 1001 @@ -70,7 +70,6 @@ jobs: run: tests/test_automation/github-actions/ci/run_step.sh build - name: Test - if: "!contains(matrix.jobname, 'build')" run: tests/test_automation/github-actions/ci/run_step.sh test - name: Coverage diff --git a/tests/test_automation/github-actions/ci/run_step.sh b/tests/test_automation/github-actions/ci/run_step.sh index ea6e17a387..d9acf601fb 100755 --- a/tests/test_automation/github-actions/ci/run_step.sh +++ b/tests/test_automation/github-actions/ci/run_step.sh @@ -61,8 +61,8 @@ case "$1" in -DQMC_COMPLEX=$IS_COMPLEX \ ${GITHUB_WORKSPACE} ;; - *"offload-build"*) - echo 'Configure for building OpenMP offload with clang on x86_64' + *"clang-latest-openmp-offload"*) + echo 'Configure for building OpenMP offload with clang-12 on x86_64' cmake -GNinja -DCMAKE_C_COMPILER=clang-12 -DCMAKE_CXX_COMPILER=clang++-12 \ -DENABLE_OFFLOAD=ON -DOFFLOAD_TARGET=x86_64-pc-linux-gnu \ -DUSE_OBJECT_TARGET=ON -DQMC_MPI=0 \ @@ -103,15 +103,17 @@ case "$1" in export LSAN_OPTIONS=suppressions=${GITHUB_WORKSPACE}/config/sanitizers/lsan.supp fi - # Enable libomptarget.so - if [[ "${GH_JOBNAME}" =~ (clang-latest) ]] + # Run only deterministic tests (reasonable for CI) by default + TEST_LABEL=deterministic + if [[ "${GH_JOBNAME}" =~ (clang-latest-openmp-offload) ]] then - echo "Adding /usr/lib/llvm-12/lib/ to LD_LIBRARY_PATH" + echo "Adding /usr/lib/llvm-12/lib/ to LD_LIBRARY_PATH to enable libomptarget.so" export LD_LIBRARY_PATH=/usr/lib/llvm-12/lib/:${LD_LIBRARY_PATH} + # Run only unit tests (reasonable for CI using openmp-offload) + TEST_LABEL=unit fi - # Run only deterministic tests (reasonable for CI) - ctest --output-on-failure -L deterministic + ctest --output-on-failure -L $TEST_LABEL ;; # Generate coverage reports