Skip to content

Commit dff89d1

Browse files
authored
Use DPC++ runtime from package dpcpp_cpp_rt (#175)
* Update README.md * Update meta.yaml
1 parent 4fc2005 commit dff89d1

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ Build and Install Conda Package
2020
conda create -n build-env conda-build
2121
conda activate build-env
2222
```
23-
2. Build conda package
23+
2. Set environment variable `ONEAPI_ROOT` and build conda package
2424
```bash
25-
conda build conda-recipe
25+
export ONEAPI_ROOT=/opt/intel/oneapi
26+
conda build conda-recipe -c ${ONEAPI_ROOT}/conda_channel
2627
```
27-
On Windows to cope with [long file names](https://github.com/IntelPython/dpctl/issues/15):
28+
On Windows to cope with [long file names](https://github.com/IntelPython/dpctl/issues/15)
29+
use `croot` with short folder path:
2830
```cmd
29-
conda build --croot=C:/tmp conda-recipe
31+
set "ONEAPI_ROOT=C:\Program Files (x86)\Intel\oneAPI\"
32+
conda build --croot=C:/tmp conda-recipe -c "%ONEAPI_ROOT%\conda_channel"
3033
```
3134

3235
:warning: **You could face issues with conda-build=3.20**: Use conda-build=3.18!
@@ -52,7 +55,7 @@ python setup.py develop
5255

5356
Using dpCtl
5457
===========
55-
dpCtl relies on DPC++ runtime. With Intel oneAPI installed you should activate it.
58+
dpCtl relies on DPC++ runtime. With Intel oneAPI installed you could activate it.
5659

5760
On Windows:
5861
```cmd
@@ -63,6 +66,12 @@ On Linux:
6366
source ${ONEAPI_ROOT}/compiler/latest/env/vars.sh
6467
```
6568

69+
When dpCtl is installed via conda package
70+
then it uses DPC++ runtime from `dpcpp_cpp_rt` package
71+
and it is not necessary to activate oneAPI DPC++ compiler environment.
72+
73+
`dpcpp_cpp_rt` package is provided by oneAPI `conda_channel`.
74+
6675
Examples
6776
========
6877
See examples in folder `examples`.

conda-recipe/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ requirements:
2626
run:
2727
- python
2828
- numpy >=1.17
29+
- dpcpp_cpp_rt
2930

3031
about:
3132
home: https://github.com/IntelPython/dpCtl.git

0 commit comments

Comments
 (0)