Skip to content

Commit f7bf6a2

Browse files
committed
Switch from hipSYCL repo to OpenSYCL
1 parent 48ad65b commit f7bf6a2

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/linux.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@ jobs:
4444
/usr/local/cuda/bin/nvcc --version
4545
cat /usr/local/cuda/version.json
4646
cat /usr/local/cuda/include/cublas.h | grep CUBLAS
47-
- name: build hipSYCL
47+
- name: build OpenSYCL
4848
run: |
4949
cd
50-
git clone https://github.com/illuhad/hipSYCL.git
50+
git clone https://github.com/OpenSYCL/OpenSYCL.git
5151
cd hipSYCL
5252
mkdir build && cd build
5353
cmake -DCMAKE_CXX_COMPILER=/usr/bin/clang++-${{matrix.clang_version}} \
5454
-DCLANG_EXECUTABLE_PATH=/usr/bin/clang++-${{matrix.clang_version}} \
5555
-DLLVM_DIR=/usr/lib/llvm-${{matrix.clang_version}}/cmake \
5656
-DWITH_CUDA_BACKEND=ON \
57-
-DWITH_ROCM_BACKEND=OFF \
57+
-DWITH_ROCM_BACKEND=ON \
5858
-DWITH_LEVEL_ZERO_BACKEND=OFF \
59-
-DCMAKE_INSTALL_PREFIX=/opt/hipSYCL \
59+
-DCMAKE_INSTALL_PREFIX=/opt/OpenSYCL \
6060
-DROCM_PATH=/opt/rocm-${{matrix.rocm_version}} \
6161
-DCUDA_PATH=/usr/local/cuda-${{matrix.cuda_version}} ..
6262
make -j2 install
@@ -67,21 +67,22 @@ jobs:
6767
cd lapack
6868
mkdir build && cd build
6969
cmake -DCMAKE_INSTALL_LIBDIR=/opt/lapack -DBUILD_SHARED_LIBS=ON -DCBLAS=ON ..
70-
sudo cmake --build . -j --target install
71-
- name: clone and build oneMKL
70+
cmake --build . -j --target install
71+
- name: clone oneMKL
72+
run: |
73+
cd
74+
git clone https://github.com/oneapi-src/oneMKL.git
75+
76+
- name: build oneMKL cuBLAS tests
7277
env:
7378
rocblas_DIR: /opt/rocm-${{matrix.rocm_version}}/lib/cmake/rocblas/
7479
hip_DIR: /opt/rocm-${{matrix.rocm_version}}/lib/cmake/hip/
7580
AMDDeviceLibs_DIR: /opt/rocm-${{matrix.rocm_version}}/lib/cmake/AMDDeviceLibs/
7681
amd_comgr_DIR: /opt/rocm-${{matrix.rocm_version}}/lib/cmake/amd_comgr/
7782
hsa-runtime64_DIR: /opt/rocm-${{matrix.rocm_version}}/lib/cmake/hsa-runtime64/
7883
run: |
79-
cd
80-
git clone https://github.com/oneapi-src/oneMKL.git
81-
cd oneMKL
82-
mkdir build
83-
cd build
84-
cmake \
84+
cd ~/oneMKL
85+
cmake -S . -B build_cublas\
8586
-DCMAKE_CXX_COMPILER=/usr/bin/clang++-${{matrix.clang_version}} \
8687
-DCMAKE_C_COMPILER=/usr/bin/clang-${{matrix.clang_version}} \
8788
-DCUDA_CUDA_LIBRARY=/usr/local/cuda-11.6/lib64/stubs/libcuda.so \
@@ -97,6 +98,5 @@ jobs:
9798
-DHIPSYCL_TARGETS=omp\;cuda:sm_61\
9899
-DONEMKL_SYCL_IMPLEMENTATION=hipSYCL \
99100
-DREF_BLAS_ROOT=/opt/lapack/ ..
100-
cmake --build . -j2
101-
ctest
102-
cmake --install . --prefix /usr
101+
cmake --build build_cublas -j2
102+
ctest --test-dir build_cublas

0 commit comments

Comments
 (0)