LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Ron Chen (ron_chen_123_at_[hidden])
Date: 2003-04-21 19:50:55


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