-
Notifications
You must be signed in to change notification settings - Fork 29
dpctl should generate C headers for use of dpctl Python objects with Python C-API #171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here is a discussion on SO: https://stackoverflow.com/questions/40572073/how-to-create-a-public-cython-function-that-can-receive-c-struct-instance-or-p I adapted example written by @pelson based on suggestion in that SO post to Python3 and use in conda environment: https://github.com/oleksandr-pavlyk/calling_publicly_declared_cython_from_c |
Another useful repo: https://github.com/ashwinvis/cython_capi |
@oleksandr-pavlyk was this issue addressed by #218? |
@oleksandr-pavlyk is going to add an example and close the issue. |
@oleksandr-pavlyk ping! |
Will work on this next week. Changes in #218 should have been sufficient, but having an example is both a proof of that and a seed to promote adoption |
@oleksandr-pavlyk I believe the ticket can be closed? |
What is still missing is a single I think we should also have the same single header |
This has now been implemented in #685. Closing. |
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
, andSyclContext
objects, which requires a header.Cython allows for generation of such headers: https://stackoverflow.com/questions/5710441/call-cython-function-from-c
The text was updated successfully, but these errors were encountered: