File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
- #1 Example of SYCL extension working NumPy array input via SYCL buffers
1
+ # Example of SYCL extension working NumPy array input via SYCL buffers
2
2
3
3
4
- #2 Decription
4
+ ## Decription
5
5
6
6
Cython function expecting a 2D array in C-contiguous layout that
7
7
computes column-wise total by using SYCL oneMKL (as GEMV call with
@@ -10,15 +10,15 @@ an all units vector).
10
10
Example illustrates compiling SYCL extension, linking to oneMKL.
11
11
12
12
13
- #2 Compiling
13
+ ## Compiling
14
14
15
15
```
16
16
# make sure oneAPI is activated, $ONEAPI_ROOT must be set
17
17
CC=icx CXX=dpcpp python setup.py build_ext --inplace
18
18
```
19
19
20
20
21
- #2 Running
21
+ ## Running
22
22
23
23
```
24
24
# SYCL_DEVICE_FILTER=opencl sets SYCL backend to OpenCL to avoid a
Original file line number Diff line number Diff line change 1
- #1 Example of working with USM memory
1
+ # Example of working with USM memory
2
2
3
- #2 Description
3
+ ## Description
4
4
5
- #2 Building
5
+ ## Building
6
6
7
7
Make sure oneAPI is activated. Environment variable ` $ONEAPI_ROOT ` must be set.
8
8
@@ -12,7 +12,7 @@ $ CC=icx CXX=dpcpp LD_SHARED="dpcpp -shared" \
12
12
CXXFLAGS=-fno-sycl-early-optimizations python setup.py build_ext --inplace
13
13
```
14
14
15
- #2 Running
15
+ ## Running
16
16
17
17
```
18
18
$ python run.py
Original file line number Diff line number Diff line change 1
- Example of SYCL built pybind11 extension
1
+ # Example of SYCL built pybind11 extension
2
2
3
- To build, use (assumes scikit-build and dpcpp is installed):
3
+ ## To build, use (assumes scikit-build and dpcpp is installed):
4
4
5
5
``` sh
6
6
python setup.py develop -- -G " Ninja" \
@@ -12,13 +12,13 @@ python setup.py develop -- -G "Ninja" \
12
12
-DTBB_INCLUDE_DIR=${CONDA_PREFIX} /include
13
13
```
14
14
15
- To run test suite
15
+ ## To run test suite
16
16
17
17
``` sh
18
18
python -m pytest tests
19
19
```
20
20
21
- To compare Python overhead,
21
+ ## To compare Python overhead,
22
22
23
23
```
24
24
# build standad-alone executable
You can’t perform that action at this time.
0 commit comments