From b46966e96ba9af837b3faabbc9b830509b485c4e Mon Sep 17 00:00:00 2001 From: Benjamin Welton Date: Mon, 7 Oct 2024 15:58:41 -0700 Subject: [PATCH] clang-18 build fix for RCCL (#1123) Removes ambiguity on const usage, which clang-18 complains about (preventing build with warn error). --- source/include/rocprofiler-sdk/rccl/details/rccl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/include/rocprofiler-sdk/rccl/details/rccl.h b/source/include/rocprofiler-sdk/rccl/details/rccl.h index 6866824e2c..304f60256c 100644 --- a/source/include/rocprofiler-sdk/rccl/details/rccl.h +++ b/source/include/rocprofiler-sdk/rccl/details/rccl.h @@ -35,7 +35,7 @@ extern "C" { /*! @brief Opaque handle to communicator @details A communicator contains information required to facilitate collective communications calls */ -typedef struct ncclComm* ncclComm_t; +typedef const struct ncclComm* ncclComm_t; #define NCCL_COMM_NULL NULL #define NCCL_UNIQUE_ID_BYTES 128