Hello
I’m trying to follow the instructions to compile GETM for parallel execution on Windows. My experience with Windows as a development platform is very limited and I still find VS2010 confusing.
I’m on a 64 bit machine – but it seems all solution files are default 32 bit. Is there an easy way to change that. The reason that I can’t use 32 bit is that MS-MPI will not install 32 bit on a 64 bit system.
Karsten
Karsten Bolding
BioScience, AU
Hi Karsten,
Easiest is if I look into it when I get home (to laptop with vs2010). But a few ideas:
The 64 bit installation of MS-MPI includes 32-bit libraries, so that should not cause problems for 32 bit builds. In fact, that is how I run here, building 32-bit mom4 and getm on a 64-bit OS with vs2008.
Nevertheless 64 bit builds should be possible too. If not listed in Visual Studio as options under “platforms” (usually a drop-down box in the top toolbar, similar to the Debug/Release one, by default set to Win32), you can usually add the 64 bit platform using the configuration manager. At least in VS2008... Note that for a 64 bit configuration you’ll need to change the library directory to point to MSMPI_LIB64, at minimum in the Linker options of the getmmain project; perhaps elsewhere too...
Cheers
Jorn
Hello
Seems to work in 64 bit. With some help I managed to add 64 bit solution files and do the compilation. I can also run with mpiexec. There is one problem though – the present solution file copies a dimension.dim file as part of the build process – overwriting the one I’ve copied by hand. Where do I switch this automatic copying off?
Does re-direction of stderr from a parallel GETM to individual files work on Windows?
Sounds good! The automatic copying is done in a “Pre-build event” set for the “getm” project. It was meant to help, but its functionality is not complete so at the moment it only gets in the way... Not sure about the redirection – how would you do that in Linux? In the call to mpiexec?
Hello
Seems to work perfect now. The re-direction works OK. It is done internally in GETM so the file unit associated with stderr is re-assigned to write to a file.
This was for the 32bit version – MS_MPI installed as 64 bit – but as you wrote with 32 libraries as well.
Will work a bit more on the 64 bit. Right now I get compilation errors.