We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a7afc1 commit 6380bcaCopy full SHA for 6380bca
src/uct/ib/mlx5/gdaki/gdaki.cuh
@@ -97,7 +97,9 @@ UCS_F_DEVICE uint64_t uct_rc_mlx5_gda_max_alloc_wqe_base(
97
{
98
/* TODO optimize by including sq_wqe_num in qp->sq_wqe_pi and updating it
99
when processing a new completion */
100
- return ep->sq_wqe_pi + ep->sq_wqe_num - count;
+ uint64_t pi = doca_gpu_dev_verbs_atomic_read<uint64_t,
101
+ DOCA_GPUNETIO_VERBS_RESOURCE_SHARING_MODE_GPU>(&ep->sq_wqe_pi);
102
+ return pi + ep->sq_wqe_num - count;
103
}
104
105
UCS_F_DEVICE uint64_t uct_rc_mlx5_gda_reserv_wqe_thread(
0 commit comments