<div dir="ltr">This works well with my environment. Now I would like to make using the parallel features optional. <br><br>So if the command is 'cook' the project will build using the normal options. If the command is 'cook parallel' the project will build using parallel builds. <br>
<br>So somehow I need to conditionally set the 'parallel_jobs', 'parallel_rsh', and 'parallel_hosts' variables only when the target "parallel" is specified on the command line. <br><br>I have tried a number of options but I can't get this to work. Please let me 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 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><div class="gmail_quote">
On Wed, Sep 3, 2008 at 3:26 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"><div><div></div><div class="Wj3C7c">-----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 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 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 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 the<br>
> exit status of the command named in "parallel_rsh"?<br>
<br></div></div>
The paragraph refers to the inability of rsh to correctly report exit status, thus<br>
the "internal contortions" used by cook were designed to ignore that and work around it.<br>
Thus you should see the correct exit status, no matter what actually farms out the command.<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>
>Thanks,<br>
>-Ryan Thompson<br>
<br>
</font>
</p>
</div>
</blockquote></div><br></div>