A Zarr store and codecs for cuda.
Project description
cuda-zarr
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
961e50f5a3d669b7464a4de4c3c0d2fe381e9b626e2ec155f92a07b793b67441
|
|
| MD5 |
183c2ad91a45974bdbf61309fec04ee5
|
|
| BLAKE2b-256 |
a1c695a681bf33ee9e346a2803ba55f65b5c8f0594ce7b12abc33605cdf38d7d
|
Provenance
The following attestation bundles were made for cuda_zarr-0.1.2.tar.gz:
Publisher:
publish.yml on ilan-gold/cuda-zarr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cuda_zarr-0.1.2.tar.gz -
Subject digest:
961e50f5a3d669b7464a4de4c3c0d2fe381e9b626e2ec155f92a07b793b67441 - Sigstore transparency entry: 173346808
- Sigstore integration time:
-
Permalink:
ilan-gold/cuda-zarr@70a4f0e622ddf1fed289cd38c61487ec85681770 -
Branch / Tag:
refs/tags/0.1.2 - Owner: https://github.com/ilan-gold
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@70a4f0e622ddf1fed289cd38c61487ec85681770 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
021520a42ae5b3cbeb6c49cfb985cda0b51f4c56f42775613b8ff5c4cd71caa1
|
|
| MD5 |
f40fb05a368a14da17829b7ff17440a7
|
|
| BLAKE2b-256 |
1b8bda61a4fcd2360cad6dd9206436a8f373b46936653beb693266ac9dcb1e5b
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cuda_zarr-0.1.2-py3-none-any.whl -
Subject digest:
021520a42ae5b3cbeb6c49cfb985cda0b51f4c56f42775613b8ff5c4cd71caa1 - Sigstore transparency entry: 173346810
- Sigstore integration time:
-
Permalink:
ilan-gold/cuda-zarr@70a4f0e622ddf1fed289cd38c61487ec85681770 -
Branch / Tag:
refs/tags/0.1.2 - Owner: https://github.com/ilan-gold
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@70a4f0e622ddf1fed289cd38c61487ec85681770 -
Trigger Event:
release
-
Statement type: