@@ -20,13 +20,16 @@ Build and Install Conda Package
20
20
conda create -n build-env conda-build
21
21
conda activate build-env
22
22
```
23
- 2 . Build conda package
23
+ 2 . Set environment variable ` ONEAPI_ROOT ` and build conda package
24
24
``` bash
25
- conda build conda-recipe
25
+ export ONEAPI_ROOT=/opt/intel/oneapi
26
+ conda build conda-recipe -c ${ONEAPI_ROOT} /conda_channel
26
27
```
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:
28
30
``` 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"
30
33
```
31
34
32
35
:warning : ** You could face issues with conda-build=3.20** : Use conda-build=3.18!
@@ -52,7 +55,7 @@ python setup.py develop
52
55
53
56
Using dpCtl
54
57
===========
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.
56
59
57
60
On Windows:
58
61
``` cmd
@@ -63,6 +66,12 @@ On Linux:
63
66
source ${ONEAPI_ROOT} /compiler/latest/env/vars.sh
64
67
```
65
68
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
+
66
75
Examples
67
76
========
68
77
See examples in folder ` examples ` .
0 commit comments