Skip to main content

A Zarr store and codecs for cuda.

Project description

cuda-zarr

PyPI Downloads Downloads Stars

Two zarr-python v3 compatible stores using kvikio for remote and local data: https://docs.rapids.ai/api/kvikio/stable/quickstart/ plus (at least one) codec(s).

install

uv pip install cuda-zarr[cuda12]

usage

Nvidia's documentation on how level/checksum are used in Zstd (the only exported codec here) is quite sparse (here?), but testing seems to show levels -7 to 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 ZstdGPU, CuFileStore, RemoteCuFileStore
import zarr

zarr.registry.register_codec("zstd", ZstdGPU)
zarr.config.set({'codecs.zstd': f"{ZstdGPU.__module__}.{ZstdGPU.__name__}", "buffer": "zarr.core.buffer.gpu.Buffer", "ndbuffer": "zarr.core.buffer.gpu.NDBuffer"})

store = CuFileStore('/path/to/store')
remote_store = RemoteCuFileStore.from_url("http://my_remote_data_server.com/path/to/the/store.zarr")
...

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.3.tar.gz (16.5 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.3-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cuda_zarr-0.1.3.tar.gz
  • Upload date:
  • Size: 16.5 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.3.tar.gz
Algorithm Hash digest
SHA256 a65324b8cc856166f393c9f6ed5234004229ae090662c616f6b4ebb57341c867
MD5 ce3a680bd09898eead58c8a49753643b
BLAKE2b-256 e310d9cf2ef0cf1c22b7e523c008f3f94291ce734915af2706ede3e5a53f6291

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: cuda_zarr-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 16.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 efcf34a3df0ea1c69e07cf7c112b9ef5f1da216a97caa3a78c54df223780f147
MD5 fd429ad2bbd7cb9190cc2b37a5ee75e3
BLAKE2b-256 4cedd6667a84331d83ab9feac23a7fe0204fe2b8938eb6ca47a1f1ea3b9a693d

See more details on using hashes here.

Provenance

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