Skip to content

Commit

Permalink
.github/workflows/windows.yml: add sycl build
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframRhodium committed Nov 8, 2023
1 parent 07ec6b5 commit 368bcd5
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
unzip -q vs.zip
mv vapoursynth-*/ vapoursynth/
- name: Configure
- name: Configure (CUDA)
run: cmake -S . -B build -G Ninja -LA
-D CMAKE_BUILD_TYPE=Release
-D USE_NVRTC_STATIC=ON
Expand All @@ -64,12 +64,36 @@ jobs:
env:
CUDA_PATH: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8

- name: Build
- name: Build (CUDA)
run: cmake --build build --verbose

- name: Install
- name: Install (CUDA)
run: cmake --install build --prefix install

- name: Setup SYCL
run: |
curl -J -o dpcpp_installer.exe https://registrationcenter-download.intel.com/akdlm/IRC_NAS/c08746d2-5669-4ef8-9fc8-1ec330b3ac3b/w_dpcpp-cpp-compiler_p_2023.2.2.49534_offline.exe
dpcpp_installer -s -a -s --install-dir dpcpp --eula accept
- name: Configure (SYCL)
run: |
dpcpp\compiler\latest\env\vars.bat
cmake -S . -B build_sycl -G Ninja -LA \
-D CMAKE_BUILD_TYPE=Release \
-D ENABLE_CUDA=OFF \
-D ENABLE_CUDA_RTC=OFF \
-D ENABLE_SYCL=ON \
-D VAPOURSYNTH_INCLUDE_DIRECTORY="%cd%\vapoursynth\include" \
-D CMAKE_CXX_COMPILER=icx \
-D CMAKE_CXX_FLAGS="-ffast-math -mavx2"
- name: Build (SYCL)
run: cmake --build build_sycl --verbose

- name: Install (CUDA)
run: cmake --install build_sycl --prefix install

- name: Upload
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 368bcd5

Please sign in to comment.