From f0b7d836f4dbe1abc7a498891963f2e77cb7d9b9 Mon Sep 17 00:00:00 2001
From: Morris Jette <jette@schedmd.com>
Date: Tue, 22 Apr 2014 16:25:49 -0700
Subject: [PATCH] Ignore network option on cray step allocation

Advise user to specify network option at job allocation time on
Cray systems rather than within a job step.
bug 741
---
 src/srun/libsrun/srun_job.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/srun/libsrun/srun_job.c b/src/srun/libsrun/srun_job.c
index d1e8ad5ff1b..ca33725d6b4 100644
--- a/src/srun/libsrun/srun_job.c
+++ b/src/srun/libsrun/srun_job.c
@@ -523,6 +523,13 @@ extern void create_srun_job(srun_job_t **p_job, bool *got_alloc,
 			      "within an existing job. Set specialized cores "
 			      "at job allocation time.");
 		}
+#ifdef HAVE_NATIVE_CRAY
+		if (opt.network) {
+			error("Ignoring --network value for a job step "
+			      "within an existing job. Set network options "
+			      "at job allocation time.");
+		}
+#endif
 		if (opt.alloc_nodelist == NULL)
 			opt.alloc_nodelist = xstrdup(resp->node_list);
 		if (opt.exclusive)
-- 
GitLab