Skip to main content

A Zarr store and codecs for cuda.

Project description

cuda-zarr

A simple zarr-python v3 compatible store that uses the CuFile API: https://docs.rapids.ai/api/kvikio/stable/quickstart/ plus (at least one) codec(s).

install (once on pypi)

uv pip install cuda-zarr[cuda12]

usage

Nvidia's documentation on how level/checksum are used is quite sparse, but testing seems to show levels 1-22 all work. This codec only seems to work when used either roundtrip i.e., data is read and written using it, or only read. If you write data with this, it seems you can't read it back in with CPU data.

from cuda_zarr import LZ4GPU, CuFileStore
register_codec("zstd", LZ4GPU)
zarr.config.set({'codecs.zstd': f"{LZ4GPU.__module__}.{LZ4GPU.__name__}", "buffer": "zarr.core.buffer.gpu.Buffer", "ndbuffer": "zarr.core.buffer.gpu.NDBuffer"})
store = CuFileStore('/path/to/store')
...

Untested in unit testing is the RemoteCuFileStore with s3 (although http is tested). Also RemoteCuFileStore only supports get and not set via kvikio (it will go through normal CPU based fsspec io in the set case).

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

cuda_zarr-0.1.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

cuda_zarr-0.1.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cuda_zarr-0.1.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cuda_zarr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d6d5a4faf6e8d984500c2185be2d1f60dbacbc38bbce7cdd2fe5e93d93bcdd0c
MD5 e21d48bf685ddb82ddfb31690edd909a
BLAKE2b-256 a10a8ee8b3a2ef32078f67d64d1171a2a7723bb826b9ffc1da0987398d42734c

See more details on using hashes here.

Provenance

The following attestation bundles were made for cuda_zarr-0.1.0.tar.gz:

Publisher: publish.yml on ilan-gold/cuda-zarr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: cuda_zarr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cuda_zarr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4475877f35f3729839d406a565ad82bb1e3fd089baa76bc7482893de63792cde
MD5 ce99092875cd19e06c1e189ac5bde8ff
BLAKE2b-256 40b34953e4822d798c35c2db969803d5ccf19be8057fbb96208f21a5c53f2c98

See more details on using hashes here.

Provenance

The following attestation bundles were made for cuda_zarr-0.1.0-py3-none-any.whl:

Publisher: publish.yml on ilan-gold/cuda-zarr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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