Skip to content

Exposing the Legate C++ API through Cython #12

@MatthiasKohl

Description

@MatthiasKohl

I'm not sure whether this is related to issue #11 but it would be good to provide an easier interface to handle existing C-level data in python, in particular for regions, but possibly other objects, too.

In particular, if we have a handle to a region in C, it's difficult to create a corresponding legate.core.legion.Region object:

  1. I believe there is no way right now to get the fields of a field space (this is simply lacking from Legion's C interface AFAICT)
  2. The legate.core.legion.FieldSpace class would have to support being created with a handle, like the Region and IndexSpace classes atm

Without this, I'm not sure if/how you can use the __legate_data_interface__, unless you create the underlying C objects on the python side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions