I Think I worded my message wrong.
I am running fedora core 2. Basic Install. Recompiled the RPM of LAM.
In the examples I've seen of code, I have seen people use
shared int s = 1;
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.
-----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/
|