Skip to content

Commit 7dc214a

Browse files
author
Alexander Batashev
authored
[CI] Add experimental Windows build to GitHub Actions nightly (#5560)
Add experimental Windows SYCL toolchain with CUDA builds on GitHub Actions infrastructure. Tests are currently unsupported. Dependencies are installed with chocolatey.
1 parent a70ffa9 commit 7dc214a

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed

.github/workflows/sycl_nightly.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ jobs:
1919
build_cache_root: "/__w/"
2020
build_artifact_suffix: default
2121
lts_config: "ocl_gen9;ocl_x64;hip_amdgpu"
22+
23+
windows_default:
24+
name: Windows (experimental)
25+
if: github.repository == 'intel/llvm'
26+
uses: ./.github/workflows/sycl_windows_build_and_test.yml
27+
2228
ubuntu2004_docker_build_push:
2329
if: github.repository == 'intel/llvm'
2430
runs-on: ubuntu-latest
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: SYCL Windows Test
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
build:
8+
name: Build
9+
runs-on: windows-2022
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
path: src
14+
fetch-depth: 1
15+
- name: Install dependencies
16+
shell: cmd
17+
run: |
18+
choco install -y cuda --version 11.6.0.51123
19+
choco install -y ninja
20+
refreshenv
21+
echo CUDA_PATH=%CUDA_PATH%
22+
echo CUDA_PATH=%CUDA_PATH% >> %GITHUB_ENV%
23+
- uses: ilammy/msvc-dev-cmd@9f8ae839b01883414208f29e3e24524387f48e1f
24+
with:
25+
arch: amd64
26+
- name: Setup Cache
27+
uses: actions/cache@v2
28+
if: ${{ github.event_name != 'pull_request' }}
29+
id: cache
30+
with:
31+
path: cache
32+
key: sycl-win-build-${{ github.sha }}
33+
restore-keys: |
34+
sycl-win-build-
35+
- name: Configure
36+
shell: cmd
37+
env:
38+
CUDA_PATH: 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6'
39+
CUDA_TOOLKIT_ROOT_DIR: 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6'
40+
# TODO switch to clang-cl and lld when this is fixed https://github.com/oneapi-src/level-zero/issues/83
41+
# TODO enable sccache, when problems with PDB are resolved
42+
run: |
43+
mkdir build
44+
mkdir install
45+
IF NOT EXIST cache MKDIR cache
46+
set SCCACHE_DIR=%GITHUB_WORKSPACE%\cache
47+
set PATH=C:\ProgramData\chocolatey\lib\sccache\tools\sccache-v0.2.15-x86_64-pc-windows-msvc;%PATH%
48+
python.exe src/buildbot/configure.py -o build ^
49+
--cmake-opt="-DCMAKE_C_COMPILER=cl" ^
50+
--cmake-opt="-DCMAKE_CXX_COMPILER=cl" ^
51+
--cmake-opt="-DCMAKE_INSTALL_PREFIX=%GITHUB_WORKSPACE%\install" ^
52+
--cuda
53+
- name: Build
54+
shell: cmd
55+
env:
56+
CUDA_PATH: 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6'
57+
CUDA_TOOLKIT_ROOT_DIR: 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6'
58+
run: |
59+
cmake --build build --target sycl-toolchain
60+
- name: Install
61+
shell: cmd
62+
run: cmake --build build --target deploy-sycl-toolchain
63+
- name: Upload toolchain
64+
uses: actions/upload-artifact@v2
65+
with:
66+
name: sycl_windows_default
67+
path: install/**/*

0 commit comments

Comments
 (0)