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.1.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.1-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cuda_zarr-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2146409e6c1b048defe02245760e7bea0dddb2cce1f782785beb141e0993ef21
MD5 6dba22469b29a5888eca34ed42d2ac2c
BLAKE2b-256 7531413656409f47d2d433a0b907010e467a26fe239711d7a782606665be4d2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for cuda_zarr-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: cuda_zarr-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c0fc4f353d1fa95bdfef161a66458137fea5117cedcb86eb47d847d3d7c4baf4
MD5 63bee3e4e50585b8eb996bc673679270
BLAKE2b-256 a8e5050543003a941141c430d28ba225a6689c3522c5d8b928104b1a3c56dc80

See more details on using hashes here.

Provenance

The following attestation bundles were made for cuda_zarr-0.1.1-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