That example is meant to be psuedocode -- it's not directly compile-able for (at least) the reason you said.
If you're just starting with MPI, I'd strongly recommend using Open MPI, not LAM/MPI. LAM/MPI has been deprecated in favor of Open MPI for several years.
There's a few examples in Open MPI's tarball under the examples/ directory. The NCSA tutorials are also quite good:
http://ci-tutor.ncsa.uiuc.edu/login.php
You have to get a free account and login. Then search the tutorial listing; IIRC, there's an intro tutorials and an advanced tutorial.
On Aug 17, 2011, at 4:27 AM, Chris Thorne wrote:
> Hi,
>
> the tutorial example: file:///Users/dragonmage/code/MPI/mpiTutorials/ezstart.php.htm
>
> generates compile errors.
> unit_of_work_t is not defined, unless it is supposed to be in the header.
>
> slave(void) uses "result" but defines "results"
>
> cheers,
>
> chris
> --
>
> http://www.vrshed.com
> http://www.floatingorigin.com
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
--
Jeff Squyres
jsquyres_at_[hidden]
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/
|