Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 833 Bytes

README.md

File metadata and controls

49 lines (36 loc) · 833 Bytes

GNI - Python pkg

GNI uses pyo3 to write a native python library, and maturin is the recommended build tool.

Install from pypi

$ pip install gni

Running the library:

$ python
>>> import gni_lib
>>> gni_lib.get_gpu_node_id()
<id>

Building from source

  1. Install maturin (see maturin installation guide)

    pip install maturin
    
  2. Builds the package

    maturin build
    

You can view the built wheels in the target/wheels directory

Installing from source

  1. Builds the crate and installs it in the current env

    maturin develop --features python
    
  2. Run gni

    python src/python/main.py