Skip to content

[PJRT] Support PJRT_Memory related APIs in IREE PJRT plugin - #20911

Merged
ScottTodd merged 1 commit into
iree-org:mainfrom
PragmaTwice:pjrt-memory
May 28, 2025
Merged

ScottTodd merged 1 commit into
iree-org:mainfrom
PragmaTwice:pjrt-memory

Conversation

@PragmaTwice

@PragmaTwice PragmaTwice commented May 28, 2025 •

Copy link
Copy Markdown
Member

It closes #20907.
It closes #20093.

Newly supported APIs:

  • PJRT_Client_AddressableMemories
  • PJRT_Device_AddressableMemories
  • PJRT_Device_DefaultMemory
  • PJRT_Buffer_Memory
  • PJRT_Memory_Id
  • PJRT_Memory_Kind
  • PJRT_Memory_ToString
  • PJRT_Memory_DebugString
  • PJRT_Memory_AddressableByDevices

Currently the memory is one-to-one mapped from its device, just for JAX to successfully initialize the PJRT plugin.

After this patch, the PJRT plugin can support JAX from 0.5.1 up to the latest version (0.6.1) (see #20907 for the current status).

ci-exactly: build_packages, test_pjrt

@ScottTodd

Copy link
Copy Markdown
Member

Tagging #20722 so we mention this in upcoming release notes.

@ScottTodd
ScottTodd merged commit 656213a into iree-org:main May 28, 2025
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
It closes #20907.
It closes #20093.

Newly supported APIs:
- PJRT_Client_AddressableMemories 
- PJRT_Device_AddressableMemories 
- PJRT_Device_DefaultMemory
- PJRT_Buffer_Memory
- PJRT_Memory_Id
- PJRT_Memory_Kind
- PJRT_Memory_ToString
- PJRT_Memory_DebugString
- PJRT_Memory_AddressableByDevices

Currently the memory is one-to-one mapped from its device, just for JAX
to successfully initialize the PJRT plugin.

After this patch, the PJRT plugin can support JAX from 0.5.1 up to the
latest version (0.6.1) (see #20907 for the current status).

ci-exactly: build_packages, test_pjrt

Signed-off-by: PragmaTwice <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IREE PJRT plugin failed to support jax with version>=0.5.1 PJRT missing PJRT_Memory

2 participants