Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compression of large matrix #425

Closed
aurelio-amerio opened this issue Oct 21, 2022 · 1 comment
Closed

compression of large matrix #425

aurelio-amerio opened this issue Oct 21, 2022 · 1 comment

Comments

@aurelio-amerio
Copy link

Hello, I have found a potential bug while saving a large matrix on disc with compression. I am using Julia 1.8.2. The code to reproduce the bug is the following:

using JLD2
using CodecZlib

data = Dict()
emptym = zeros(Float32, 87,12*1024^2)
data2["matrix"] = emptym

save("test.jld2", data, compress=true)

You will get a UInt32 truncation error.
If you don't use compression, the data will be written correctly on disc. Could you please investigate this error?
Thank you very much

@JonasIsensee
Copy link
Collaborator

Hi @aurelio-amerio ,

this is not really an issue in JLD2 and has been previously reported in #399.
CodecZlib cannot currently compress arrays larger than 4GB.
There is a fix in JuliaIO/CodecZlib.jl#62
but it has not yet been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants