Skip to main content

GPU arrays (via CuPy) when possible, otherwise CPU arrays (via NumPy)

Project description

HyRay

GPU ? CuPy : NumPy

GPU arrays (via CuPy) when possible, otherwise CPU arrays (via NumPy)

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).

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

hyray-0.1.0.tar.gz (17.9 kB view hashes)

Uploaded Source

Built Distribution

hyray-0.1.0-py3-none-any.whl (17.2 kB view hashes)

Uploaded Python 3

Supported by

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