File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
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
-
12
3
${PYTHON} setup.py clean --all
13
- ${PYTHON} setup.py install
4
+ ${PYTHON} setup.py install --sycl-compiler-prefix= $CONDA_PREFIX
14
5
15
6
# Build wheel package
16
7
if [ " $CONDA_PY " == " 36" ]; then
19
10
WHEELS_BUILD_ARGS=" -p manylinux2014_x86_64"
20
11
fi
21
12
if [ -n " ${WHEELS_OUTPUT_FOLDER} " ]; then
13
+ # We need dpcpp to compile dpctl_sycl_interface
14
+ if [ ! -z " ${ONEAPI_ROOT} " ]; then
15
+ # Suppress error b/c it could fail on Ubuntu 18.04
16
+ source ${ONEAPI_ROOT} /compiler/latest/env/vars.sh || true
17
+ else
18
+ echo " DPCPP is needed to build DPCTL. Abort!"
19
+ exit 1
20
+ fi
22
21
$PYTHON setup.py bdist_wheel ${WHEELS_BUILD_ARGS}
23
22
cp dist/dpctl* .whl ${WHEELS_OUTPUT_FOLDER}
24
23
fi
Original file line number Diff line number Diff line change 1
- {% set name = "dpctl" %}
2
-
3
1
package :
4
- name : {{ name|lower }}
2
+ name : dpctl
5
3
version : {{ GIT_DESCRIBE_TAG }}
6
4
7
5
source :
@@ -10,12 +8,13 @@ source:
10
8
build :
11
9
number : {{ GIT_DESCRIBE_NUMBER }}
12
10
script_env :
13
- - ONEAPI_ROOT
11
+ - ONEAPI_ROOT # for wheel on Linux
14
12
- WHEELS_OUTPUT_FOLDER
15
13
16
14
requirements :
17
15
build :
18
16
- {{ compiler('cxx') }}
17
+ - {{ compiler('dpcpp') }} # [linux]
19
18
host :
20
19
- setuptools
21
20
- cython
You can’t perform that action at this time.
0 commit comments