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 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 ZstdGPU, CuFileStore, RemoteCuFileStore
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.2.tar.gz (16.0 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.2-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cuda_zarr-0.1.2.tar.gz
  • Upload date:
  • Size: 16.0 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.2.tar.gz
Algorithm Hash digest
SHA256 961e50f5a3d669b7464a4de4c3c0d2fe381e9b626e2ec155f92a07b793b67441
MD5 183c2ad91a45974bdbf61309fec04ee5
BLAKE2b-256 a1c695a681bf33ee9e346a2803ba55f65b5c8f0594ce7b12abc33605cdf38d7d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: cuda_zarr-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 021520a42ae5b3cbeb6c49cfb985cda0b51f4c56f42775613b8ff5c4cd71caa1
MD5 f40fb05a368a14da17829b7ff17440a7
BLAKE2b-256 1b8bda61a4fcd2360cad6dd9206436a8f373b46936653beb693266ac9dcb1e5b

See more details on using hashes here.

Provenance

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