Hi Gerard,

El dc 19 de 07 del 2006 a les 15:30 +0200, en/na Gerard Vermeulen va
escriure:
> I am assembling a Python setup including PyTables for AcuSim that must run on
> Windows 32 bit, Windows 64 bit, Linux 64 bit, and Linux 32 bit.
> The support desk of HDF5 advised to use hdf5-1.8.0-alpha, because it supports
> Win64.  I am using MicroSoft Visual Studio 2005 because it supports Win32 and
> Win64. In addition, hdf5-1.8.0 supports this toolset on Win64.

Yeah. My experience is that HDF5 1.8.0, even in alpha, is a quite stable
platform.

> 
> The attached patch for PyTables addresses the following issues on Windows:

Good. Will have a look at them asap.

> 1. PyTables will build against the hdf5 debug libraries when the --debug 
> option
>    is given.
> 
> 2. it undefines the DEBUG macro on Windows.  Somehow the DEBUG macro makes 
> that
>    dflcn.h gets included in utils.c, but I did not figure out why.
> 
> 3. the declaration of config in set_cache_size() in utils.c must be before the
>    statement 'code = 0;' (gcc accepts this C++ idiom, but MSVS2005 does not).
> 
> 4. Win64 is a bit of a strange platform, because a long has 32 bits and as a
>    consequence Numeric has no 64 bit integer type. Actually, I would rename
>    is64bits_platform to has64_bits_long as indicated in the comments in the
>    patch and use the struct module to determine the size of a long.
>    I applied this patch trying to solve some of the failures in the unit tests
>    (output attached) due to Numeric not having a 64 bit integer type on Win64.

So, Win64 long ints are 32-bit? Oh my! I think that could break a lot of
thinks inside PyTables because my understanding was that a long was
64-bit in 64-bit platforms and 32-bit in 32-bit ones.

> 
> 
> In a separate posts (because of SF's 40 kB length restriction) follow the 
> output
> of regression tests for Win32 (test.pytables.bw32) and Win64 
> (test.pytables.bw64).
> I worry less about the regression test failures on Win64 than on Win32:
> 

Ok. Will have a look at this as well.

> 
> Additional observations:
> 
> 1. All HDF5-1.8.0-alpha3 tests succeed on Win32
> 
> 2. I have also built HDF5-1.6.5 and PyTables on Win32 with MSVS2005 and I
>    observe the same problems (but some of the HDF5-1.6.5 tests crash).
> 
> 3. Occasionally, I have also seen HDF5-DIAG messages on Linux64, but as far as
>    I can tell, the messages occur only when the pthreads option has been 
> disabled.
> 
> 
> Gerard
> 
> PS: I have patches for Python-2.4.3 and the Numerical Python extensions, if 
> you
>     need or want  them.

Mmm, send them also, please. They would be interesting.

Thanks!

-- 
>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to