Hi all,
On May 23, 2010, at 11:27 PM, Mark Miller wrote:
> Hi Jan,
>
> In general, yes, I believe it should be.
>
> I can think of some special cases you might need to consider if they
> apply to you...
>
> a) file size is on 64-bit system grows to be greater than 2^(32-1) (2
> Gigs) and you don't have large file support on your 32-bit system. You
> won't be able to read your file on the 32 bit system. You can 'fix' this
> by using the 'family' Virtual File Driver I think.
Yes, that's true.
> b) you write 64-bit integer dataset AND the values stored in it are
> indeed large enough to REQUIRE 64 bits and your 32 bit system does NOT
> have an appropriate integer type (e.g. long int or long long or
> something) to read it back into. Note, if you write 'int' on your 64 bit
> system and the values are small enough to fit into 32 bit, I am not sure
> if HDF5 will handle reading it into an 'int' on your 32 bit system or
> not. I think it will but I am not sure. You could explicitly attempt to
> read it into long int or long long or int64 if your system supports
> those types AND they are indeed 64 bit.
Yes, the conversion will work, but your values may be truncated.
> These situations are highly UNlikely. So, I'd expect you would have no
> problems. But, I think its important to mention them for completeness. I
> can't think if any other cases where there could be problems.
I agree. This is a primary use case for HDF5 and should work without
any difficulty.
Quincey
> Mark
>
> On Sun, 2010-05-23 at 08:50, Jan Linxweiler wrote:
>> Hallo all,
>>
>> my hdf5 data is generated by a solver compiled in 64bit. My question is if
>> it is possible/safe to read this data with a software using the 32bit
>> libraries?
>>
>> Thx,
>>
>> Jan
>> _______________________________________________
>> Hdf-forum is for HDF software users discussion.
>> [email protected]
>> http://*mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
> --
> Mark C. Miller, Lawrence Livermore National Laboratory
> ================!!LLNL BUSINESS ONLY!!================
> [email protected] urgent: [email protected]
> T:8-6 (925)-423-5901 M/W/Th:7-12,2-7 (530)-753-851
>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org