-
-
Save sithhell/2554451f0ef2686abc4523041b68a4a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/util/batch_environments/slurm_environment.cpp b/src/util/batch_environments/slurm_environment.cpp | |
index 7f2ac52..d88a36a 100644 | |
--- a/src/util/batch_environments/slurm_environment.cpp | |
+++ b/src/util/batch_environments/slurm_environment.cpp | |
@@ -274,11 +274,15 @@ namespace hpx { namespace util { namespace batch_environments | |
void slurm_environment::retrieve_nodelist(std::vector<std::string> & nodes, | |
bool debug) | |
{ | |
- char* slurm_nodelist_env = std::getenv("SLURM_NODELIST"); | |
+ char* slurm_nodelist_env = std::getenv("SLURM_STEP_NODELIST"); | |
+ if (!slurm_nodelist_env) | |
+ { | |
+ slurm_nodelist_env = std::getenv("SLURM_NODELIST"); | |
+ } | |
if (slurm_nodelist_env) | |
{ | |
if (debug) { | |
- std::cerr << "SLURM nodelist found (SLURM_NODELIST): " | |
+ std::cerr << "SLURM nodelist found: " | |
<< slurm_nodelist_env << std::endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment