File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function (check_for_dpcpp)
13
13
set (dpcpp_cmd "${DPCPP_ROOT} /bin/dpcpp" )
14
14
set (dpcpp_arg "--version" )
15
15
elseif (UNIX )
16
- set (dpcpp_cmd "dpcpp" )
16
+ set (dpcpp_cmd "${DPCPP_ROOT} /bin/ dpcpp" )
17
17
set (dpcpp_arg "--version" )
18
18
else ()
19
19
message (FATAL_ERROR "Unsupported system." )
Original file line number Diff line number Diff line change 1
- call " %ONEAPI_ROOT% compiler\latest\env\vars.bat"
2
- IF ERRORLEVEL 1 exit /b 1
1
+ call " %ONEAPI_ROOT% \compiler\latest\env\vars.bat"
2
+ IF %ERRORLEVEL% NEQ 0 (
3
+ echo " oneAPI compiler activation failed"
4
+ exit /b 1
5
+ )
3
6
REM conda uses %ERRORLEVEL% but FPGA scripts can set it. So it should be reseted.
4
7
set ERRORLEVEL =
5
8
@@ -10,7 +13,7 @@ rmdir /S /Q build_cmake
10
13
mkdir build_cmake
11
14
cd build_cmake
12
15
13
- set " DPCPP_ROOT = %ONEAPI_ROOT% compiler\latest\windows"
16
+ set " DPCPP_ROOT = %ONEAPI_ROOT% \ compiler\latest\windows"
14
17
set " INSTALL_PREFIX = %cd% \..\install"
15
18
16
19
rmdir /S /Q " %INSTALL_PREFIX% "
@@ -20,7 +23,7 @@ cmake -G Ninja ^
20
23
" -DCMAKE_INSTALL_PREFIX=%INSTALL_PREFIX% " ^
21
24
" -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% " ^
22
25
" -DDPCPP_ROOT=%DPCPP_ROOT% " ^
23
- " %SRC_DIR% / backends"
26
+ " %SRC_DIR% \ backends"
24
27
IF %ERRORLEVEL% NEQ 0 exit /b 1
25
28
26
29
ninja -n
Original file line number Diff line number Diff line change 1
- call " %ONEAPI_ROOT% /compiler/latest/env/vars.bat"
2
- IF ERRORLEVEL 1 exit 1
1
+ call " %ONEAPI_ROOT% \compiler\latest\env\vars.bat"
2
+ IF %ERRORLEVEL% NEQ 0 (
3
+ echo " oneAPI compiler activation failed%"
4
+ exit /b 1
5
+ )
3
6
REM conda uses %ERRORLEVEL% but FPGA scripts can set it. So it should be reseted.
4
7
set ERRORLEVEL =
5
8
6
9
@ echo on
7
10
8
11
" %PYTHON% " -c " import dpctl"
9
- IF %ERRORLEVEL% NEQ 0 exit 1
12
+ IF %ERRORLEVEL% NEQ 0 exit /b 1
10
13
11
14
" %PYTHON% " -m unittest -v dpctl.tests
12
- IF %ERRORLEVEL% NEQ 0 exit 1
15
+ IF %ERRORLEVEL% NEQ 0 exit /b 1
You can’t perform that action at this time.
0 commit comments