Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 591 Bytes

File metadata and controls

26 lines (19 loc) · 591 Bytes

Example illustrating use of dpctl.sycl in Cython

Dpctl include dpctl/sycl.pxd file with incomplete definitions of SYCL runtime classes and conversion routines from SYCLInterface library opaque pointers to pointers to these SYCL classes.

This files simplifies usage of SYCL routines from Python extensions written in Cython.

Building

To build the example on Linux, run:

CC=icx CXX=icpx python setup.py build_ext --inplace -G Ninja

On Windows, run:

CC=icx CXX=icx python setup.py build_ext --inplace -G Ninja

Testing

python -m pytest tests