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)
1313 set (dpcpp_cmd "${DPCPP_ROOT} /bin/dpcpp" )
1414 set (dpcpp_arg "--version" )
1515 elseif (UNIX )
16- set (dpcpp_cmd "dpcpp" )
16+ set (dpcpp_cmd "${DPCPP_ROOT} /bin/ dpcpp" )
1717 set (dpcpp_arg "--version" )
1818 else ()
1919 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+ )
36REM conda uses %ERRORLEVEL% but FPGA scripts can set it. So it should be reseted.
47set ERRORLEVEL =
58
@@ -10,7 +13,7 @@ rmdir /S /Q build_cmake
1013mkdir build_cmake
1114cd build_cmake
1215
13- set " DPCPP_ROOT = %ONEAPI_ROOT% compiler\latest\windows"
16+ set " DPCPP_ROOT = %ONEAPI_ROOT% \ compiler\latest\windows"
1417set " INSTALL_PREFIX = %cd% \..\install"
1518
1619rmdir /S /Q " %INSTALL_PREFIX% "
@@ -20,7 +23,7 @@ cmake -G Ninja ^
2023 " -DCMAKE_INSTALL_PREFIX=%INSTALL_PREFIX% " ^
2124 " -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% " ^
2225 " -DDPCPP_ROOT=%DPCPP_ROOT% " ^
23- " %SRC_DIR% / backends"
26+ " %SRC_DIR% \ backends"
2427IF %ERRORLEVEL% NEQ 0 exit /b 1
2528
2629ninja -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+ )
36REM conda uses %ERRORLEVEL% but FPGA scripts can set it. So it should be reseted.
47set ERRORLEVEL =
58
69@ echo on
710
811" %PYTHON% " -c " import dpctl"
9- IF %ERRORLEVEL% NEQ 0 exit 1
12+ IF %ERRORLEVEL% NEQ 0 exit /b 1
1013
1114" %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