Skip to content

Commit c5a31f5

Browse files
Adjusted path in bld.bat
1 parent a7ba748 commit c5a31f5

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

conda-recipe/bld.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ rmdir /S /Q build_cmake
1010
mkdir build_cmake
1111
cd build_cmake
1212

13-
set "DPCPP_ROOT=%ONEAPI_ROOT%\compiler\latest\windows"
13+
set "DPCPP_ROOT=%ONEAPI_ROOT%compiler\latest\windows"
1414
set "INSTALL_PREFIX=%cd%\..\install"
1515

1616
rmdir /S /Q "%INSTALL_PREFIX%"

scripts/build_for_develop.bat

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
call "%ONEAPI_ROOT%compiler\latest\env\vars.bat"
2+
IF ERRORLEVEL 1 exit 1
3+
REM conda uses %ERRORLEVEL% but FPGA scripts can set it. So it should be reseted.
4+
set ERRORLEVEL=
5+
6+
set "CC=clang-cl.exe"
7+
set "CXX=dpcpp.exe"
8+
9+
rmdir /S /Q build_cmake
10+
mkdir build_cmake
11+
cd build_cmake
12+
13+
set "DPCPP_ROOT=%ONEAPI_ROOT%compiler\latest\windows"
14+
set "INSTALL_PREFIX=%cd%\..\install"
15+
16+
rmdir /S /Q "%INSTALL_PREFIX%"
17+
18+
cmake -G Ninja ^
19+
-DCMAKE_BUILD_TYPE=Release ^
20+
"-DCMAKE_INSTALL_PREFIX=%INSTALL_PREFIX%" ^
21+
"-DCMAKE_PREFIX_PATH=%CONDA_PREFIX%" ^
22+
"-DDPCPP_ROOT=%DPCPP_ROOT%" ^
23+
"%cd%\..\backends"
24+
IF %ERRORLEVEL% NEQ 0 exit 1
25+
26+
ninja -n
27+
ninja install
28+
IF %ERRORLEVEL% NEQ 0 exit 1
29+
30+
cd ..
31+
xcopy install\lib\*.lib dpctl /E /Y
32+
xcopy install\bin\*.dll dpctl /E /Y
33+
34+
mkdir dpctl\include
35+
xcopy backends\include dpctl\include /E /Y
36+
37+
38+
REM required by _sycl_core(dpctl)
39+
set "DPPL_SYCL_INTERFACE_LIBDIR=dpctl"
40+
set "DPPL_SYCL_INTERFACE_INCLDIR=dpctl\include"
41+
42+
python setup.py clean --all
43+
python setup.py build develop
44+
python -m unittest dpctl.tests
45+
IF %ERRORLEVEL% NEQ 0 exit 1

0 commit comments

Comments
 (0)