cufile-python-0.2.0


توضیحات

A basic Python wrapper for the NVidia cuFile API
ویژگی مقدار
سیستم عامل POSIX :: Linux
نام فایل cufile-python-0.2.0
نام cufile-python
نسخه کتابخانه 0.2.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Ilya Yanok
ایمیل نویسنده ilya.yanok@gmail.com
آدرس صفحه اصلی https://github.com/yanok/cufile-python
آدرس اینترنتی https://pypi.org/project/cufile-python/
مجوز MIT
# cufile-python A basic Python wrapper for the NVidia cuFile API ## Installation ```bash pip install cufile-python ``` ## Usage Basic usage with the `CuFile` context manager: ```python from cufile import CuFile import torch import ctypes # allocate an empty buffer in VRAM t = torch.empty((1024, 1024, 16), dtype=torch.float32, device="cuda") with CuFile("test.bin", "r") as f: f.read(ctypes.c_void_p(t.data_ptr()), t.nbytes) ``` Alternatively one could `import cufile.bindings` and use it as if calling libcufile from C++. ## Development To set up the development environment: 1. Clone the repository: ```bash git clone https://github.com/yanok/cufile-python.git cd cufile-python ``` 2. Install development dependencies: ```bash pip install -r requirements.txt ``` 3. Run tests: ```bash python -m pytest tests/ ``` ## License This project is licensed under the MIT License - see the LICENSE file for details.


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl cufile-python-0.2.0:

    pip install cufile-python-0.2.0.whl


نصب پکیج tar.gz cufile-python-0.2.0:

    pip install cufile-python-0.2.0.tar.gz