From 2a012c4d1401ae2532dbd76cdfabe4b795ccf7c5 Mon Sep 17 00:00:00 2001 From: Nilesh M Negi Date: Mon, 2 Oct 2023 11:16:41 -0500 Subject: [PATCH] BUILD: re-order m4 flags for RCCL (#849) Signed-off-by: nileshnegi --- config/m4/rccl.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/m4/rccl.m4 b/config/m4/rccl.m4 index 8416fead85..08110a56eb 100644 --- a/config/m4/rccl.m4 +++ b/config/m4/rccl.m4 @@ -36,8 +36,8 @@ AS_IF([test "x$rccl_checked" != "xyes"],[ AS_IF([test "x$rocm_happy" = "xyes"], [ - CPPFLAGS="$HIP_CPPFLAGS $CPPFLAGS" - LDFLAGS="$ROCM_LDFLAGS $LDFLAGS" + CPPFLAGS="$CPPFLAGS $HIP_CPPFLAGS" + LDFLAGS="$LDFLAGS $ROCM_LDFLAGS" AC_CHECK_HEADER([rccl/rccl.h], [ AC_CHECK_LIB([rccl], [ncclCommInitRank],