1
1

Merge pull request #7781 from hkuno/john.l.byrne/mca_btl_ofi_rcache_init

mtl_btl_ofi_rcache_init() before creating domain
Этот коммит содержится в:
Howard Pritchard 2020-06-08 13:01:45 -06:00 коммит произвёл GitHub
родитель ffa50d837a f1b21cb776
Коммит 46d834d674
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

Просмотреть файл

@ -417,6 +417,12 @@ static int mca_btl_ofi_init_device(struct fi_info *info)
ep_attr = ofi_info->ep_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;
BTL_VERBOSE(("initializing dev:%s provider:%s",
linux_device_name,
@ -547,9 +553,6 @@ static int mca_btl_ofi_init_device(struct fi_info *info)
module->use_virt_addr = true;
}
/* initialize the rcache */
mca_btl_ofi_rcache_init(module);
/* create endpoint list */
OBJ_CONSTRUCT(&module->endpoints, opal_list_t);
OBJ_CONSTRUCT(&module->module_lock, opal_mutex_t);