LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Reuti (reuti_at_[hidden])
Date: 2005-02-03 19:32:07


> shared int s = 1;

Is this is a statement of a parallel C like UPC? This is not LAM or MPI.

> and things to that effect. Is there a way to set that up?
> Is it just a basic example and the syntax is wrong or could that work?
>
> -example of code
> if(rank == 0)
> s = 0;
> But on any other system s will still equal 1 if I print it.

Yes, without any MPI statements I wouldn't expect it. - Reuti

>
>
> -----Original Message-----
> From: lam-bounces_at_[hidden] [mailto:lam-bounces_at_[hidden]]On Behalf
> Of Reuti
> Sent: Thursday, February 03, 2005 15.39
> To: General LAM/MPI mailing list
> Subject: Re: LAM: Question
>
>
> LAM is just one implementation of MPI. So you may look up the documentation
> like:
>
> http://www.netlib.org/utk/papers/mpi-book/mpi-book.html
>
> or some tutorials:
>
> ftp://math.usfca.edu/pub/MPI/mpi.guide.ps
>
> http://www.science.uva.nl/research/scs/edu/pscs/guide.pdf
>
> http://www.science.uva.nl/research/scs/edu/distr/guide_to_the_practical_work
> .pd
> f
>
>
> But depending on your problem with shared variables, you may also consider
> to
> check GlobalArrays, Linda and Charm++ as a method to write parallel
> programs.
>
> Cheers - Reuti
>
>
> Quoting Matthew Golabiewski <m.golabiewski_at_[hidden]>:
>
> > This is a newbie question completely.
> > I was wondering about LAM and using shared variables.
> > How exactly does one do this so all parts of the program use the same
> one?
> > Is there something to do with A "shared" storage class specified?
> > But that will not work for me right now.
> >
> > Thanks,
> > MJG
> >
> > _______________________________________________
> > This list is archived at http://www.lam-mpi.org/MailArchives/lam/
> >
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>