Skip to content

Commit 9a2902c

Browse files
committed
Force use of pmix/preg/native component
Signed-off-by: Ralph Castain <[email protected]>
1 parent 2ebc1fa commit 9a2902c

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

opal/mca/pmix/pmix4x/pmix/src/mca/preg/compress/preg_compress.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,10 @@ static pmix_status_t generate_node_regex(const char *input,
7676
uint8_t *tmp;
7777

7878
if (!pmix_compress.compress_string((char*)input, &tmp, &len)) {
79-
PMIX_ERROR_LOG(PMIX_ERR_TAKE_NEXT_OPTION);
8079
return PMIX_ERR_TAKE_NEXT_OPTION;
8180
}
8281

8382
if (NULL == tmp) {
84-
PMIX_ERROR_LOG(PMIX_ERR_NOMEM);
8583
return PMIX_ERR_NOMEM;
8684
}
8785

@@ -112,12 +110,10 @@ static pmix_status_t generate_ppn(const char *input,
112110
uint8_t *tmp;
113111

114112
if (!pmix_compress.compress_string((char*)input, &tmp, &len)) {
115-
PMIX_ERROR_LOG(PMIX_ERR_TAKE_NEXT_OPTION);
116113
return PMIX_ERR_TAKE_NEXT_OPTION;
117114
}
118115

119116
if (NULL == tmp) {
120-
PMIX_ERROR_LOG(PMIX_ERR_NOMEM);
121117
return PMIX_ERR_NOMEM;
122118
}
123119

opal/mca/pmix/pmix4x/pmix/src/mca/preg/native/preg_native.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,6 @@ static pmix_status_t parse_nodes(const char *regexp,
457457
/* the regex generator used to create this regex
458458
* is tagged at the beginning of the string */
459459
if (NULL == (ptr = strchr(tmp, '['))) {
460-
PMIX_ERROR_LOG(PMIX_ERR_BAD_PARAM);
461460
free(tmp);
462461
return PMIX_ERR_BAD_PARAM;
463462
}
@@ -499,7 +498,6 @@ static pmix_status_t parse_procs(const char *regexp,
499498
/* the regex generator used to create this regex
500499
* is tagged at the beginning of the string */
501500
if (NULL == (ptr = strchr(tmp, '['))) {
502-
PMIX_ERROR_LOG(PMIX_ERR_BAD_PARAM);
503501
free(tmp);
504502
return PMIX_ERR_BAD_PARAM;
505503
}

opal/mca/pmix/pmix4x/pmix4x_component.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014-2018 Intel, Inc. All rights reserved.
2+
* Copyright (c) 2014-2019 Intel, Inc. All rights reserved.
33
* Copyright (c) 2014-2018 Research Organization for Information Science
44
* and Technology (RIST). All rights reserved.
55
* Copyright (c) 2016-2018 Cisco Systems, Inc. All rights reserved
@@ -20,6 +20,7 @@
2020

2121
#include "opal/constants.h"
2222
#include "opal/class/opal_list.h"
23+
#include "opal/util/opal_environ.h"
2324
#include "opal/util/proc.h"
2425
#include "opal/util/show_help.h"
2526
#include "opal/mca/pmix/pmix.h"
@@ -126,6 +127,8 @@ static int external_open(void)
126127
"incorrect-pmix", true, version, "v4.x");
127128
return OPAL_ERROR;
128129
}
130+
/* we are going to be used, so set an envar */
131+
opal_setenv("PMIX_MCA_preg", "native", true, &environ);
129132
return OPAL_SUCCESS;
130133
}
131134

0 commit comments

Comments
 (0)