Re: [OMPI users] How to get started?

2008-10-02 Thread Gus Correa

Hi Anugraha Sankaranarayananand list

Most likely your default mpicc is not the OpenMPI  one that you want to use.
Linux distributions and many commercial compilers come with a variety of
versions of MPI, which may take precedence in your path.
This confusion happens all the time.

I suggest you use full path name for compilation, e.g:

/my/full/path/to/openmpi/bin/mpicc sample.c -o sample

Likewise, use full path name to mpirun/mpiexec when you run the 
executable, e.g.:


/my/full/path/to/openmpi/bin/mpiexec -n 2 sample

I hope this helps,
Gus Correa


--
-
Gustavo J. Ponce Correa, PhD - Email: g...@ldeo.columbia.edu
Lamont-Doherty Earth Observatory - Columbia University
P.O. Box 1000 [61 Route 9W] - Palisades, NY, 10964-8000 - USA
-


Anugraha Sankaranarayanan wrote:


Thank you, everyone.I have successfully installed the openmpi pkg in
my ubuntu hardy heron for gcc( HP Compaq Dual-core notebook) following
the instructions in the FAQ page.I still need to install the
libopenmpi-dev header file pkg.Will come back after doing that.



Anugraha.S


I've installed the libopenmpi-dev and also openmpi-bin.I tried to 
compile a sample program and am getting this error,

atom@atom-laptop:~$ mpicc sample.c -o sample
sample.c:2:17: error: ompi.h: No such file or directory
sample.c: In function 'main':
sample.c:7: error: 'mpi_comm_world' undeclared (first use in this 
function)

sample.c:7: error: (Each undeclared identifier is reported only once
sample.c:7: error: for each function it appears in.)

Am I using the wrong header file? I tried ompic.h too, but the same 
error.What do i have to do?


Thanking in advance,
S.Anugraha.



___
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users





Re: [OMPI users] How to get started?

2008-10-02 Thread jody
It's difficult to tell what is going on without seeing the source code,
but the error message seems to indicate that you wrote
  #include "ompi.h"
instead of
  #include "mpi.h"

Jody

On Thu, Oct 2, 2008 at 9:07 AM, Anugraha Sankaranarayanan
 wrote:
>>Thank you, everyone.I have successfully installed the openmpi pkg in
>>my ubuntu hardy heron for gcc( HP Compaq Dual-core notebook) following
>>the instructions in the FAQ page.I still need to install the
>>libopenmpi-dev header file pkg.Will come back after doing that.
>
>>Anugraha.S
>
> I've installed the libopenmpi-dev and also openmpi-bin.I tried to compile a
> sample program and am getting this error,
> atom@atom-laptop:~$ mpicc sample.c -o sample
> sample.c:2:17: error: ompi.h: No such file or directory
> sample.c: In function 'main':
> sample.c:7: error: 'mpi_comm_world' undeclared (first use in this function)
> sample.c:7: error: (Each undeclared identifier is reported only once
> sample.c:7: error: for each function it appears in.)
>
> Am I using the wrong header file? I tried ompic.h too, but the same
> error.What do i have to do?
>
> Thanking in advance,
> S.Anugraha.
>
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>


Re: [OMPI users] How to get started?

2008-08-30 Thread Jeff Squyres

Adam --

Sorry for the delay; I've been on travels for what seems like forever  
and have fallen behind on updating the FAQ.  I will definitely take  
your text and post it soon.


Many thanks!  (and keep it coming!)


On Aug 28, 2008, at 8:10 AM, Adam C Powell IV wrote:


With no comments in a week, can this go in?  Additional optional text
regarding an unofficial backport is inline below.

Thanks,
Adam

On Thu, 2008-08-21 at 00:22 -0400, Adam C Powell IV wrote:

Okay, here goes a start:

Category: Platform Specific Questions | Debian/Ubuntu

$q[] = "Which Debian Open MPI packages do I need?";

$anchor[] = "debian-package-contents";

$a[] = "That depends on your use of Open MPI.  If you are running a
pre-compiled MPI binary in one process, you simply need  
[libopenmpi1].

To launch jobs in multiple processes, you need [openmpi-bin], which
includes [orted], [orterun] (_a.k.a._ [mpirun]), and [ompi_info].  To
compile programs, you need [libopenmpi-dev], or if you need debugging
symbols, then [libopenmpi-dbg] with debugging symbols. Note: if  
you

install, or have ever installed, mpich and/or lam packages, please be
sure you use [update-alternatives] to make sure that the \"[mpi]\"  
and

\"[mpirun]\" symlinks point to the Open MPI entries.";

$q[] = "How do I run Open MPI programs in a Debian chroot  
environment?";


$anchor[] = "debian-chroot-broken";

$a[] = "As of version 1.2.7, this does not work; see " .
aurchin_click("http://bugs.debian.org/494046;) . "Debian bug
494046.";

$q[] = "Is Ubuntu Linux a supported platform?";

$anchor[] = "ubuntu";

$a[] = "Unofficially, there are Open MPI packages in the Ubuntu
\"universe\" package section.  Unfortunately, the packages in 8.04  
LTS

Hardy Heron are buggy, so you should either get packages from Debian
Lenny or compile Open MPI yourself. In general, Ubuntu gets its
\"universe\" packages from Debian unstable at a time set by their
release schedules, a time generally not known to the Debian package
developers, so the quality of the Ubuntu packages is generally not as
good as that of the packages in a Debian release.";


There is an unofficial backport of the 1.2.7-rc1 release for Ubuntu
Hardy Heron which you can get by following the instructions at:
http://www.opennovation.org/ubuntu/ .


Dirk, any comments?

-Adam

On Fri, 2008-08-15 at 15:43 -0400, Jeff Squyres wrote:

I love it when people submit FAQ text -- please do!  :-)

Check out our guidelines on how to write FAQ entries:

https://svn.open-mpi.org/trac/ompi/wiki/OMPIFAQEntries


On Aug 15, 2008, at 12:20 PM, Adam C Powell IV wrote:


A number of distributors provide pre-compiled Open-MPI packages, so
one
doesn't need to go to the trouble of compiling it.  For example, on
Debian GNU/Linux, Dirk Eddelbuettel has led a packaging effort such
that
"apt-get install libopenmpi-dev openmpi-bin" (or the equivalent  
from
aptitude or synaptic) gets everything one needs to compile and  
run an

Open-MPI program.

Can someone add this to the FAQ?  I'd be glad to contribute a
paragraph,
and update it as needed.  (E.g. Debian Lenny will have a working
version
of 1.2.7-rc2, though Ubuntu Hardy universe has AFAIR a buggy  
version

of
1.2.5...)

-Adam

On Fri, 2008-08-15 at 12:47 +0200, jody wrote:

Hi Anughra

Why don't you check the FAQ first:
http://www.open-mpi.org/faq/

It answers may questions and also provides instruction to install
Open-MPI and build MPI applications.
And, yes, Open-MPI works with gcc.

Jody

On Fri, Aug 15, 2008 at 12:25 PM, Anugraha Sankaranarayanan
 wrote:

hi all,
  I'm new to MPI.Can I install OpenMPI for my gcc?I'm using
Ubuntu(hardy heron) on a Intel DualCore Notebook.


Anugraha.S

--
GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Engineering consulting with open source tools
http://www.opennovation.com/
___
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users



--
Jeff Squyres
Cisco Systems



Re: [OMPI users] How to get started?

2008-08-29 Thread Anugraha Sankaranarayanan
Thank you, everyone.I have successfully installed the openmpi pkg in
my ubuntu hardy heron for gcc( HP Compaq Dual-core notebook) following
the instructions in the FAQ page.I still need to install the
libopenmpi-dev header file pkg.Will come back after doing that.

Anugraha.S

On 8/28/08, Adam C Powell IV  wrote:
> With no comments in a week, can this go in?  Additional optional text
> regarding an unofficial backport is inline below.
>
> Thanks,
> Adam
>
> On Thu, 2008-08-21 at 00:22 -0400, Adam C Powell IV wrote:
>> Okay, here goes a start:
>>
>> Category: Platform Specific Questions | Debian/Ubuntu
>>
>> $q[] = "Which Debian Open MPI packages do I need?";
>>
>> $anchor[] = "debian-package-contents";
>>
>> $a[] = "That depends on your use of Open MPI.  If you are running a
>> pre-compiled MPI binary in one process, you simply need [libopenmpi1].
>> To launch jobs in multiple processes, you need [openmpi-bin], which
>> includes [orted], [orterun] (_a.k.a._ [mpirun]), and [ompi_info].  To
>> compile programs, you need [libopenmpi-dev], or if you need debugging
>> symbols, then [libopenmpi-dbg] with debugging symbols. Note: if you
>> install, or have ever installed, mpich and/or lam packages, please be
>> sure you use [update-alternatives] to make sure that the \"[mpi]\" and
>> \"[mpirun]\" symlinks point to the Open MPI entries.";
>>
>> $q[] = "How do I run Open MPI programs in a Debian chroot environment?";
>>
>> $anchor[] = "debian-chroot-broken";
>>
>> $a[] = "As of version 1.2.7, this does not work; see " .
>> aurchin_click("http://bugs.debian.org/494046;) . "Debian bug
>> 494046.";
>>
>> $q[] = "Is Ubuntu Linux a supported platform?";
>>
>> $anchor[] = "ubuntu";
>>
>> $a[] = "Unofficially, there are Open MPI packages in the Ubuntu
>> \"universe\" package section.  Unfortunately, the packages in 8.04 LTS
>> Hardy Heron are buggy, so you should either get packages from Debian
>> Lenny or compile Open MPI yourself. In general, Ubuntu gets its
>> \"universe\" packages from Debian unstable at a time set by their
>> release schedules, a time generally not known to the Debian package
>> developers, so the quality of the Ubuntu packages is generally not as
>> good as that of the packages in a Debian release.";
>
> There is an unofficial backport of the 1.2.7-rc1 release for Ubuntu
> Hardy Heron which you can get by following the instructions at:
> http://www.opennovation.org/ubuntu/ .
>
>> Dirk, any comments?
>>
>> -Adam
>>
>> On Fri, 2008-08-15 at 15:43 -0400, Jeff Squyres wrote:
>> > I love it when people submit FAQ text -- please do!  :-)
>> >
>> > Check out our guidelines on how to write FAQ entries:
>> >
>> >  https://svn.open-mpi.org/trac/ompi/wiki/OMPIFAQEntries
>> >
>> >
>> > On Aug 15, 2008, at 12:20 PM, Adam C Powell IV wrote:
>> >
>> > > A number of distributors provide pre-compiled Open-MPI packages, so
>> > > one
>> > > doesn't need to go to the trouble of compiling it.  For example, on
>> > > Debian GNU/Linux, Dirk Eddelbuettel has led a packaging effort such
>> > > that
>> > > "apt-get install libopenmpi-dev openmpi-bin" (or the equivalent from
>> > > aptitude or synaptic) gets everything one needs to compile and run an
>> > > Open-MPI program.
>> > >
>> > > Can someone add this to the FAQ?  I'd be glad to contribute a
>> > > paragraph,
>> > > and update it as needed.  (E.g. Debian Lenny will have a working
>> > > version
>> > > of 1.2.7-rc2, though Ubuntu Hardy universe has AFAIR a buggy version
>> > > of
>> > > 1.2.5...)
>> > >
>> > > -Adam
>> > >
>> > > On Fri, 2008-08-15 at 12:47 +0200, jody wrote:
>> > >> Hi Anughra
>> > >>
>> > >> Why don't you check the FAQ first:
>> > >> http://www.open-mpi.org/faq/
>> > >>
>> > >> It answers may questions and also provides instruction to install
>> > >> Open-MPI and build MPI applications.
>> > >> And, yes, Open-MPI works with gcc.
>> > >>
>> > >> Jody
>> > >>
>> > >> On Fri, Aug 15, 2008 at 12:25 PM, Anugraha Sankaranarayanan
>> > >>  wrote:
>> > >>> hi all,
>> > >>>I'm new to MPI.Can I install OpenMPI for my gcc?I'm using
>> > >>> Ubuntu(hardy heron) on a Intel DualCore Notebook.
>> > >>>
>> > >>>
>> > >>> Anugraha.S
> --
> GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6
>
> Engineering consulting with open source tools
> http://www.opennovation.com/
>


Re: [OMPI users] How to get started?

2008-08-28 Thread Adam C Powell IV
With no comments in a week, can this go in?  Additional optional text
regarding an unofficial backport is inline below.

Thanks,
Adam

On Thu, 2008-08-21 at 00:22 -0400, Adam C Powell IV wrote:
> Okay, here goes a start:
> 
> Category: Platform Specific Questions | Debian/Ubuntu
> 
> $q[] = "Which Debian Open MPI packages do I need?";
> 
> $anchor[] = "debian-package-contents";
> 
> $a[] = "That depends on your use of Open MPI.  If you are running a
> pre-compiled MPI binary in one process, you simply need [libopenmpi1].
> To launch jobs in multiple processes, you need [openmpi-bin], which
> includes [orted], [orterun] (_a.k.a._ [mpirun]), and [ompi_info].  To
> compile programs, you need [libopenmpi-dev], or if you need debugging
> symbols, then [libopenmpi-dbg] with debugging symbols. Note: if you
> install, or have ever installed, mpich and/or lam packages, please be
> sure you use [update-alternatives] to make sure that the \"[mpi]\" and
> \"[mpirun]\" symlinks point to the Open MPI entries.";
> 
> $q[] = "How do I run Open MPI programs in a Debian chroot environment?";
> 
> $anchor[] = "debian-chroot-broken";
> 
> $a[] = "As of version 1.2.7, this does not work; see " .
> aurchin_click("http://bugs.debian.org/494046;) . "Debian bug
> 494046.";
> 
> $q[] = "Is Ubuntu Linux a supported platform?";
> 
> $anchor[] = "ubuntu";
> 
> $a[] = "Unofficially, there are Open MPI packages in the Ubuntu
> \"universe\" package section.  Unfortunately, the packages in 8.04 LTS
> Hardy Heron are buggy, so you should either get packages from Debian
> Lenny or compile Open MPI yourself. In general, Ubuntu gets its
> \"universe\" packages from Debian unstable at a time set by their
> release schedules, a time generally not known to the Debian package
> developers, so the quality of the Ubuntu packages is generally not as
> good as that of the packages in a Debian release.";

There is an unofficial backport of the 1.2.7-rc1 release for Ubuntu
Hardy Heron which you can get by following the instructions at:
http://www.opennovation.org/ubuntu/ .

> Dirk, any comments?
> 
> -Adam
> 
> On Fri, 2008-08-15 at 15:43 -0400, Jeff Squyres wrote:
> > I love it when people submit FAQ text -- please do!  :-)
> > 
> > Check out our guidelines on how to write FAQ entries:
> > 
> >  https://svn.open-mpi.org/trac/ompi/wiki/OMPIFAQEntries
> > 
> > 
> > On Aug 15, 2008, at 12:20 PM, Adam C Powell IV wrote:
> > 
> > > A number of distributors provide pre-compiled Open-MPI packages, so  
> > > one
> > > doesn't need to go to the trouble of compiling it.  For example, on
> > > Debian GNU/Linux, Dirk Eddelbuettel has led a packaging effort such  
> > > that
> > > "apt-get install libopenmpi-dev openmpi-bin" (or the equivalent from
> > > aptitude or synaptic) gets everything one needs to compile and run an
> > > Open-MPI program.
> > >
> > > Can someone add this to the FAQ?  I'd be glad to contribute a  
> > > paragraph,
> > > and update it as needed.  (E.g. Debian Lenny will have a working  
> > > version
> > > of 1.2.7-rc2, though Ubuntu Hardy universe has AFAIR a buggy version  
> > > of
> > > 1.2.5...)
> > >
> > > -Adam
> > >
> > > On Fri, 2008-08-15 at 12:47 +0200, jody wrote:
> > >> Hi Anughra
> > >>
> > >> Why don't you check the FAQ first:
> > >> http://www.open-mpi.org/faq/
> > >>
> > >> It answers may questions and also provides instruction to install
> > >> Open-MPI and build MPI applications.
> > >> And, yes, Open-MPI works with gcc.
> > >>
> > >> Jody
> > >>
> > >> On Fri, Aug 15, 2008 at 12:25 PM, Anugraha Sankaranarayanan
> > >>  wrote:
> > >>> hi all,
> > >>>I'm new to MPI.Can I install OpenMPI for my gcc?I'm using
> > >>> Ubuntu(hardy heron) on a Intel DualCore Notebook.
> > >>>
> > >>>
> > >>> Anugraha.S
-- 
GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Engineering consulting with open source tools
http://www.opennovation.com/


signature.asc
Description: This is a digitally signed message part


Re: [OMPI users] How to get started?

2008-08-21 Thread Adam C Powell IV
Okay, here goes a start:

Category: Platform Specific Questions | Debian/Ubuntu

$q[] = "Which Debian Open MPI packages do I need?";

$anchor[] = "debian-package-contents";

$a[] = "That depends on your use of Open MPI.  If you are running a
pre-compiled MPI binary in one process, you simply need [libopenmpi1].
To launch jobs in multiple processes, you need [openmpi-bin], which
includes [orted], [orterun] (_a.k.a._ [mpirun]), and [ompi_info].  To
compile programs, you need [libopenmpi-dev], or if you need debugging
symbols, then [libopenmpi-dbg] with debugging symbols. Note: if you
install, or have ever installed, mpich and/or lam packages, please be
sure you use [update-alternatives] to make sure that the \"[mpi]\" and
\"[mpirun]\" symlinks point to the Open MPI entries.";

$q[] = "How do I run Open MPI programs in a Debian chroot environment?";

$anchor[] = "debian-chroot-broken";

$a[] = "As of version 1.2.7, this does not work; see " .
aurchin_click("http://bugs.debian.org/494046;) . "Debian bug
494046.";

$q[] = "Is Ubuntu Linux a supported platform?";

$anchor[] = "ubuntu";

$a[] = "Unofficially, there are Open MPI packages in the Ubuntu
\"universe\" package section.  Unfortunately, the packages in 8.04 LTS
Hardy Heron are buggy, so you should either get packages from Debian
Lenny or compile Open MPI yourself. In general, Ubuntu gets its
\"universe\" packages from Debian unstable at a time set by their
release schedules, a time generally not known to the Debian package
developers, so the quality of the Ubuntu packages is generally not as
good as that of the packages in a Debian release.";

Dirk, any comments?

-Adam

On Fri, 2008-08-15 at 15:43 -0400, Jeff Squyres wrote:
> I love it when people submit FAQ text -- please do!  :-)
> 
> Check out our guidelines on how to write FAQ entries:
> 
>  https://svn.open-mpi.org/trac/ompi/wiki/OMPIFAQEntries
> 
> 
> On Aug 15, 2008, at 12:20 PM, Adam C Powell IV wrote:
> 
> > A number of distributors provide pre-compiled Open-MPI packages, so  
> > one
> > doesn't need to go to the trouble of compiling it.  For example, on
> > Debian GNU/Linux, Dirk Eddelbuettel has led a packaging effort such  
> > that
> > "apt-get install libopenmpi-dev openmpi-bin" (or the equivalent from
> > aptitude or synaptic) gets everything one needs to compile and run an
> > Open-MPI program.
> >
> > Can someone add this to the FAQ?  I'd be glad to contribute a  
> > paragraph,
> > and update it as needed.  (E.g. Debian Lenny will have a working  
> > version
> > of 1.2.7-rc2, though Ubuntu Hardy universe has AFAIR a buggy version  
> > of
> > 1.2.5...)
> >
> > -Adam
> >
> > On Fri, 2008-08-15 at 12:47 +0200, jody wrote:
> >> Hi Anughra
> >>
> >> Why don't you check the FAQ first:
> >> http://www.open-mpi.org/faq/
> >>
> >> It answers may questions and also provides instruction to install
> >> Open-MPI and build MPI applications.
> >> And, yes, Open-MPI works with gcc.
> >>
> >> Jody
> >>
> >> On Fri, Aug 15, 2008 at 12:25 PM, Anugraha Sankaranarayanan
> >>  wrote:
> >>> hi all,
> >>>I'm new to MPI.Can I install OpenMPI for my gcc?I'm using
> >>> Ubuntu(hardy heron) on a Intel DualCore Notebook.
> >>>
> >>>
> >>> Anugraha.S
> > -- 
> > GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6
> >
> > Engineering consulting with open source tools
> > http://www.opennovation.com/
> > ___
> > users mailing list
> > us...@open-mpi.org
> > http://www.open-mpi.org/mailman/listinfo.cgi/users
> 

-Adam
-- 
GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Engineering consulting with open source tools
http://www.opennovation.com/


signature.asc
Description: This is a digitally signed message part


Re: [OMPI users] How to get started?

2008-08-15 Thread Adam C Powell IV
A number of distributors provide pre-compiled Open-MPI packages, so one
doesn't need to go to the trouble of compiling it.  For example, on
Debian GNU/Linux, Dirk Eddelbuettel has led a packaging effort such that
"apt-get install libopenmpi-dev openmpi-bin" (or the equivalent from
aptitude or synaptic) gets everything one needs to compile and run an
Open-MPI program.

Can someone add this to the FAQ?  I'd be glad to contribute a paragraph,
and update it as needed.  (E.g. Debian Lenny will have a working version
of 1.2.7-rc2, though Ubuntu Hardy universe has AFAIR a buggy version of
1.2.5...)

-Adam

On Fri, 2008-08-15 at 12:47 +0200, jody wrote:
> Hi Anughra
> 
> Why don't you check the FAQ first:
> http://www.open-mpi.org/faq/
> 
> It answers may questions and also provides instruction to install
> Open-MPI and build MPI applications.
> And, yes, Open-MPI works with gcc.
> 
> Jody
> 
> On Fri, Aug 15, 2008 at 12:25 PM, Anugraha Sankaranarayanan
>  wrote:
> > hi all,
> > I'm new to MPI.Can I install OpenMPI for my gcc?I'm using
> > Ubuntu(hardy heron) on a Intel DualCore Notebook.
> >
> >
> > Anugraha.S
-- 
GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Engineering consulting with open source tools
http://www.opennovation.com/


signature.asc
Description: This is a digitally signed message part


Re: [OMPI users] How to get started?

2008-08-15 Thread Doug Reeder

Yes, I run it on my dual core apple notebook.

Doug Reeder
On Aug 15, 2008, at 9:58 AM, Anugraha Sankaranarayanan wrote:



>>Are you talking about single notebook or multiple? Doesn't make  
sense to just have it single machine - unless you're building codes  
that gonna go into a cluster.




I have a HP Compaq Notebook with dual core processor.Can i use MPI  
in this?For learning purpose?



___
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users




Re: [OMPI users] How to get started?

2008-08-15 Thread Gus Correa

Hi Anugraha, Jody, Mohd, and list

Anugraha: You should follow Jody's  recommendation.
Read the OpenMPI FAQ, particularly the ones on how to install OpenMPI
compile, and run programs.

jody wrote:

Hi Anughra

Why don't you check the FAQ first:
http://www.open-mpi.org/faq/

It answers may questions and also provides instruction to install
Open-MPI and build MPI applications.
And, yes, Open-MPI works with gcc.

Jody


I could get everything to work here simply by reading the FAQ.
Read also the README file in the main directory of the distribution,
before you install.  It is a good source of information too.

I am not familiar to Ubuntu, but gcc will allow you to build the OpenMPI
"C" language bindings and the compiler wrapper "mpicc",
and use it to compile and run MPI programs in C.
Besides, it will give you the MPI program launchpad "mpiexec".
This is a minimal build of OpenMPI, but may be all that you want to get 
started.


Most likely OpenMPI will also be able to build the C++ language 
bindings, using g++, if present in Ubuntu.
If a Fortran 77 compiler is present (not sure if g77 is good enough for 
the task, but it may),

you can build also the Fortran 77 language bindings.
Finally, if you have a Fortran 90 compiler (again, not sure if gfortran 
works, but it may),

you can build the Fortran 90 language bindings.
If you have PGI or Intel Fortran you can use them instead, if you prefer.

Yes, you can use OpenMPI (and other flavors of MPI)
on a single multicore machine like your dual-core notebook.
It will use the shared memory mechanism for MPI communication.
I am not sure if the performance will be great with your processor, though.
I read reports elsewhere of low MPI performance and memory contention in 
quad-core for instance.
However, performance aside, your laptop is a legitimate platform to 
learn MPI programming,

without the complexities of a networked environment.
It can also be used do develop MPI code of modest size.
You can move to a cluster later, when the need for performance and 
scaling comes.


You should realize that you have only two physical cores/CPUs in your 
machine.
Launching jobs that start two MPI processes is perfectly safe (mpiexec 
-n 2).

Launching jobs that start more than two MPI processes (say, mpiexec -n 8),
will still work if the tasks are relatively small (say, a "hello world" 
program),

but may hang if the tasks are big.

Finally, make sure your laptop has enough memory to run your MPI programs.
For small MPI programs the memory requirements should be minimal.
However, notice that each MPI process you launch has a memory footprint 
of its own,

which you need to sum up (or multiply by the number of processes).
The easy way to check memory usage is through the Linux "top" utility,
while the MPI programs are running.

I hope this helps,
Gus Correa

--
-
Gustavo J. Ponce Correa, PhD - Email: g...@ldeo.columbia.edu
Lamont-Doherty Earth Observatory - Columbia University
P.O. Box 1000 [61 Route 9W] - Palisades, NY, 10964-8000 - USA
-


I hope this helps.


Mohd Radzi Nurul Azri wrote:

Are you talking about single notebook or multiple? Doesn't make sense 
to just have it single machine - unless you're building codes that 
gonna go into a cluster.



On Fri, Aug 15, 2008 at 6:25 PM, Anugraha Sankaranarayanan 
> wrote:


hi all,
I'm new to MPI.Can I install OpenMPI for my gcc?I'm using
Ubuntu(hardy heron) on a Intel DualCore Notebook.
 
 
Anugraha.S


___
users mailing list
us...@open-mpi.org 
http://www.open-mpi.org/mailman/listinfo.cgi/users




--
Thank you.

Nurul Azri Mohd Radzi



___
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users





Re: [OMPI users] How to get started?

2008-08-15 Thread Anugraha Sankaranarayanan
>>Are you talking about single notebook or multiple? Doesn't make sense to
just have it single machine - unless you're building codes that gonna go
into a cluster.



I have a HP Compaq Notebook with dual core processor.Can i use MPI in
this?For learning purpose?


Re: [OMPI users] How to get started?

2008-08-15 Thread jody
Hi Anughra

Why don't you check the FAQ first:
http://www.open-mpi.org/faq/

It answers may questions and also provides instruction to install
Open-MPI and build MPI applications.
And, yes, Open-MPI works with gcc.

Jody

On Fri, Aug 15, 2008 at 12:25 PM, Anugraha Sankaranarayanan
 wrote:
> hi all,
> I'm new to MPI.Can I install OpenMPI for my gcc?I'm using
> Ubuntu(hardy heron) on a Intel DualCore Notebook.
>
>
> Anugraha.S
> ___
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>