@@ -5,7 +5,7 @@ on: [push, pull_request]
5
5
jobs :
6
6
test-clang-based :
7
7
name : clang ${{ matrix.clang_version }}, ${{ matrix.os }}, CUDA ${{matrix.cuda}}
8
- runs-on : ${{ matrix.os }}
8
+ runs-on : ubuntu-20.04
9
9
strategy :
10
10
matrix :
11
11
clang_version : [13]
54
54
git clone https://github.com/illuhad/hipSYCL.git
55
55
cd hipSYCL
56
56
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 ..
58
58
make -j2 install
59
59
cp /opt/hipSYCL/cuda/lib64/stubs/libcuda.so `pwd`/install/lib/libcuda.so
60
60
cp /opt/hipSYCL/cuda/lib64/stubs/libcuda.so `pwd`/install/lib/libcuda.so.1
80
80
run : |
81
81
cd /home/runner/work/hipSYCL/hipSYCL/build/tests-cpu
82
82
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