You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is to document that accessing HDF5 based data like NetCDF-4 will result in errors and killed processes in a multithreaded context. HDF5 can be compiled in a thread-safe way, e.g. as in PyTables/PyTables#776, but it's not the case in the Julia version. Please add locks to your own code instead. See also JuliaIO/HDF5.jl#835, JuliaIO/HDF5.jl#835 and HDF5/build_tarballs.jl
using YAXArrays
using NetCDF
ds =open_dataset("sresa1b_ncar_ccsm3-example.nc")
Threads.@threadsfor i in1:Threads.nthreads()
ds.tas[1, 1, 1]
end
will result in error
ERROR: TaskFailedException
nested task error: NetCDF error code -43:
NetCDF: Attribute not found
or in other contexts:
major: Virtual Object Layer
minor: Can't open object
#003: H5VLnative_attr.c line 130 in H5VL__native_attr_open(): can't open attribute
major: Attribute
minor: Can't open object
#004: H5Aint.c line 545 in H5A__open_by_name(): unable to load attribute info from object header
The text was updated successfully, but these errors were encountered:
This issue is to document that accessing HDF5 based data like NetCDF-4 will result in errors and killed processes in a multithreaded context. HDF5 can be compiled in a thread-safe way, e.g. as in PyTables/PyTables#776, but it's not the case in the Julia version. Please add locks to your own code instead. See also JuliaIO/HDF5.jl#835, JuliaIO/HDF5.jl#835 and HDF5/build_tarballs.jl
Example using file sresa1b_ncar_ccsm3-example.nc:
will result in error
or in other contexts:
The text was updated successfully, but these errors were encountered: