Skip to content

Commit 362c9c5

Browse files
committed
Merge branch 'spokhode/recipe/dpcpp-package' into pipeline
2 parents 97e2db4 + 352216e commit 362c9c5

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

conda-recipe/build.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#!/bin/bash
22

3-
# We need dpcpp to compile dpctl_sycl_interface
4-
if [ ! -z "${ONEAPI_ROOT}" ]; then
5-
# Suppress error b/c it could fail on Ubuntu 18.04
6-
source ${ONEAPI_ROOT}/compiler/latest/env/vars.sh || true
7-
else
8-
echo "DPCPP is needed to build DPCTL. Abort!"
9-
exit 1
10-
fi
11-
123
${PYTHON} setup.py clean --all
13-
${PYTHON} setup.py install
4+
${PYTHON} setup.py install --sycl-compiler-prefix=$CONDA_PREFIX
145

156
# Build wheel package
167
if [ "$CONDA_PY" == "36" ]; then

conda-recipe/meta.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
{% set name = "dpctl" %}
2-
31
package:
4-
name: {{ name|lower }}
2+
name: dpctl
53
version: {{ GIT_DESCRIBE_TAG }}
64

75
source:
@@ -10,12 +8,13 @@ source:
108
build:
119
number: {{ GIT_DESCRIBE_NUMBER }}
1210
script_env:
13-
- ONEAPI_ROOT
11+
- ONEAPI_ROOT # [not linux]
1412
- WHEELS_OUTPUT_FOLDER
1513

1614
requirements:
1715
build:
1816
- {{ compiler('cxx') }}
17+
- {{ compiler('dpcpp') }} # [linux]
1918
host:
2019
- setuptools
2120
- cython

0 commit comments

Comments
 (0)