File tree Expand file tree Collapse file tree 2 files changed +46
-1
lines changed
Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ rmdir /S /Q build_cmake
1010mkdir build_cmake
1111cd build_cmake
1212
13- set " DPCPP_ROOT = %ONEAPI_ROOT% \ compiler\latest\windows"
13+ set " DPCPP_ROOT = %ONEAPI_ROOT% compiler\latest\windows"
1414set " INSTALL_PREFIX = %cd% \..\install"
1515
1616rmdir /S /Q " %INSTALL_PREFIX% "
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
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
You can’t perform that action at this time.
0 commit comments