Skip to content

Commit 7e8d8b4

Browse files
build dpnp with conda-build on azure (#1003)
* add conda-build to azure-pipeline Co-authored-by: Alexander-Makaryev <[email protected]>
1 parent f3064ba commit 7e8d8b4

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

conda-recipe/meta.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ requirements:
1111
- numpy >=1.15 # [win or osx or py>=38]
1212
- numpy 1.17 # [linux and py==37]
1313
- cython
14-
- cmake >=3.16.5
15-
- dpctl >=0.5.0a0
14+
- cmake 3.19
15+
- dpctl >=0.10
1616
- mkl-devel-dpcpp
1717
- tbb-devel
1818
- wheel
1919
build:
2020
- {{ compiler('dpcpp') }}
2121
run:
2222
- python
23-
- dpctl >=0.5.0a0
23+
- dpctl >=0.10
2424
- dpcpp_cpp_rt >=2021.1.1
2525
- mkl >=2021.1.1
2626
- mkl-dpcpp >=2021.1.1

scripts/azure-pipelines.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,30 @@ jobs:
108108
. ./0.env.sh
109109
pytest -s
110110
111+
- job: conda_build_ubuntu2004
112+
displayName: conda-build Ubuntu 20.04
113+
pool:
114+
vmImage: 'conda-build ubuntu-20.04'
115+
strategy:
116+
matrix:
117+
Python38:
118+
python.version: '3.8'
119+
#Python39:
120+
# python.version: '3.9'
121+
steps:
122+
- task: UsePythonVersion@0
123+
inputs:
124+
versionSpec: '$(python.version)'
125+
displayName: 'Use Python $(python.version)'
126+
- bash: |
127+
echo ========================= create Conda ENV ===========================
128+
conda create -q -y -n dpnp$(python.version) conda-build --override-channels -c intel -c conda-forge
129+
. /usr/share/miniconda/etc/profile.d/conda.sh
130+
conda activate dpnp$(python.version)
131+
echo ========================= build DPNP and run tests ==========================
132+
export OCL_ICD_FILENAMES=libintelocl.so
133+
conda-build --python $(python.version) --override-channels -c intel -c conda-forge -c dppy/label/dev ./conda-recipe/
134+
111135
#- job: ubuntu2004_tests_external
112136
# displayName: Ubuntu 20.04 External Tests
113137
# pool:

tests/skipped_tests.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ tests/test_linalg.py::test_eig_arange[300-int32]
136136
tests/test_linalg.py::test_eigvals
137137

138138
tests/third_party/intel/test_zero_copy_test1.py::test_dpnp_interaction_with_dpctl_memory
139+
139140
tests/test_arraymanipulation.py::TestHstack::test_generator
140141
tests/test_arraymanipulation.py::TestVstack::test_generator
141142
tests/test_dparray.py::test_astype[[-2, -1, 0, 1, 2]-float64-float64]

0 commit comments

Comments
 (0)