File tree Expand file tree Collapse file tree 4 files changed +45
-2
lines changed Expand file tree Collapse file tree 4 files changed +45
-2
lines changed Original file line number Diff line number Diff line change 1+ * .bat text eol =crlf
Original file line number Diff line number Diff line change 1+ set INTEL_DLE_URL = https://registrationcenter-download.intel.com/akdlm/IRC_NAS/75d4eb97-914a-4a95-852c-7b9733d80f74/intel-deep-learning-essentials-2025.1.3.8_offline.exe
2+ set INTEL_DLE_TMP = %RUNNER_TEMP% \intel_dle
3+ set INTEL_DLE_LOG = %RUNNER_TEMP% \intel_dle_log.txt
4+
5+ echo ::group::Intel Deep Learning Essentials Installation
6+ curl -o intel-dle-installer.exe %INTEL_DLE_URL%
7+ start /wait " Intel DLE Install" intel-dle-installer.exe -f %INTEL_DLE_TMP% -l %INTEL_DLE_LOG% --silent -a --eula=accept -p=NEED_VS2022_INTEGRATION=0
8+ type %INTEL_DLE_LOG%
9+ if ERRORLEVEL 1 (
10+ echo Failed to install Intel Deep Learning Essentials
11+ exit /b 1
12+ )
13+ echo ::endgroup::
14+
15+ echo ::group::Build Environment Setup
16+ call " %ProgramFiles(x86)% \Intel\oneAPI\setvars.bat"
17+ cmake -G Ninja -DCOMPUTE_BACKEND=xpu -DCMAKE_BUILD_TYPE=Release .
18+ if ERRORLEVEL 1 (
19+ echo Failed to setup environment
20+ exit /b 1
21+ )
22+ echo ::endgroup::
23+
24+ echo ::group::Building with XPU backend
25+ cmake --build . --config Release
26+ if ERRORLEVEL 1 (
27+ echo Build failed
28+ exit /b 1
29+ )
30+ echo ::endgroup::
31+
32+ set output_dir = output\%build_os% \x86_64
33+ if not exist " %output_dir% " mkdir " %output_dir% "
34+ copy bitsandbytes\*.dll " %output_dir% \" 2 > nul
Original file line number Diff line number Diff line change @@ -110,14 +110,21 @@ jobs:
110110 build-xpu :
111111 strategy :
112112 matrix :
113- os : [ubuntu-22.04]
113+ os : [ubuntu-22.04, windows-2025 ]
114114 runs-on : ${{ matrix.os }}
115115 steps :
116116 - uses : actions/checkout@v4
117- - name : Build C++
117+ - name : Build C++ (Linux)
118+ if : runner.os == 'Linux'
118119 run : bash .github/scripts/build-xpu.sh
119120 env :
120121 build_os : ${{ matrix.os }}
122+ - name : Build C++ (Windows)
123+ if : runner.os == 'Windows'
124+ run : .github/scripts/build-xpu-windows.bat
125+ shell : cmd
126+ env :
127+ build_os : ${{ matrix.os }}
121128 - name : Upload build artifact
122129 uses : actions/upload-artifact@v4
123130 with :
Original file line number Diff line number Diff line change 1717 - id : mixed-line-ending
1818 args :
1919 - --fix=lf
20+ exclude : ' \.bat$'
2021 - repo : https://github.com/crate-ci/typos
2122 rev : v1.26.0
2223 hooks :
You can’t perform that action at this time.
0 commit comments