[torquedev] Mr. Siegert's patches Was: Re: [torqueusers] Moving from 32-bit to 64-bit builds of Torque ?

Garrick Staples garrick at usc.edu
Mon Jan 9 20:09:41 MST 2006


On Mon, Jan 09, 2006 at 06:50:58PM -0800, Martin Siegert alleged:
> --- torque-2.0.0p3/src/include/job.h.orig	2005-12-16 15:03:51.405965516 -0800
> +++ torque-2.0.0p3/src/include/job.h	2005-12-16 14:36:07.894446964 -0800
> @@ -441,8 +441,8 @@
>  		    time_t  ji_rteretry;	      /* route retry time */
>  		} ji_routet;
>  		struct {
> -		    int	       ji_fromsock;	/* socket job coming over */
>  		    pbs_net_t  ji_fromaddr;	/* host job coming from   */
> +		    int	       ji_fromsock;	/* socket job coming over */
>  		    int	       ji_scriptsz;	/* script size */
>  		} ji_newt;
>  		struct {

Yes, this is in p5.


> +  if (resc != NULL) {
> +     ncpus = resc->rs_value.at_val.at_long;
> +  }
> +  if (pjob->ji_numvnod > ncpus) {
> +     ncpus = pjob->ji_numvnod;
> +  }
> +  sprintf(buf,"%d",
> +          ncpus);
> +  bld_env_variables(&vtable,variables_else[13],buf);

Can I make a suggestion here?  Instead of putting the value in the env
var, put the value in a file and the filepath in the env var (like
$PBS_NODEFILE.)  That will allow dynamically sized jobs in the future.

-- 
Garrick Staples, Linux/HPCC Administrator
University of Southern California
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torquedev/attachments/20060109/5ba9bdfe/attachment.bin


More information about the torquedev mailing list