Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backends/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function (check_for_dpcpp)
set (dpcpp_cmd "${DPCPP_ROOT}/bin/dpcpp")
set (dpcpp_arg "--version")
elseif(UNIX)
set (dpcpp_cmd "dpcpp")
set (dpcpp_cmd "${DPCPP_ROOT}/bin/dpcpp")
set (dpcpp_arg "--version")
else()
message(FATAL_ERROR "Unsupported system.")
Expand Down
11 changes: 7 additions & 4 deletions conda-recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
call "%ONEAPI_ROOT%compiler\latest\env\vars.bat"
IF ERRORLEVEL 1 exit /b 1
call "%ONEAPI_ROOT%\compiler\latest\env\vars.bat"
IF %ERRORLEVEL% NEQ 0 (
echo "oneAPI compiler activation failed"
exit /b 1
)
REM conda uses %ERRORLEVEL% but FPGA scripts can set it. So it should be reseted.
set ERRORLEVEL=

Expand All @@ -10,7 +13,7 @@ rmdir /S /Q build_cmake
mkdir build_cmake
cd build_cmake

set "DPCPP_ROOT=%ONEAPI_ROOT%compiler\latest\windows"
set "DPCPP_ROOT=%ONEAPI_ROOT%\compiler\latest\windows"
set "INSTALL_PREFIX=%cd%\..\install"

rmdir /S /Q "%INSTALL_PREFIX%"
Expand All @@ -20,7 +23,7 @@ cmake -G Ninja ^
"-DCMAKE_INSTALL_PREFIX=%INSTALL_PREFIX%" ^
"-DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX%" ^
"-DDPCPP_ROOT=%DPCPP_ROOT%" ^
"%SRC_DIR%/backends"
"%SRC_DIR%\backends"
IF %ERRORLEVEL% NEQ 0 exit /b 1

ninja -n
Expand Down
11 changes: 7 additions & 4 deletions conda-recipe/run_test.bat
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
call "%ONEAPI_ROOT%/compiler/latest/env/vars.bat"
IF ERRORLEVEL 1 exit 1
call "%ONEAPI_ROOT%\compiler\latest\env\vars.bat"
IF %ERRORLEVEL% NEQ 0 (
echo "oneAPI compiler activation failed%"
exit /b 1
)
REM conda uses %ERRORLEVEL% but FPGA scripts can set it. So it should be reseted.
set ERRORLEVEL=

@echo on

"%PYTHON%" -c "import dpctl"
IF %ERRORLEVEL% NEQ 0 exit 1
IF %ERRORLEVEL% NEQ 0 exit /b 1

"%PYTHON%" -m unittest -v dpctl.tests
IF %ERRORLEVEL% NEQ 0 exit 1
IF %ERRORLEVEL% NEQ 0 exit /b 1