Skip to content

Allow to extend LPython with custom hardware backends #2259

Open
@certik

Description

@certik

Here is how it would work:

  • Add a module from A import special_operation that operates on numpy arrays and implements the operation using numpy arrays
  • Add custom type annotations from A import memory_device_l1 and use it in annotating numpy arrays
  • Add a plugin that implements an ASR->ASR pass that transforms all these annotations and special operations into low level C / API calls for the specific hardware API

The module A and the plugin (as an so library) will be shipped externally, not as part of LPython.

This will allow anybody to extend LPython to work for their custom hardware.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions