Skip to main content

Simple wrapper for numpy and cupy. Replace `import numpy as np` with `import cunumpy as xp`.

Project description

CuNumpy

Simple wrapper for numpy and cupy. Replace import numpy as np with import cunumpy as xp.

Install

Create and activate python environment

python -m venv env
source env/bin/activate
pip install --upgrade pip

Install the code and requirements with pip

pip install -e .

Example usage:

export ARRAY_BACKEND=cupy
import cunumpy as xp
arr = xp.array([1,2])

print(type(arr))
print(xp.__version__)

Build docs

make html
cd ../
open docs/_build/html/index.html

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

cunumpy-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cunumpy-0.1.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file cunumpy-0.1.1.tar.gz.

File metadata

  • Download URL: cunumpy-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for cunumpy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 314e61d3b3995d597d114406abc80b146444670749b01703684362f6a37292be
MD5 e8a01c752274657e8b9b02f17e7ce3c7
BLAKE2b-256 da5bda43ae0e20e6aa0bc96c2764db5297e8e9603c0cc5fe67a7b9f3b1e3c31c

See more details on using hashes here.

File details

Details for the file cunumpy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cunumpy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for cunumpy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 270eecc46f6f8dfe80808589db8d71c234db1c66faf532c7f90c85cc02e0db46
MD5 c5a7944cdcbb7ea26799b60ce26a8613
BLAKE2b-256 324bf4e7f884a45dd65e4edb87fa9ad986a6e6fe6a67cd74c727bb8861de9f41

See more details on using hashes here.

Supported by

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