On Wed, 23 Apr 2003 12:00:13 -0500
lam-request_at_[hidden] wrote:
> Send lam mailing list submissions to
> lam_at_[hidden]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://www.lam-mpi.org/mailman/listinfo.cgi/lam
> or, via email, send a message with subject or body 'help' to
> lam-request_at_[hidden]
>
> You can reach the person managing the list at
> lam-owner_at_[hidden]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of lam digest..."
>
Hi,
I do not understanding very well, but let's go.
You don't need use a script. I did have the same problem and I resolve using own LAM/MPI
calls.
You can make two vectors(or more) with your paramaters and the processes can get correct
values using 'job queue number'. First use a int var to define the 'job number' and use a MPI_Send
call as in below:
MPI_COMM_SIZE(MPI_COMM_WORLD, nodes, err);
job = 9// example 3*3
//seed the nodes
for(i_PID=0;i_PID<nodes;i_PID++){
call MPI_SEND(jobs, // messages buffer
1, // one data item
MPI_INTEGER, //of this type
i_PID, //to this node
WORKTAG, //the worktag
MPI_COMM_WORLD, //always use this
err); //error code
job--;
}
You must have the 'parms' in vectors:
parm1[]={0.1,0.2,0.3}; parm2[]={1.2,2.5,3.7}
Then in your main code you put a line like this:
i=job/3; j=job%3;
WantedVal=foo(parm1[i], parm2[j],some, other, dummy, argument, that, you, may, put, in,
procedure, call);
You must use MPI_Recv call to get 'job queue number' value.
I have used this from LAM/MPI examples codes.
Sorry if this do not will help you, but I try...[8)
Good lucky!!!
ps: I not a native english speaker, then...
-------------------
Marlon Régis Schmitz
mschmitz_at_[hidden]
mrschmitz_at_[hidden]
33166512(M205-PG)
33166544(H119-LieF)
91982962(celular)
32262975(casa)
|