Re: [OMPI users] How to run OpenMPI C code under Windows 7

2015-11-22 Thread Philip Bitar
Thank you, Marco and Tim. I needed to install the libopenmpi-devel package.Now I would be pleased to obtain a link to material that explains the OpenMPI system, in general, and the OpenMPI C functions, in particular, so that I can write C programs to use the OpenMPI system.


Re: [OMPI users] How to run OpenMPI C code under Windows 7

2015-11-22 Thread Tim Prince


On 11/22/2015 5:04 PM, Philip Bitar wrote:
> *How to run OpenMPI C code under Windows 7*
>
> I'm trying to get OpenMPI C code to run under Windows 7 any way that I
> can. Evidently there is no current support for running OpenMPI
> directly under Windows 7, so I installed Cygwin. Is there a better way
> to run OpenMPI C code under Windows 7?
>
> Under Cygwin, I installed a GCC C compiler, which works.
>
> I also installed an OpenMPI package. Here is a link to a list of the
> files in the Cygwin OpenMPI package:
>
> https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86%2Flibopenmpi%2Flibopenmpi-1.8.6-1=openmpi
>
> My PATH variable is as follows:
>
> /usr/local/bin:/usr/bin
>
> mpicc will compile, but it won't link. It can't find the following:
>
> -lmpi
> -lopen-rte
> -lopen-pal
>
> The test program includes stdio.h and is nothing more than printf
> hello world. I can compile and run it using the GCC C compiler.
>
> Presumably I need to update the PATH variable so that the link step
> will find the missing components. Are those components file names or
> info contained in some other files? Can I verify that the needed files
> have been installed?
>
> I would also be pleased to obtain a link to material that explains the
> OpenMPI system, in general, and the OpenMPI C functions, in
> particular, so that I can write C programs to use the OpenMPI system.
>
> I looked for this kind of info on the web, but I haven't found it yet.
> Maybe it's on the OpenMPI site, and I missed it.
>
>
You probably want the libopenmpi-devel package from cygwin setup.exe as
well.  If you have windows 7 X64, the x86_64 cygwin is probably
preferable to 32-bit (can't see which you started with).
An alternative, with a build of mingw x86-64, is Walt Brainerd's CAF
build.  If this wasn't discussed in the OpenMPI archives, but has not
been withdrawn, you might ask the author, e.g.
https://groups.google.com/forum/#!searchin/comp.lang.fortran/coarray$20fortran/comp.lang.fortran/P5si9Fj1yIY/ptjM8DMUUzUJ
It's a little difficult to use if you have another MPI installed, as
Windows MPI (like the MPI which comes with linux distros) don't observe
normal methods for keeping distinct paths.
I doubt there is a separate version of OpenMPI docs specific to Windows.

-- 
Tim Prince



Re: [OMPI users] How to run OpenMPI C code under Windows 7

2015-11-22 Thread Marco Atzeri

On 22/11/2015 23:04, Philip Bitar wrote:

*How to run OpenMPI C code under Windows 7*

I'm trying to get OpenMPI C code to run under Windows 7 any way that I
can. Evidently there is no current support for running OpenMPI directly
under Windows 7, so I installed Cygwin. Is there a better way to run
OpenMPI C code under Windows 7?

Under Cygwin, I installed a GCC C compiler, which works.

I also installed an OpenMPI package. Here is a link to a list of the
files in the Cygwin OpenMPI package:

https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86%2Flibopenmpi%2Flibopenmpi-1.8.6-1=openmpi

My PATH variable is as follows:

/usr/local/bin:/usr/bin

mpicc will compile, but it won't link. It can't find the following:

-lmpi
-lopen-rte
-lopen-pal


have you installed libopenmpi-devel ?



[OMPI users] How to run OpenMPI C code under Windows 7

2015-11-22 Thread Philip Bitar
How to run OpenMPI C code under Windows 7I'm trying to get OpenMPI C code to run under Windows 7 any way that I can. Evidently there is no current support for running OpenMPI directly under Windows 7, so I installed Cygwin. Is there a better way to run OpenMPI C code under Windows 7?Under Cygwin, I installed a GCC C compiler, which works.I also installed an OpenMPI package. Here is a link to a list of the files in the Cygwin OpenMPI package:https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86%2Flibopenmpi%2Flibopenmpi-1.8.6-1=openmpiMy PATH variable is as follows:/usr/local/bin:/usr/binmpicc will compile, but it won't link. It can't find the following:-lmpi-lopen-rte-lopen-palThe test program includes stdio.h and is nothing more than printf hello world. I can compile and run it using the GCC C compiler.Presumably I need to update the PATH variable so that the link step will find the missing components. Are those components file names or info contained in some other files? Can I verify that the needed files have been installed?I would also be pleased to obtain a link to material that explains the OpenMPI system, in general, and the OpenMPI C functions, in particular, so that I can write C programs to use the OpenMPI system.I looked for this kind of info on the web, but I haven't found it yet. Maybe it's on the OpenMPI site, and I missed it.Thanks for your help!Philip Bitar