Skip to content
Snippets Groups Projects
Commit 3e0b8b61 authored by Moe Jette's avatar Moe Jette
Browse files

Add LOADL_BATCH=yes env var for resource allocation. Used by POE to

recognize that the allocation has already been made. Only setting on
AIX systems.
parent 11a64ec3
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/utsname.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <ctype.h> #include <ctype.h>
#include <fcntl.h> #include <fcntl.h>
...@@ -560,6 +561,7 @@ _set_batch_script_env(job_t *job) ...@@ -560,6 +561,7 @@ _set_batch_script_env(job_t *job)
{ {
int rc = SLURM_SUCCESS; int rc = SLURM_SUCCESS;
char *dist = NULL, *task_cnt; char *dist = NULL, *task_cnt;
struct utsname name;
if (job->jobid > 0) { if (job->jobid > 0) {
if (setenvf("SLURM_JOBID=%u", job->jobid)) { if (setenvf("SLURM_JOBID=%u", job->jobid)) {
...@@ -629,6 +631,11 @@ _set_batch_script_env(job_t *job) ...@@ -629,6 +631,11 @@ _set_batch_script_env(job_t *job)
} }
xfree(task_cnt); xfree(task_cnt);
uname(&name);
if (strcasecmp(name.sysname, "AIX") == 0)
setenvf("LOADL_BATCH=yes"); /* Required for AIX/POE systems
* indicating pre-allocation */
return rc; return rc;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment