diff --git a/.github/workflows/e2e_nightly.yml b/.github/workflows/e2e_nightly.yml index eebb1f7bfa..ce20b1e078 100644 --- a/.github/workflows/e2e_nightly.yml +++ b/.github/workflows/e2e_nightly.yml @@ -1,17 +1,20 @@ name: E2E Nightly -on: - schedule: - # Run every day at 23:00 UTC - - cron: '0 23 * * *' +on: [push, pull_request] +#on: +# schedule: +# # Run every day at 23:00 UTC +# - cron: '0 23 * * *' jobs: e2e-build-hw: + timeout-minutes: 720 name: Build SYCL, UR, run E2E strategy: matrix: adapter: [ - {name: CUDA} + {name: CUDA, str_name: cuda, prefix: "ext_oneapi_", config: "--cuda --hip", unit: "gpu"}, + {name: OPENCL, str_name: opencl, prefix: "", config: "", unit: "cpu"} ] build_type: [Release] compiler: [{c: clang, cxx: clang++}] @@ -59,12 +62,18 @@ jobs: run: LD_LIBRARY_PATH=${{github.workspace}}/dpcpp_compiler/lib cmake --build ${{github.workspace}}/ur-repo/build -j $(nproc) - - name: Set env vars & pre setup + - name: Set prefer UR + run: echo "SYCL_PREFER_UR=1" >> $GITHUB_ENV + + - name: Set CUDA env vars + if: matrix.adapter.name == 'CUDA' run: | - echo "SYCL_PREFER_UR=1" >> $GITHUB_ENV echo "CUDA_LIB_PATH=/usr/local/cuda/lib64/stubs" >> $GITHUB_ENV echo "LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH" >> $GITHUB_ENV - source /opt/intel/oneapi/setvars.sh + + - name: Run pre setup + run: | + source /opt/intel/oneapi/setvars.sh --force sycl-ls - name: Configure SYCL @@ -73,7 +82,7 @@ jobs: -t ${{matrix.build_type}} -o ${{github.workspace}}/sycl_build --cmake-gen "Unix Makefiles" - --ci-defaults --cuda --hip + --ci-defaults ${{matrix.adapter.config}} --cmake-opt="-DLLVM_INSTALL_UTILS=ON" --cmake-opt="-DSYCL_PI_TESTS=OFF" --cmake-opt=-DCMAKE_C_COMPILER_LAUNCHER=ccache @@ -91,7 +100,7 @@ jobs: - name: Swap UR loader and adapters run: | cp ${{github.workspace}}/ur-repo/build/lib/libur_loader.so* ${{github.workspace}}/sycl_build/lib/ - cp ${{github.workspace}}/ur-repo/build/lib/libur_adapter_cuda.so* ${{github.workspace}}/sycl_build/lib/ + cp ${{github.workspace}}/ur-repo/build/lib/libur_adapter_${{matrix.adapter.str_name}}.so* ${{github.workspace}}/sycl_build/lib/ - name: Set additional env. vars run: | @@ -110,7 +119,7 @@ jobs: -GNinja -B ${{github.workspace}}/build-e2e/ -S ${{github.workspace}}/sycl-repo/sycl/test-e2e/ - -DSYCL_TEST_E2E_TARGETS="ext_oneapi_cuda:gpu" + -DSYCL_TEST_E2E_TARGETS="${{matrix.adapter.prefix}}${{matrix.adapter.str_name}}:${{matrix.adapter.unit}}" -DCMAKE_CXX_COMPILER="$(which clang++)" -DLLVM_LIT="${{github.workspace}}/sycl-repo/llvm/utils/lit/lit.py"