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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file hyray-0.1.0.tar.gz.

File metadata

  • Download URL: hyray-0.1.0.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for hyray-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1a15ff6f59846d7a0421d3e3af9608dbe9ab1d728d000fec029180eef534fa4c
MD5 4fb91875b14e6c3008f7234781ebccbf
BLAKE2b-256 a52ce19250a8d43d7c1e2f59ebf49a7bb5f5ba250c792c551fdd6ddbb9f14b53

See more details on using hashes here.

File details

Details for the file hyray-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hyray-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for hyray-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 156c974b122c67e6fbf89e57335a77415b0f0d41ab0cb7ad66c8be1d52fdf742
MD5 eb340bab2cc9abccbe7a97da10ccb5ab
BLAKE2b-256 676189a1597903af0a446fa738352dbe5225c2dcdd52dbbfa26c6d029002a41f

See more details on using hashes here.

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