1
1

Merge pull request #5235 from thananon/ofi_einr_fix

btl/ofi: handles FI_EINTR properly.
Этот коммит содержится в:
Arm 2018-06-06 11:30:48 -07:00 коммит произвёл GitHub
родитель fa1386768f f34a73af70
Коммит ce4d769aee
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

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

@ -560,7 +560,15 @@ static int mca_btl_ofi_component_progress (void)
MCA_BTL_OFI_ABORT();
} else if (OPAL_UNLIKELY(ret != -FI_EAGAIN && ret != -FI_EINTR)) {
}
#ifdef FI_EINTR
/* sometimes, sockets provider complain about interupt. */
else if (OPAL_UNLIKELY(ret == -FI_EINTR)) {
continue;
}
#endif
/* If the error is not FI_EAGAIN, report the error and abort. */
else if (OPAL_UNLIKELY(ret != -FI_EAGAIN)) {
BTL_ERROR(("fi_cq_read returned error %d:%s", ret, fi_strerror(-ret)));
MCA_BTL_OFI_ABORT();
}