Skip to content

Tracking Issue: Support for CPython subinterpreters in NumPy #32451

Description

@prathamhole14

Description:
This issue tracks the architectural changes required to support CPython subinterpreters, to safely support multiple interpreters running simultaneously, NumPy must stop relying on global shared memory and ensure every interpreter gets its own distinct module instance.

Initial Roadmap:
Following CPython's Isolating Extension Modules guide, we will start with:

Expected Outcomes for this phase:

  • Core modules can be safely imported multiple times across different subinterpreters without memory leaks or race conditions.

Other references: #24755

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