Skip to content

Commit 849816f

Browse files
committed
transport/ofi: zero max_buffered_send before fi_getinfo hint
Let the provider advertise its natural inject_size rather than requiring it to be at least sizeof(long double). The returned inject_size is adopted immediately after fi_getinfo.
1 parent 1d02b81 commit 849816f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/transport_ofi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,9 @@ int query_for_fabric(struct fabric_info *info)
14701470
struct fi_fabric_attr fabric_attr = {0};
14711471
struct fi_ep_attr ep_attr = {0};
14721472

1473-
shmem_transport_ofi_max_buffered_send = sizeof(long double);
1473+
/* Hint 0 = no minimum inject requirement; provider returns its natural
1474+
* inject_size, which is adopted below after fi_getinfo. */
1475+
shmem_transport_ofi_max_buffered_send = 0;
14741476

14751477
fabric_attr.prov_name = info->prov_name;
14761478

0 commit comments

Comments
 (0)