sycl #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: sycl | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "22 22 * * 6" | |
concurrency: | |
group: ${{ github.ref }}-${{ github.head_ref }}-sycl | |
cancel-in-progress: true | |
jobs: | |
Tests-gmake: | |
name: SYCL Tests & GNU Make | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Dependencies | |
run: | | |
.github/workflows/dependencies/dependencies_dpcpp.sh | |
- name: Tests | |
run: | | |
set +e | |
source /opt/intel/oneapi/setvars.sh | |
set -e | |
cd Tests/GPU | |
make -j4 USE_SYCL=TRUE | |
Tests-cmake: | |
name: SYCL Tests & CMake | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Dependencies | |
run: | | |
.github/workflows/dependencies/dependencies_dpcpp.sh | |
- name: Tests | |
run: | | |
set +e | |
source /opt/intel/oneapi/setvars.sh | |
set -e | |
mkdir build | |
cd build | |
cmake .. \ | |
-DCMAKE_INSTALL_PREFIX=../sycl_installdir \ | |
-DENABLE_SYCL=ON \ | |
-DCMAKE_CXX_COMPILER=icpx \ | |
-DENABLE_TESTS=ON | |
make -j4 VERBOSE=ON | |
make install | |
Tutorials-cmake: | |
name: SYCL Tutorials & CMake | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Dependencies | |
run: | | |
.github/workflows/dependencies/dependencies_dpcpp.sh | |
- name: Tests | |
run: | | |
set +e | |
source /opt/intel/oneapi/setvars.sh | |
set -e | |
mkdir build | |
cd build | |
cmake .. \ | |
-DCMAKE_INSTALL_PREFIX=../sycl_installdir \ | |
-DENABLE_SYCL=ON \ | |
-DCMAKE_CXX_COMPILER=icpx | |
make -j4 VERBOSE=ON | |
make install | |
cd ../Tutorials/libamrexpr | |
mkdir build | |
cd build | |
cmake .. \ | |
-DCMAKE_PREFIX_PATH=$(realpath ../../../sycl_installdir) \ | |
-DENABLE_SYCL=ON \ | |
-DCMAKE_CXX_COMPILER=icpx | |
make -j4 VERBOSE=ON |