1
1

Merge pull request #1486 from hppritcha/topic/fix_wlm_detect_code

plm/alps: fix usage of cray wlm_detect methods
Этот коммит содержится в:
Howard Pritchard 2016-03-26 13:22:50 -06:00
родитель d6e90f24b1 69200e6229
Коммит e7433fcb44

Просмотреть файл

@ -139,8 +139,25 @@ static int orte_plm_alps_component_query(mca_base_module_t **module, int *priori
{
#if CRAY_WLM_DETECT
char slurm[]="SLURM";
char *wlm_detected = NULL;
if(!strcmp(slurm,wlm_detect_get_active())) {
wlm_detected = wlm_detect_get_active();
/*
* The content of wlm_detected.h indicates wlm_detect_get_active
* may return NULL upon failure. Resort to the suggested plan
* B in that event.
*/
if (NULL == wlm_detected) {
wlm_detected = (char *)wlm_detect_get_default();
OPAL_OUTPUT_VERBOSE((10, orte_plm_base_framework.framework_output,
"%s plm:alps: wlm_detect_get_active returned NULL, using %s",
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), wlm_detected));
}
if((NULL != wlm_detected) && !strcmp(slurm, wlm_detected)) {
mca_plm_alps_using_aprun = false;
}
#endif