Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/mca/rmaps/base/help-prte-rmaps-base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -399,3 +399,16 @@ A %s was given that defines a value multiple times:
Given: %s

Please provide only one value for this policy, or remove it.
#
[not-enough-cpus]
A request was made to map a specified number of processes to
each object of a given type, and to bind each process to a given
number of CPUs with that object. Unfortunately, at least one
such object lacks enough CPUs to meet that combination of
requirements:

#procs/obj: %d
Object type: %s
cpus/proc: %d

Please adjust the request and try again.
6 changes: 6 additions & 0 deletions src/mca/rmaps/base/rmaps_base_binding.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,12 @@ static int bind_multiple(prte_job_t *jdata, prte_proc_t *proc,
}
hwloc_bitmap_list_asprintf(&proc->cpuset, result);
hwloc_bitmap_free(result);
if (NULL == proc->cpuset || 0 == strlen(proc->cpuset)) {
pmix_show_help("help-prte-rmaps-base.txt", "not-enough-cpus", true,
options->pprn, hwloc_obj_type_string(options->maptype),
options->cpus_per_rank);
return PRTE_ERR_SILENT;
}
return PRTE_SUCCESS;
}

Expand Down