Skip to content

Commit

Permalink
UCT/IB/MLX5: Prevent compiler to use memmove
Browse files Browse the repository at this point in the history
  • Loading branch information
tvegas1 committed Feb 19, 2024
1 parent 99826fb commit 321c6a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uct/ib/mlx5/ib_mlx5.inl
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ static UCS_F_ALWAYS_INLINE void uct_ib_mlx5_bf_copy_bb(void * restrict dst,
/* Prevent the compiler to replace by memmove() */
UCS_WORD_COPY(uct_ib_mlx5_send_wqe_bb_t, dst,
uct_ib_mlx5_send_wqe_bb_t, src,
sizeof(uct_ib_mlx5_send_wqe_bb_t));
MLX5_SEND_WQE_BB);
#endif
}

Expand Down

0 comments on commit 321c6a0

Please sign in to comment.