File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,7 @@ static size_t shmemsize = 0;
6666static size_t shmemaddr ;
6767static char * shmemfile = NULL ;
6868static int shmemfd = -1 ;
69- #endif
7069
71- #if HWLOC_API_VERSION >= 0x20000
7270static int parse_map_line (const char * line ,
7371 unsigned long * beginp ,
7472 unsigned long * endp ,
@@ -112,8 +110,8 @@ static int init(void)
112110
113111 if (ORTE_SUCCESS != (rc = find_hole (mca_rtc_hwloc_component .kind ,
114112 & shmemaddr , shmemsize ))) {
115- ORTE_ERROR_LOG ( rc );
116- return rc ;
113+ /* we couldn't find a hole, so don't use the shmem support */
114+ return ORTE_SUCCESS ;
117115 }
118116 /* create the shmem file in our session dir so it
119117 * will automatically get cleaned up */
@@ -182,7 +180,8 @@ static void assign(orte_job_t *jdata)
182180 opal_list_t * cache ;
183181 opal_value_t * kv ;
184182
185- if (VM_HOLE_NONE == mca_rtc_hwloc_component .kind ) {
183+ if (VM_HOLE_NONE == mca_rtc_hwloc_component .kind ||
184+ NULL == shmemfile ) {
186185 return ;
187186 }
188187 /* add the shmem address and size to the job-level info that
You can’t perform that action at this time.
0 commit comments