From 0dc31b1a4acb2582117563d983e38a97bc4e32fc Mon Sep 17 00:00:00 2001 From: Mythreya Kuricheti Date: Tue, 20 Jan 2026 13:21:38 -0800 Subject: [PATCH] use message instead of warning for nccl.h C++ check (#2128) Co-authored-by: Corey Derochie <161367113+corey-derochie-amd@users.noreply.github.com> --- src/nccl.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nccl.h.in b/src/nccl.h.in index af1a0a9d43..fb8bcdd6c4 100644 --- a/src/nccl.h.in +++ b/src/nccl.h.in @@ -1016,7 +1016,7 @@ ncclResult_t pncclGroupSimulateEnd(ncclSimInfo_t* simInfo); * define outside extern "C"{} to pass C++ template */ ncclResult_t ncclCommDump(ncclComm_t comm, std::unordered_map& map); #else -#warning "NCCL C++ API is disabled because C compiler is being used. Please use a C++ compiler to build NCCL." +#pragma message "NCCL C++ API is disabled because C compiler is being used. Please use a C++ compiler to build NCCL." #endif #endif // end include guard