yogevb / a-dda

Automatically exported from code.google.com/p/a-dda
0 stars 0 forks source link

64bit Windows binaries #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Produce 64bit Windows binaries. It seems that currently MinGW does not
support 64 bit, so we have to use a heavier Cygwin instead for compilation.
The code should already be ready.

Original issue reported on code.google.com by yurkin on 7 Apr 2009 at 3:05

GoogleCodeExporter commented 9 years ago

Original comment by yurkin on 7 Apr 2009 at 3:27

GoogleCodeExporter commented 9 years ago

Original comment by yurkin on 26 May 2009 at 7:26

GoogleCodeExporter commented 9 years ago

Original comment by yurkin on 12 Jul 2010 at 8:38

GoogleCodeExporter commented 9 years ago
There is a 64-bit MinGW port (http://mingw-w64.sourceforge.net/) which I have 
used and accomplished to compile 64-bit Windows binaries.

Original comment by antti.pe...@gmail.com on 8 Nov 2011 at 10:17

GoogleCodeExporter commented 9 years ago
Antti, thanks for the information. Actually, I have tried to use this MinGW 
port this summer and have almost finished it. I have also updated the wiki 
pages on MinGW installation to reflect my experience:
http://code.google.com/p/a-dda/wiki/InstallingMinGW
By the way, can you please also look at these instructions - maybe you can add 
something based on these experience.

The only problem I have encountered is that mingw64 does not support (or was 
not supporting at that time) "%z" printf format, which leads to minor problems 
(a few missing numbers in the output). The ocl part of the code failed to 
compile at all, but this is connected with some C++ issues.

This should not be hard to solve so I hope to finish it by the next release.

And can you please post here or send me the binaries that you built?

Original comment by yurkin on 8 Nov 2011 at 1:51

GoogleCodeExporter commented 9 years ago
OK,

I attach here two sequential versions for Win 64bit - one with Temperton FFT 
(slower) and other which is linked to use FFTW3 (version 3.3, faster). The 
information about the compiler is below:

$ gcc -v
Using built-in specs.
COLLECT_GCC=c:\prog\mingw64\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/prog/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.5.2/
lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../build/gcc/src/configure --target=x86_64-w64-mingw32 
--prefix=/c/bb/vista64-mingw32/mingw-x86-x86_64/build/build/root 
--with-sysroot=/c/bb/vista64-mingw32/mingw-x86-x86_64/build/build/root 
--enable-languages=all,obj-c++ --enable-fully-dynamic-string --disable-multilib
Thread model: win32
gcc version 4.5.2 20100913 (prerelease) (GCC)

Original comment by antti.pe...@gmail.com on 8 Nov 2011 at 4:57

Attachments:

GoogleCodeExporter commented 9 years ago
BTW, the bug with %z printf is there.

Original comment by antti.pe...@gmail.com on 8 Nov 2011 at 5:00

GoogleCodeExporter commented 9 years ago
Compilation on 64-bit Windows works perfectly for seq and mpi versions after 
r1111. 

The only remaining problem is ocl version, but this seems to be a peculiar 
feature of Nvidia drivers for 64-bit Windows. It should be investigated in 
issue 118.

Original comment by yurkin on 21 Mar 2012 at 5:00