So, Amir - how did you get on with MPI on Cygwin then?
M.
Compiling CASINO in Windows 7
-
- Posts: 239
- Joined: Thu May 30, 2013 11:03 pm
- Location: Florence
- Contact:
-
- Posts: 239
- Joined: Thu May 30, 2013 11:03 pm
- Location: Florence
- Contact:
Re: Compiling CASINO in Windows 7
Come on, what's happened to your sense of adventure, man? Where would we be in life if we didn't spend at least some of it doing difficult things..?
I can't think of a better way to spend a wet Monday morning then getting Microsoft products to play nice with other peoples' software.
M.
I can't think of a better way to spend a wet Monday morning then getting Microsoft products to play nice with other peoples' software.
M.
-
- Posts: 10
- Joined: Thu Mar 20, 2014 11:48 am
Re: Compiling CASINO in Windows 7
I'm sorry Mike. Heavy snow and storm have been perturbed internet connections in Ardabil. I saw your posts now. There I cannot find openmpi or mpi for cygwin. Indeed, I found MPICH and MPICH2 for windows. I think that we can install MPICH2 shared libraries in Windows and compile them program in cygwin again. I found a site in which has some information about the compilation of NWchem in Windows. It seems that could be useful for our goal. Please see it:
http://timn.ho.ua/ccs/
Also, ABINIT software has been compiled in native Windows for parallel and I have emailed to their administrator to give me information about that.
http://timn.ho.ua/ccs/
Also, ABINIT software has been compiled in native Windows for parallel and I have emailed to their administrator to give me information about that.
-
- Posts: 10
- Joined: Thu Mar 20, 2014 11:48 am
Re: Compiling CASINO in Windows 7
Dear Mike
I have installed MPICH2 in cygwin and added its bin to my PATH. But I have problem in adding PATH of gcc and gfortran libraries in mpiexec PATH. In the manual of MPICH2, these instructions are given:
Compiling an MPI program:
1) Create a project for Visual Studio 2003, or Intel Fortran 8.0
2) Add mpich2\include to the include path
3) Add mpich2\lib to the library path
4) For C applications add mpi.lib to your target link command.
5) For Fortran applications add fmpich2.lib to the link command.
6) Compile
7) Place your application and all the dlls it depends on in a shared location or copy them to all the nodes.
8) Run the application using mpiexec
For Visual Fortran 6 use fmpich2s.lib:
· fmpich2.lib contains all caps cdecl: MPI_INIT
· fmpich2s.lib contains all caps stdcall: MPI_INIT@4
· fmpich2g.lib or fmpich2g.a contain lowercase cdecl: mpi_init__
For gcc/g77
1) create a makefile
2) add -I…mpich2\include
3) add -L…mpich2\lib
4) add -lmpi (for g77: -lfmpich2g)
5) add the rules for your source files
6) same as 6,7,8 above
But now I can't perform them. Please help me what I must do?
I have installed MPICH2 in cygwin and added its bin to my PATH. But I have problem in adding PATH of gcc and gfortran libraries in mpiexec PATH. In the manual of MPICH2, these instructions are given:
Compiling an MPI program:
1) Create a project for Visual Studio 2003, or Intel Fortran 8.0
2) Add mpich2\include to the include path
3) Add mpich2\lib to the library path
4) For C applications add mpi.lib to your target link command.
5) For Fortran applications add fmpich2.lib to the link command.
6) Compile
7) Place your application and all the dlls it depends on in a shared location or copy them to all the nodes.
8) Run the application using mpiexec
For Visual Fortran 6 use fmpich2s.lib:
· fmpich2.lib contains all caps cdecl: MPI_INIT
· fmpich2s.lib contains all caps stdcall: MPI_INIT@4
· fmpich2g.lib or fmpich2g.a contain lowercase cdecl: mpi_init__
For gcc/g77
1) create a makefile
2) add -I…mpich2\include
3) add -L…mpich2\lib
4) add -lmpi (for g77: -lfmpich2g)
5) add the rules for your source files
6) same as 6,7,8 above
But now I can't perform them. Please help me what I must do?
-
- Posts: 239
- Joined: Thu May 30, 2013 11:03 pm
- Location: Florence
- Contact:
Re: Compiling CASINO in Windows 7
Install a decent Linux distro on your Windows machine, immediately... I personally use Opensuse Linux, and I can recommend that particular distro. (you can partition the hard disk and have both Linux and Windows installed.. of course).Please help me what I must do?
Sorry, being serious - i'm afraid I have no idea.. this is what we're asking you!Please help me what I must do?
I'm not sure you state what your problem actually is, though. You gave us two lists of instructions, but not what happens when you try them?
If I type 'openmpi cygwin' into Google, the first entry isI cannot find openmpi or mpi for cygwin.
Code: Select all
Open MPI: Version 1.8
www.open-mpi.org/software/
Cygwin support, Precompiled Open MPI packages for Cygwin, 2014,
M.
-
- Posts: 239
- Joined: Thu May 30, 2013 11:03 pm
- Location: Florence
- Contact:
Re: Compiling CASINO in Windows 7
OK - following some offline work and commentary by Zoltan, I've just updated the current CASINO distribution to provide hopefully complete Windows/Cygwin support and documentation.. Zoltan also verified that if you just include the relevant OpenMPI packages using the Cygwin setup program then MPI (and hence parallel CASINO) should just work out of the box. All this is explained in the new FAQ A11.
Let me know if something doesn't work, or if something isn't clear.
Cheers,
Mike
Let me know if something doesn't work, or if something isn't clear.
Cheers,
Mike