Skip to content

Add Python bindings for hipFile (GPU-direct storage on ROCm)#221

Closed
glimchb wants to merge 1 commit intoROCm:developfrom
glimchb:python
Closed

Add Python bindings for hipFile (GPU-direct storage on ROCm)#221
glimchb wants to merge 1 commit intoROCm:developfrom
glimchb:python

Conversation

@glimchb
Copy link

@glimchb glimchb commented Mar 17, 2026

ctypes-based Python package mirroring the cufile-python API so that
LMCache can use hipFile as a drop-in replacement on ROCm.

  • Low-level bindings (bindings.py) wrapping libhipfile.so
  • High-level API with CuFile/CuFileDriver matching cufile exactly
  • Mock-based test suite (27 tests, runs without AMD hardware)
  • PyTorch integration example

Fixes: #201

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

ctypes-based Python package mirroring the cufile-python API so that
LMCache can use hipFile as a drop-in replacement on ROCm.

- Low-level bindings (bindings.py) wrapping libhipfile.so
- High-level API with CuFile/CuFileDriver matching cufile exactly
- Mock-based test suite (27 tests, runs without AMD hardware)
- PyTorch integration example

Fixes: ROCm#201

Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
@gaoikawa
Copy link
Collaborator

Thank you @glimchb for the contribution suggestion here - really appreciate it - however the hipFile team will in all likelihood put the python bindings in another HIP/ROCm repo so that we follow the HIP/ROCm standard among other projects/libraries. We also need to figure out the process for publishing ROCm python wheels. It's on our short-term backlog to add python bindings for hipFile.

In the meanwhile, if you need these bindings for other frameworks usage, we recommend forking our repo and then storing the changes in a branch on your fork.

Thank you,
Gary

@gaoikawa gaoikawa closed this Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Requesting Python bindings for hipFile

2 participants