From ef2b5f174abe8149b6e1f1617f245f61cb43bfee Mon Sep 17 00:00:00 2001 From: Ioannis Assiouras Date: Mon, 27 Nov 2023 13:27:41 +0000 Subject: [PATCH] SWDEV-433745 - Changed hipExtModuleLaunchKernel declaration to extern C Change-Id: I793471dfe3a0a580faa7a9b2672839db191fbe4f --- include/hip/hip_ext.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/hip/hip_ext.h b/include/hip/hip_ext.h index 2af464ba18..5d5d9b6fa2 100644 --- a/include/hip/hip_ext.h +++ b/include/hip/hip_ext.h @@ -66,26 +66,26 @@ THE SOFTWARE. * */ HIP_PUBLIC_API -hipError_t hipExtModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX, + extern "C" hipError_t hipExtModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX, uint32_t globalWorkSizeY, uint32_t globalWorkSizeZ, uint32_t localWorkSizeX, uint32_t localWorkSizeY, uint32_t localWorkSizeZ, size_t sharedMemBytes, hipStream_t hStream, void** kernelParams, void** extra, - hipEvent_t startEvent = nullptr, - hipEvent_t stopEvent = nullptr, - uint32_t flags = 0); + hipEvent_t startEvent __dparm(NULL), + hipEvent_t stopEvent __dparm(NULL), + uint32_t flags __dparm(0)); /** * @brief This HIP API is deprecated, please use hipExtModuleLaunchKernel() instead. * */ HIP_PUBLIC_API -hipError_t hipHccModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX, +extern "C" hipError_t hipHccModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX, uint32_t globalWorkSizeY, uint32_t globalWorkSizeZ, uint32_t localWorkSizeX, uint32_t localWorkSizeY, uint32_t localWorkSizeZ, size_t sharedMemBytes, hipStream_t hStream, void** kernelParams, void** extra, - hipEvent_t startEvent = nullptr, - hipEvent_t stopEvent = nullptr) + hipEvent_t startEvent __dparm(NULL), + hipEvent_t stopEvent __dparm(NULL)) __attribute__((deprecated("use hipExtModuleLaunchKernel instead"))); #if defined(__cplusplus)