@@ -5,7 +5,7 @@ on: [push, pull_request]
55jobs :
66 test-clang-based :
77 name : clang ${{ matrix.clang_version }}, ${{ matrix.os }}, CUDA ${{matrix.cuda}}
8- runs-on : ${{ matrix.os }}
8+ runs-on : ubuntu-20.04
99 strategy :
1010 matrix :
1111 clang_version : [13]
5454 git clone https://github.com/illuhad/hipSYCL.git
5555 cd hipSYCL
5656 mkdir build && cd build
57- cmake -DCMAKE_CXX_COMPILER=/usr/bin/clang++-${{matrix.clang_version}} -DCLANG_EXECUTABLE_PATH=/usr/bin/clang++-${{matrix.clang_version}} -DLLVM_DIR=/usr/lib/llvm-${{matrix.clang_version}}/cmake -DWITH_CUDA_BACKEND=ON -DWITH_ROCM_BACKEND=ON -DWITH_LEVEL_ZERO_BACKEND=ON -DCMAKE_INSTALL_PREFIX=`pwd`/install -DCUDA_TOOLKIT_ROOT_DIR=/opt/hipSYCL/cuda -DROCM_PATH=/opt/rocm ..
57+ cmake -DCMAKE_CXX_COMPILER=/usr/bin/clang++-${{matrix.clang_version}} -DCLANG_EXECUTABLE_PATH=/usr/bin/clang++-${{matrix.clang_version}} -DLLVM_DIR=/usr/lib/llvm-${{matrix.clang_version}}/cmake -DWITH_CUDA_BACKEND=ON -DWITH_ROCM_BACKEND=ON -DWITH_LEVEL_ZERO_BACKEND=OFF -DCMAKE_INSTALL_PREFIX=`pwd`/install -DCUDA_TOOLKIT_ROOT_DIR=/opt/hipSYCL/cuda -DROCM_PATH=/opt/rocm ..
5858 make -j2 install
5959 cp /opt/hipSYCL/cuda/lib64/stubs/libcuda.so `pwd`/install/lib/libcuda.so
6060 cp /opt/hipSYCL/cuda/lib64/stubs/libcuda.so `pwd`/install/lib/libcuda.so.1
8080 run : |
8181 cd /home/runner/work/hipSYCL/hipSYCL/build/tests-cpu
8282 LD_LIBRARY_PATH=/home/runner/work/hipSYCL/hipSYCL/build/install/lib ./sycl_tests
83+
84+ test-dpcpp-based :
85+ name : Test dpcpp based compilation
86+ runs-on : ubuntu-20.04
87+ steps :
88+ - uses : actions/checkout@v2
89+ with :
90+ submodules : ' recursive'
91+ - name : Install dpcpp
92+ run : |
93+ wget https://registrationcenter-download.intel.com/akdlm/irc_nas/18236/l_BaseKit_p_2021.4.0.3422.sh
94+ bash l_BaseKit_p_2021.4.0.3422.sh \
95+ -a --action install \
96+ -s --eula accept \
97+ --components=\
98+ intel.oneapi.lin.tbb.devel:\
99+ intel.oneapi.lin.dpcpp-cpp-compiler:\
100+ intel.oneapi.lin.mkl.devel \
101+ --install-dir /opt/intel/ \
102+ --download-dir /opt/intel/dw/ \
103+ --download-cache /opt/intel/dw/ \
104+ --package-path /opt/intel/intel
105+
106+ - name : Clone oneMKL
107+ run : |
108+ git clone https://github.com/oneapi-src/oneMKL.git
109+
110+
111+
0 commit comments