Skip to content

Commit 2eec363

Browse files
authored
build dpctl dependency on windows (#544)
* build dpctl dependency on win
1 parent a9db942 commit 2eec363

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

scripts/azure-pipelines.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ jobs:
212212
call "%ONEAPI_ROOT%\dpl\latest\env\vars.bat"
213213
call "%ONEAPI_ROOT%\tbb\latest\env\vars.bat"
214214
echo =================== conda build DPNP ===========================
215-
call conda build conda-recipe -c intel
215+
call conda list
216+
call python --version
217+
call conda build conda-recipe -c local -c intel
216218
mkdir dist
217219
echo ========== it doesn't work yet =========================
218220
displayName: build_conda

scripts/build_deps_dpctl_win.bat

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,29 @@ rem git tag 0.5.0rc2
44

55
echo +++++++++++++++++++++++++ Python version +++++++++++++++++++++++++++
66
call python --version
7+
8+
rem need to keep package file exists because it will be used as a channel for conda build later
9+
set DPCTL_DIST=%CD%\dist_dpctl
10+
11+
call conda uninstall -y dpctl
12+
713
echo +++++++++++++++++++++++++ Downlowd DPCTL +++++++++++++++++++++++++++
814
call git clone https://github.com/IntelPython/dpctl.git
915
cd dpctl
1016

1117
set "ONEAPI_ROOT=C:\Program Files (x86)\Intel\oneAPI\"
1218
echo +++++++++++++++++++++++++ Build DPCTL +++++++++++++++++++++++++++
13-
call conda build --croot=C:/tmp conda-recipe --no-test -c "%ONEAPI_ROOT%\conda_channel"
19+
call conda build --croot=C:/tmp conda-recipe --no-test -c "%ONEAPI_ROOT%\conda_channel" --output-folder %DPCTL_DIST%
20+
21+
echo +++++++++++++++++++++++++ get DPCTL package name +++++++++++++++++++++++++++
22+
rem this garbage here is because
23+
rem I didn't find a method how to get path and filename for the package built by conda build
24+
FOR /F "tokens=* USEBACKQ" %%F IN (`dir /B %DPCTL_DIST%\win-64\dpctl*.bz2`) DO SET DPCTL_PACKAGE_NAME=%%F
25+
echo %DPCTL_DIST%
26+
echo %DPCTL_PACKAGE_NAME%
1427

1528
echo +++++++++++++++++++++++++ install DPCTL +++++++++++++++++++++++++++
16-
call conda install -y dpctl --strict-channel-priority -c local -c intel
29+
call conda install -y %DPCTL_DIST%/win-64/%DPCTL_PACKAGE_NAME%
1730

1831
cd ..
1932
echo +++++++++++++++++++++++++ cleanup DPCTL sources +++++++++++++++++++++++++++

0 commit comments

Comments
 (0)