<div dir="ltr">Thanks, that works nicely. <br><br>Now I can run 'cook <target> parallel=1' to enable the parallel features. <br><br>-RT<br><br><div class="gmail_quote">On Wed, Sep 3, 2008 at 5:36 PM, Pendergraft, Jerry <span dir="ltr"><<a href="mailto:JPendergraft@sjm.com">JPendergraft@sjm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<p><font size="2">Try using the #ifdef mechanism ala:<br>
<br>
#ifdef parallel<div class="Ih2E3d"><br>
parallel_jobs = 4;<br>
parallel_rsh = ./parsub;<br>
parallel_hosts = host1 host2 host3 host4;<br></div>
#endif<div class="Ih2E3d"><br>
<br>
Jerry Pendergraft voice:651-523-6935<br>
St.Jude Medical mobil:651-491-0163<br>
Atrial Fibrillation Division <a href="mailto:email%3Ajpendergraft@sjm.com" target="_blank">email:jpendergraft@sjm.com</a><br>
1350 Energy Lane<br>
St.Paul, MN 55108<br>
<br></div><div><div></div><div class="Wj3C7c">
-----Original Message-----<br>
From: <a href="mailto:flamtapgt@gmail.com" target="_blank">flamtapgt@gmail.com</a> on behalf of Ryan Thompson<br>
Sent: Wed 03-Sep-08 15:34<br>
To: Pendergraft, Jerry<br>
Cc: <a href="mailto:cook-users@auug.org.au" target="_blank">cook-users@auug.org.au</a><br>
Subject: Re: [Cook] Cook distributed build with load-balancing system<br>
<br>
This works well with my environment. Now I would like to make using the<br>
parallel features optional.<br>
<br>
So if the command is 'cook' the project will build using the normal options.<br>
If the command is 'cook parallel' the project will build using parallel<br>
builds.<br>
<br>
So somehow I need to conditionally set the 'parallel_jobs', 'parallel_rsh',<br>
and 'parallel_hosts' variables only when the target "parallel" is specified<br>
on the command line.<br>
<br>
I have tried a number of options but I can't get this to work. Please let me<br>
know how to do this, or at least where to look in the user's guide.<br>
<br>
Here's the gist of what I want to do. This doesn't work though (it doesn't<br>
build in parallel).<br>
<br>
../bin/myprogram: [OBJ] [INCDIR]<br>
{<br>
[CC] -o ../bin/[target] [LIBS] [OBJ] ;<br>
}<br>
<br>
parallel::<br>
{<br>
parallel_jobs = 4;<br>
parallel_rsh = ./parsub;<br>
parallel_hosts = host1 host2 host3 host4;<br>
cook ../bin/myprogram<br>
}<br>
<br>
Thanks for any help,<br>
-Ryan Thompson<br>
<br>
<br>
On Wed, Sep 3, 2008 at 3:26 PM, Pendergraft, Jerry <<a href="mailto:JPendergraft@sjm.com" target="_blank">JPendergraft@sjm.com</a>>wrote:<br>
<br>
> -----Original Message-----<br>
> From: cook-users-bounces+jpendergraft=<a href="http://sjm.com" target="_blank">sjm.com</a>@<a href="http://auug.org.au" target="_blank">auug.org.au</a> on behalf of<br>
> Ryan Thompson<br>
> Sent: Wed 03-Sep-08 13:26<br>
> To: <a href="mailto:cook-users@auug.org.au" target="_blank">cook-users@auug.org.au</a><br>
> Subject: [Cook] Cook distributed build with load-balancing system<br>
><br>
> > I am interested in using the "virtual machine" ability to run a parallel<br>
> > build in our batch compute environment (Platform LSF, similar to Sun<br>
> Grid,<br>
> > etc.).<br>
><br>
> >Since this is not rsh or ssh I am not sure how it will work. I think I can<br>
> >point the parallel_rsh variable to a script which does the job submission<br>
> >(similar to using cook_rsh), but I am concerned by this paragraph in<br>
> >"limitations":<br>
><br>
> >"The exit status of the remote command is not reported in the exit status<br>
> of<br>
> >the rsh(1) command. There are internal contortions used by Cook to obtain<br>
> >the exit status;"<br>
><br>
> > Can you provide more information on what Cook will look for to determine<br>
> the<br>
> > exit status of the command named in "parallel_rsh"?<br>
><br>
> The paragraph refers to the inability of rsh to correctly report exit<br>
> status, thus<br>
> the "internal contortions" used by cook were designed to ignore that and<br>
> work around it.<br>
> Thus you should see the correct exit status, no matter what actually farms<br>
> out the command.<br>
><br>
> Jerry Pendergraft voice:651-523-6935<br>
> St.Jude Medical mobil:651-491-0163<br></div></div>
> Atrial Fibrillation Division <a href="mailto:email%3Ajpendergraft@sjm.com" target="_blank">email:jpendergraft@sjm.com</a><<a href="mailto:email%253Ajpendergraft@sjm.com" target="_blank">email%3Ajpendergraft@sjm.com</a>><div class="Ih2E3d">
<br>
> 1350 Energy Lane<br>
> St.Paul, MN 55108<br>
><br>
> >Thanks,<br>
> >-Ryan Thompson<br>
><br>
><br>
<br>
</div></font>
</p>
</div>
</blockquote></div><br></div>