Merge pull request #7781 from hkuno/john.l.byrne/mca_btl_ofi_rcache_init
mtl_btl_ofi_rcache_init() before creating domain
Этот коммит содержится в:
Коммит
46d834d674
@ -417,6 +417,12 @@ static int mca_btl_ofi_init_device(struct fi_info *info)
|
|||||||
ep_attr = ofi_info->ep_attr;
|
ep_attr = ofi_info->ep_attr;
|
||||||
domain_attr = ofi_info->domain_attr;
|
domain_attr = ofi_info->domain_attr;
|
||||||
|
|
||||||
|
/* mtl_btl_ofi_rcache_init() initializes patcher which should only
|
||||||
|
* take place things are single threaded. OFI providers may start
|
||||||
|
* spawn threads, so initialize the rcache before creating OFI objects
|
||||||
|
* to prevent races. */
|
||||||
|
mca_btl_ofi_rcache_init(module);
|
||||||
|
|
||||||
linux_device_name = info->domain_attr->name;
|
linux_device_name = info->domain_attr->name;
|
||||||
BTL_VERBOSE(("initializing dev:%s provider:%s",
|
BTL_VERBOSE(("initializing dev:%s provider:%s",
|
||||||
linux_device_name,
|
linux_device_name,
|
||||||
@ -547,9 +553,6 @@ static int mca_btl_ofi_init_device(struct fi_info *info)
|
|||||||
module->use_virt_addr = true;
|
module->use_virt_addr = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* initialize the rcache */
|
|
||||||
mca_btl_ofi_rcache_init(module);
|
|
||||||
|
|
||||||
/* create endpoint list */
|
/* create endpoint list */
|
||||||
OBJ_CONSTRUCT(&module->endpoints, opal_list_t);
|
OBJ_CONSTRUCT(&module->endpoints, opal_list_t);
|
||||||
OBJ_CONSTRUCT(&module->module_lock, opal_mutex_t);
|
OBJ_CONSTRUCT(&module->module_lock, opal_mutex_t);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user