Skip to content

Commit 27e94bd

Browse files
authored
use dpctl in windows bdist_wheel (#471)
* use dpctl in windows bdist_wheel
1 parent ea45f9a commit 27e94bd

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

scripts/azure-pipelines.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,21 +136,28 @@ jobs:
136136
vmImage: 'windows-2019' # 'vs2017-win2016'
137137
steps:
138138
- script: |
139-
call ./scripts/install_system_deps_win.bat
140-
call ./scripts/install_cmake_win.bat
139+
call scripts\install_system_deps_win.bat
140+
call scripts\install_cmake_win.bat
141141
142142
echo ========================= Intel OneAPI setvars ===============================
143-
call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64 vs2019
144-
143+
# call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64 vs2019
144+
set "ONEAPI_ROOT=C:\Program Files (x86)\Intel\oneAPI\"
145+
146+
echo =================== conda install conda-build ===========================
147+
:: call scripts\install_python_deps.sh
148+
conda install -y conda-build -c "%ONEAPI_ROOT%\conda_channel"
149+
150+
call scripts\build_deps_dpctl_win.bat
145151
echo =================== build DPNP bdist_wheel package ===========================
146152
:: cmake -G Ninja ..
147153
:: cmake --build . --target install -- -v
148154
:: python setup.py build_clib
149155
:: python setup.py build_ext --inplace
150156
python setup.py bdist_wheel
151-
- publish: dist
152-
artifact: 'package_$(Agent.JobName)_$(Agent.OS)'
153-
displayName: bdist_wheel_dpnp_local_win_package
157+
dir
158+
:: - publish: dist
159+
:: artifact: 'package_$(Agent.JobName)_$(Agent.OS)'
160+
:: displayName: bdist_wheel_local_win
154161
155162
# test python ./setup.py bdist_wheel command with dpctl
156163
- job: wheel_dpnp_dpctl_lin

scripts/build_deps_dpctl_win.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ git clone --branch 0.5.0rc2 https://github.com/IntelPython/dpctl.git
44
cd dpctl
55

66
:: didn't find better way to set required version
7-
for /f "tokens=* delims=" %a in ('git tag -l') do git tag -d %a
7+
for /f "tokens=* delims=" %%a in ('git tag -l') do git tag -d %%a
88
git tag 0.5.0rc2
99

1010
conda build --croot=C:/tmp conda-recipe -c "%ONEAPI_ROOT%\conda_channel"

utils/command_build_cmake_clib.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@
6666

6767
_dpctrl_include_dir = str(os.path.abspath(dpctl.get_include()))
6868
_dpctrl_library_dir = str(os.path.abspath(os.path.join(dpctl.get_include(), "..")))
69-
if IS_LIN:
70-
_dpctrl_exists = "ON"
69+
_dpctrl_exists = "ON"
7170
except ImportError:
7271
"""
7372
Set local SYCL queue handler set by default in CmakeList.txt

0 commit comments

Comments
 (0)