https://github.com/static-frame/hyray
GPU ? CuPy : NumPy
https://github.com/static-frame/hyray
Last synced: 4 months ago
JSON representation
GPU ? CuPy : NumPy
- Host: GitHub
- URL: https://github.com/static-frame/hyray
- Owner: static-frame
- License: mit
- Created: 2023-07-12T19:38:58.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-06T15:42:37.000Z (almost 2 years ago)
- Last Synced: 2025-01-06T14:30:28.347Z (6 months ago)
- Language: Python
- Homepage:
- Size: 71.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HyRay
### `GPU ? CuPy : NumPy`
GPU arrays (via CuPy) when possible, otherwise CPU arrays (via NumPy)Code: https://github.com/static-frame/hyray
Packages: https://pypi.org/project/hyray
The `hyray` library provides a single interface to use both NumPy and CuPy, depending on the availability of CuPy, CUDA, or sufficient memory. With `hyray` a single implementation can run with CuPy when CuPy is available (on a local machine with a GPU), and still work with NumPy when on GPU or insufficient memory is available (such as on continuous integration servers).