File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 1
-
2
1
REM A workaround for activate-dpcpp.bat issue to be addressed in 2021.4
3
2
set " LIB = %BUILD_PREFIX% \Library\lib;%BUILD_PREFIX% \compiler\lib;%LIB% "
4
3
set " INCLUDE = %BUILD_PREFIX% \include;%INCLUDE% "
@@ -26,9 +25,9 @@ rem fix the issue with IntelLLVM integration with cmake on Windows
26
25
if EXIST " %PLATFORM_DIR% " (
27
26
dir " %PLATFORM_DIR% \%FN% "
28
27
copy /Y " %PLATFORM_DIR% \%FN% " .
29
- if errorlevel 1 exit 1
28
+ if %ERRORLEVEL% neq 0 exit 1
30
29
copy /Y " .github\workflows\Windows-IntelLLVM_%PATCHED_CMAKE_VERSION% .cmake" " %PLATFORM_DIR% \%FN% "
31
- if errorlevel 1 exit 1
30
+ if %ERRORLEVEL% neq 0 exit 1
32
31
)
33
32
34
33
set " CC = icx"
@@ -65,5 +64,5 @@ for /f %%f in ('dir /b /S .\dist') do (
65
64
:: Copy wheel package
66
65
if NOT " %WHEELS_OUTPUT_FOLDER% " == " " (
67
66
copy dist\dpctl*.whl %WHEELS_OUTPUT_FOLDER%
68
- if errorlevel 1 exit 1
67
+ if %ERRORLEVEL% neq 0 exit 1
69
68
)
Original file line number Diff line number Diff line change 1
1
@ echo on
2
2
3
3
" %PYTHON% " -c " import dpctl; print(dpctl.__version__)"
4
- if errorlevel 1 exit 1
4
+ if %ERRORLEVEL% neq 0 exit 1
5
5
6
6
" %PYTHON% " -m dpctl -f
7
- if errorlevel 1 exit 1
7
+ if %ERRORLEVEL% neq 0 exit 1
8
8
9
9
python -m pytest -q -ra --disable-warnings --pyargs dpctl -vv
10
- if errorlevel 1 exit 1
10
+ if %ERRORLEVEL% neq 0 exit 1
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ dpcpp.exe --version >nul 2>&1
3
3
if errorlevel 1 (
4
4
set ERRORLEVEL =
5
5
call " %ONEAPI_ROOT% \compiler\latest\env\vars.bat"
6
- if errorlevel 1 exit 1
6
+ if %ERRORLEVEL% neq 0 exit 1
7
7
)
8
8
@ REM conda uses %ERRORLEVEL% but FPGA scripts can set it. So it should be reseted.
9
9
set ERRORLEVEL =
@@ -31,13 +31,13 @@ cmake -G Ninja ^
31
31
" -DCMAKE_LINKER:PATH=%DPCPP_HOME% \bin\lld-link.exe" ^
32
32
" -DDPCTL_BUILD_CAPI_TESTS=ON" ^
33
33
" .."
34
- if errorlevel 1 exit 1
34
+ if %ERRORLEVEL% neq 0 exit 1
35
35
36
36
ninja -n
37
- if errorlevel 1 exit 1
37
+ if %ERRORLEVEL% neq 0 exit 1
38
38
@ REM ninja check
39
39
@ REM IF %ERRORLEVEL% NEQ 0 exit /b 1
40
40
ninja install
41
- if errorlevel 1 exit 1
41
+ if %ERRORLEVEL% neq 0 exit 1
42
42
43
43
cd ..
You can’t perform that action at this time.
0 commit comments