From f95fbc977840439a98f10a83c465d4b7c9a095cc Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Mon, 15 Oct 2007 17:35:42 +0000
Subject: [PATCH] Explicitly disable select/linear and select/cons_res with
 bluegene

---
 src/plugins/select/cons_res/select_cons_res.c | 7 ++++---
 src/plugins/select/linear/select_linear.c     | 3 +++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/plugins/select/cons_res/select_cons_res.c b/src/plugins/select/cons_res/select_cons_res.c
index 0404b98343b..314b0f5b128 100644
--- a/src/plugins/select/cons_res/select_cons_res.c
+++ b/src/plugins/select/cons_res/select_cons_res.c
@@ -877,10 +877,11 @@ _enough_nodes(int avail_nodes, int rem_nodes,
 extern int init(void)
 {
 #ifdef HAVE_XCPU
-	error("%s presently incompatible with XCPU use", plugin_name);
-	return SLURM_ERROR;
+	fatal("%s is incompatible with XCPU use", plugin_name);
+#endif
+#ifdef HAVE_BG
+	fatal("%s is incompatable with Blue Gene", plugin_name);
 #endif
-
 	cr_type = (select_type_plugin_info_t)
 			slurmctld_conf.select_type_param;
 	info("%s loaded with argument %d ", plugin_name, cr_type);
diff --git a/src/plugins/select/linear/select_linear.c b/src/plugins/select/linear/select_linear.c
index 803cb9e73d7..c89c69abeb4 100644
--- a/src/plugins/select/linear/select_linear.c
+++ b/src/plugins/select/linear/select_linear.c
@@ -231,6 +231,9 @@ extern int init ( void )
 	int rc = SLURM_SUCCESS;
 #ifdef HAVE_XCPU
 	rc = _init_status_pthread();
+#endif
+#ifdef HAVE_BG
+	fatal("%s is incompatable with Blue Gene", plugin_name);
 #endif
 	return rc;
 }
-- 
GitLab