From c6fea4a0a67a271ccb4040e91a6dfa6b40110d0c Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Mon, 23 Aug 2004 22:34:51 +0000
Subject: [PATCH] Change select plugin name from "bgl" to "bluegene"

---
 doc/man/man5/slurm.conf.5 | 2 +-
 src/common/read_config.h  | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/doc/man/man5/slurm.conf.5 b/doc/man/man5/slurm.conf.5
index 3c78afd8669..5b5fc4ca638 100644
--- a/doc/man/man5/slurm.conf.5
+++ b/doc/man/man5/slurm.conf.5
@@ -219,7 +219,7 @@ Acceptable values include
 "select/linear" for a one-dimentional array of nodes in which 
 sequentially ordered nodes are preferable, and
 "select/bluegene" for a three-dimentional Blue Gene system. 
-The default value is "select/bgl" for Blue Gene systems 
+The default value is "select/bluegene" for Blue Gene systems 
 and "select/linear" for all other systems.
 .TP
 \fBSlurmUser\fR
diff --git a/src/common/read_config.h b/src/common/read_config.h
index 3eda63edbf9..2e7df1275ec 100644
--- a/src/common/read_config.h
+++ b/src/common/read_config.h
@@ -45,7 +45,11 @@
 #define DEFAULT_RETURN_TO_SERVICE   0
 #define DEFAULT_SAVE_STATE_LOC      "/tmp"
 #define DEFAULT_SCHEDTYPE           "sched/builtin"
-#define DEFAULT_SELECT_TYPE           "select/linear"
+#ifdef HAVE_BGL
+#define DEFAULT_SELECT_TYPE         "select/bluegene"
+#else
+#define DEFAULT_SELECT_TYPE         "select/linear"
+#endif
 #define DEFAULT_SLURMCTLD_PIDFILE   "/var/run/slurmctld.pid"
 #define DEFAULT_SLURMCTLD_TIMEOUT   120
 #define DEFAULT_SLURMD_PIDFILE      "/var/run/slurmd.pid"
-- 
GitLab