File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
167if [ " $CONDA_PY " == " 36" ]; then
1910 WHEELS_BUILD_ARGS=" -p manylinux2014_x86_64"
2011fi
2112if [ -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
2221 $PYTHON setup.py bdist_wheel ${WHEELS_BUILD_ARGS}
2322 cp dist/dpctl* .whl ${WHEELS_OUTPUT_FOLDER}
2423fi
Original file line number Diff line number Diff line change 1- {% set name = "dpctl" %}
2-
31package :
4- name : {{ name|lower }}
2+ name : dpctl
53 version : {{ GIT_DESCRIBE_TAG }}
64
75source :
@@ -10,12 +8,13 @@ source:
108build :
119 number : {{ GIT_DESCRIBE_NUMBER }}
1210 script_env :
13- - ONEAPI_ROOT
11+ - ONEAPI_ROOT # for wheel on Linux
1412 - WHEELS_OUTPUT_FOLDER
1513
1614requirements :
1715 build :
1816 - {{ compiler('cxx') }}
17+ - {{ compiler('dpcpp') }} # [linux]
1918 host :
2019 - setuptools
2120 - cython
You can’t perform that action at this time.
0 commit comments