Skip to content

dpctl should generate C headers for use of dpctl Python objects with Python C-API #171

Closed

Description

@oleksandr-pavlyk

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

Activity

  1. changed the title [-]DPCTL should generate C header for use of dpctl Python objects with Python C-API[/-] [+]DPCTL should generate C headers for use of dpctl Python objects with Python C-API[/+] on Nov 6, 2020
  2. oleksandr-pavlyk commented on Nov 9, 2020

    @oleksandr-pavlyk
    ContributorAuthor
  3. oleksandr-pavlyk commented on Nov 9, 2020

    @oleksandr-pavlyk
    ContributorAuthor
  4. changed the title [-]DPCTL should generate C headers for use of dpctl Python objects with Python C-API[/-] [+]dpctl should generate C headers for use of dpctl Python objects with Python C-API[/+] on Apr 15, 2021
  5. diptorupd commented on Apr 15, 2021

    @diptorupd
    Contributor

    @oleksandr-pavlyk was this issue addressed by #218?

  6. diptorupd commented on Apr 16, 2021

    @diptorupd
    Contributor

    @oleksandr-pavlyk is going to add an example and close the issue.

  7. diptorupd commented on Apr 27, 2021

    @diptorupd
    Contributor
  8. oleksandr-pavlyk commented on Apr 27, 2021

    @oleksandr-pavlyk
    ContributorAuthor

    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

  9. diptorupd commented on Nov 17, 2021

    @diptorupd
    Contributor

    @oleksandr-pavlyk I believe the ticket can be closed?

  10. oleksandr-pavlyk commented on Nov 18, 2021

    @oleksandr-pavlyk
    ContributorAuthor

    What is still missing is a single "dpctl.h" to include to work with Python C-API of dpctl classes.

    I think we should also have the same single header "syclinterface.h".

  11. oleksandr-pavlyk commented on Dec 25, 2021

    @oleksandr-pavlyk
    ContributorAuthor

    This has now been implemented in #685. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions