btl/openib: fix a problem with ib query
Under certain circumstances, ibv_exp_query_device was returning an error due to uninitialized fields in the extended attributes struct. Fixes: #5810 Fixes: #5914 Signed-off-by: Howard Pritchard <howardp@lanl.gov>
Этот коммит содержится в:
родитель
2da31706bf
Коммит
8126779a35
@ -1694,6 +1694,7 @@ static int init_one_device(opal_list_t *btl_list, struct ibv_device* ib_dev)
|
||||
goto error;
|
||||
}
|
||||
#if HAVE_DECL_IBV_EXP_QUERY_DEVICE
|
||||
memset(&device->ib_exp_dev_attr, 0, sizeof(device->ib_exp_dev_attr));
|
||||
device->ib_exp_dev_attr.comp_mask = IBV_EXP_DEVICE_ATTR_RESERVED - 1;
|
||||
if(ibv_exp_query_device(device->ib_dev_context, &device->ib_exp_dev_attr)){
|
||||
BTL_ERROR(("error obtaining device attributes for %s errno says %s",
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user