LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Brian W. Barrett (brbarret_at_[hidden])
Date: 2003-04-21 21:14:06


Hi -

I applied a slightly modified version of the patch to CVS - it should be
in tonight's tarball. Please let me know if it works correctly.

Good luck,

Brian

On Mon, 21 Apr 2003, Ron Chen wrote:

> I am trying to add support in LAM 7 to run jobs under
> SGE, can the maintainers add the following patch to
> cvs?
>
> > diff lam-7.0b1cvs20030419/share/etc/kill.c kill.c
> 564a565,574
> >
> > /* Are we running under an SGE job? */
> > else if ((tmp = getenv("JOB_ID")) != NULL &&
> > (tmp2 = getenv("SGE_TASK_ID")) != NULL) {
> > if (strcmp(tmp2, "undefined") == 0) tmp2 = "0";
>
> > retstrlen = strlen(tmp) + strlen(tmp2) +
> strlen("sge--") + 2;
> > retstr = malloc(retstrlen);
> > snprintf(retstr, retstrlen, "sge-%s-%s",
> tmp,tmp2);
> > }
> >
>
> Thanks,
> -Ron
>
>
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>

-- 
  Brian Barrett
  LAM/MPI developer and all around nice guy
  Have a LAM/MPI day: http://www.lam-mpi.org/