Torch extensions are built in C++ with use of pybind11 (c.f. custom-c++-torch-extensions).
One may want to recognize and work with SyclQueue, SyclDevice, and SyclContext objects, which requires a header.
Cython allows for generation of such headers: https://stackoverflow.com/questions/5710441/call-cython-function-from-c
Torch extensions are built in C++ with use of pybind11 (c.f. custom-c++-torch-extensions).
One may want to recognize and work with
SyclQueue,SyclDevice, andSyclContextobjects, which requires a header.Cython allows for generation of such headers: https://stackoverflow.com/questions/5710441/call-cython-function-from-c