Skip to content

Commit 8f19d4b

Browse files
Update XPU Windows script
1 parent 7ef5f95 commit 8f19d4b

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/scripts/build-xpu-windows.bat

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,33 @@
1-
21
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
3-
4-
echo ::group::Debugging Information
5-
echo Current Directory: %CD%
6-
set
7-
echo ::endgroup::
8-
9-
curl -o intel-dle-installer.exe %INTEL_DLE_URL%
2+
set INTEL_DLE_TMP=%RUNNER_TEMP%\intel_dle
3+
set INTEL_DLE_LOG=%RUNNER_TEMP%\intel_dle_log.txt
104

115
echo ::group::Intel Deep Learning Essentials Installation
12-
start /wait "Intel DLE Install" intel-dle-installer.exe -r yes --log intel_dle_log.txt --silent -a --eula=accept -p=NEED_VS2022_INTEGRATION=0
13-
type intel_dle_log.txt
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%
149
if ERRORLEVEL 1 (
1510
echo Failed to install Intel Deep Learning Essentials
1611
exit /b 1
1712
)
1813
echo ::endgroup::
1914

20-
echo ::group::Environment Setup
15+
echo ::group::Build Environment Setup
2116
call "%ProgramFiles(x86)%\Intel\oneAPI\setvars.bat"
17+
cmake -G Ninja -DCOMPUTE_BACKEND=xpu -DCMAKE_BUILD_TYPE=Release .
2218
if ERRORLEVEL 1 (
2319
echo Failed to setup environment
2420
exit /b 1
2521
)
2622
echo ::endgroup::
2723

2824
echo ::group::Building with XPU backend
29-
cmake -G Ninja -DCOMPUTE_BACKEND=xpu -DCMAKE_BUILD_TYPE=Release .
3025
cmake --build . --config Release
31-
echo ::endgroup::
32-
3326
if ERRORLEVEL 1 (
3427
echo Build failed
3528
exit /b 1
3629
)
30+
echo ::endgroup::
3731

3832
set output_dir=output\%build_os%\x86_64
3933
if not exist "%output_dir%" mkdir "%output_dir%"

0 commit comments

Comments
 (0)