If we are binding to hwthreads, then we need to treat hwthreads as cpus to get the mapping right
cmr=v1.7.5:reviewer=jsquyres:subject=set hwthreads to cpus when binding to them This commit was SVN r30648.
Этот коммит содержится в:
родитель
0dc5f50d27
Коммит
4e32a82638
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2011-2014 Cisco Systems, Inc. All rights reserved.
|
||||
* Copyright (c) 2013 Intel, Inc. All rights reserved.
|
||||
* Copyright (c) 2013-2014 Intel, Inc. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -243,6 +243,11 @@ static int opal_hwloc_base_open(mca_base_open_flag_t flags)
|
||||
}
|
||||
}
|
||||
|
||||
/* if we are binding to hwthreads, then we must use hwthreads as cpus */
|
||||
if (OPAL_GET_BINDING_POLICY(opal_hwloc_binding_policy) == OPAL_BIND_TO_HWTHREAD) {
|
||||
opal_hwloc_use_hwthreads_as_cpus = true;
|
||||
}
|
||||
|
||||
/* to support tools such as ompi_info, add the components
|
||||
* to a list
|
||||
*/
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user