Skip to main content

Python bindings for hipFile — direct-to-GPU file IO via AMD Infinity Storage (AIS)

Project description

hipFile Python Bindings

Python bindings for the hipFile C library.

[!CAUTION] These bindings in particular are experimental and the API will change.

Building & Installing

  1. Setup a Python virtual environment.
    $ python3 -m venv .venv
    
  2. Activate the Python virtual environment.
    $ source .venv/bin/activate
    
  3. Build or install the C hipFile library. See INSTALL.md.
  4. Build the hipFile package.
    and shared library using its configured search paths, including the source ../include location for headers, a CMake build-directory hint for the shared library, and the default ROCm install location. The search path can be overridden by setting HIPFILE_INCLUDE_DIR, HIPFILE_LIBRARY, or HIP_INCLUDE_DIR via the build arg -Ccmake.define.<KEY>=<VALUE>.
    (.venv) $ cd projects/hipfile/python
    (.venv) $ python -m build --wheel
    
    Or to install an editable version of the Python package:
    (.venv) $ cd projects/hipfile/python
    (.venv) $ pip install -e .
    

An editable Python package is a development package that allows for live changes to the Python source code to be applied immediately without needing to rebuild or reinstall the Python package under development. Any changes to the Cython source code will require a rebuild step.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hipfile-0.2.0.dev1.tar.gz (71.1 kB view details)

Uploaded Source

File details

Details for the file hipfile-0.2.0.dev1.tar.gz.

File metadata

  • Download URL: hipfile-0.2.0.dev1.tar.gz
  • Upload date:
  • Size: 71.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for hipfile-0.2.0.dev1.tar.gz
Algorithm Hash digest
SHA256 e43943d467522787f612b8cac63e0857b3d6ff6f860119ea3accd38d1c3276e9
MD5 652cfc813c34bc12846919d1d02b68e5
BLAKE2b-256 c0723739e3451979d5dc5c55a1ac5ed2e08ce7c326b3daf9cb7cc0e7bbf1c78b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page