Skip to content

Latest commit

 

History

History
 
 

use_dpctl_sycl

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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