Skip to content

Commit bc172bf

Browse files
UCT/GDAKI: Fix PR comment
1 parent 4f078f1 commit bc172bf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/uct/ib/mlx5/gdaki/gdaki.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,12 @@ static struct mlx5dv_devx_umem *
203203
uct_rc_gdaki_umem_reg(const uct_ib_md_t *md, struct ibv_context *ibv_context,
204204
void *address, size_t length, uint64_t pgsz_bitmap)
205205
{
206+
uct_cuda_copy_md_dmabuf_t dmabuf = {
207+
.fd = UCT_DMABUF_FD_INVALID,
208+
.offset = 0
209+
};
206210
struct mlx5dv_devx_umem_in umem_in = {};
207211
struct mlx5dv_devx_umem *umem;
208-
uct_cuda_copy_md_dmabuf_t dmabuf UCS_V_UNUSED;
209212

210213
umem_in.addr = address;
211214
umem_in.size = length;
@@ -220,9 +223,7 @@ uct_rc_gdaki_umem_reg(const uct_ib_md_t *md, struct ibv_context *ibv_context,
220223
#endif
221224

222225
umem = mlx5dv_devx_umem_reg_ex(ibv_context, &umem_in);
223-
#if HAVE_DECL_MLX5DV_UMEM_MASK_DMABUF
224226
ucs_close_fd(&dmabuf.fd);
225-
#endif
226227
return umem;
227228
}
228229

0 commit comments

Comments
 (0)