btl/openib: fix access flags
Per spec for ibv_reg_mr if remote write or remote atomic is requested also need to specify local write. Signed-off-by: Nathan Hjelm <hjelmn@me.com>
Этот коммит содержится в:
родитель
acf3cb9b9b
Коммит
4ddbdad772
@ -573,7 +573,7 @@ static int openib_reg_mr(void *reg_data, void *base, size_t size,
|
||||
}
|
||||
|
||||
if (reg->access_flags & MCA_MPOOL_ACCESS_REMOTE_WRITE) {
|
||||
access_flag |= IBV_ACCESS_REMOTE_WRITE;
|
||||
access_flag |= IBV_ACCESS_REMOTE_WRITE | IBV_ACCESS_LOCAL_WRITE;
|
||||
}
|
||||
|
||||
if (reg->access_flags & MCA_MPOOL_ACCESS_LOCAL_WRITE) {
|
||||
@ -582,7 +582,7 @@ static int openib_reg_mr(void *reg_data, void *base, size_t size,
|
||||
|
||||
#if HAVE_DECL_IBV_ATOMIC_HCA
|
||||
if (reg->access_flags & MCA_MPOOL_ACCESS_REMOTE_ATOMIC) {
|
||||
access_flag |= IBV_ACCESS_REMOTE_ATOMIC;
|
||||
access_flag |= IBV_ACCESS_REMOTE_ATOMIC | IBV_ACCESS_LOCAL_WRITE;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user