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 16, 2024
1 parent 089203d commit 074160b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/uct/ib/mlx5/ib_mlx5.inl
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,9 @@ static UCS_F_ALWAYS_INLINE void uct_ib_mlx5_bf_copy_bb(void * restrict dst,
UCS_WORD_COPY(__m128i, dst, __m128i, src, MLX5_SEND_WQE_BB);
#elif defined(__ARM_NEON)
vst4q_u64(dst, vld4q_u64(src));
#else /* NO SIMD support */
UCS_WORD_COPY(uint64_t, dst, uint64_t, src, MLX5_SEND_WQE_BB);
#else
/* Prevent the compiler to replace by memmove() */
*(uct_ib_mlx5_wqe_ctrl_seg_t *)dst = *(uct_ib_mlx5_wqe_ctrl_seg_t *)src;
#endif
}

Expand Down

0 comments on commit 074160b

Please sign in to comment.