- Addendum to r24421: get mca_maffinity_libnuma to compile on linux
(with libnuma-2.0.4 / LIBNUMA_API_VERSION 2): numa_get_run_node_mask returns a struct bitmask *. Whether it's a good idea to blindly pass that on to numa_set_membind() is another matter: one might want to match against the list returned by numa_get_mems_allowed(), which may be set by the outside environment. Refs trac:2698. This commit was SVN r24442. The following SVN revision numbers were found above: r24421 --> open-mpi/ompi@31510e683b The following Trac tickets were found above: Ticket 2698 --> https://svn.open-mpi.org/trac/ompi/ticket/2698
Этот коммит содержится в:
родитель
c1b26005d7
Коммит
90a8fe4aad
@ -69,7 +69,7 @@ int opal_maffinity_libnuma_component_query(mca_base_module_t **module, int *prio
|
||||
|
||||
static int libnuma_module_init(void)
|
||||
{
|
||||
nodemask_t mask;
|
||||
struct bitmask * mask;
|
||||
|
||||
/* If we have a strict policy set, then bind all memory to this
|
||||
numa node. Note that maffinity won't be invoked unless the
|
||||
@ -78,7 +78,7 @@ static int libnuma_module_init(void)
|
||||
numa_get_run_node_mask(). */
|
||||
if (MPOL_BIND == mca_maffinity_libnuma_component.libnuma_policy) {
|
||||
mask = numa_get_run_node_mask();
|
||||
numa_set_membind(&mask);
|
||||
numa_set_membind(mask);
|
||||
}
|
||||
|
||||
/* We want libnuma to fail to alloc if it can't allocate on the
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user