File tree 1 file changed +16
-3
lines changed
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,18 @@ conda install dpctl
42
42
Build and Install with setuptools
43
43
=================================
44
44
dpCtl relies on DPC++ runtime. With Intel oneAPI installed you should activate it.
45
+ ` setup.py ` requires environment variable ` ONEAPI_ROOT ` and following packages
46
+ installed:
47
+ - ` cython `
48
+ - ` numpy `
49
+ - ` cmake ` - for building C API
50
+ - ` ninja ` - only on Windows
51
+
52
+ Activate DPC++ compiler:
53
+ ``` bash
54
+ export ONEAPI_ROOT=/opt/intel/oneapi
55
+ source ${ONEAPI_ROOT} /compiler/latest/env/vars.sh
56
+ ```
45
57
46
58
For install:
47
59
``` cmd
@@ -81,10 +93,11 @@ Run python examples:
81
93
for script in ` ls examples/python/` ; do echo " executing ${script} " ; python examples/python/${script} ; done
82
94
```
83
95
84
- Examples of building Cython extensions with DPC++ compiler, that interoperate with dpCtl can be found in
85
- folder ` cython ` .
96
+ Examples of building Cython extensions with DPC++ compiler, that interoperate
97
+ with dpCtl can be found in folder ` cython ` .
86
98
87
- Each example in ` cython ` folder can be built using ` CC=clang CXX=dpcpp python setup.py build_ext --inplace ` .
99
+ Each example in ` cython ` folder can be built using
100
+ ` CC=clang CXX=dpcpp python setup.py build_ext --inplace ` .
88
101
Please refer to ` run.py ` script in respective folders to execute extensions.
89
102
90
103
Tests
You can’t perform that action at this time.
0 commit comments