From 048ffb1693859da3cf51c334b5bf44da3ec3cb18 Mon Sep 17 00:00:00 2001 From: Laurent Morichetti Date: Wed, 21 Mar 2018 11:07:21 -0700 Subject: [PATCH] Add HIP_KERNEL_NAME/HIP_SYMBOL definitions for HIP-clang, and rename hipLaunch->hipLaunchByPtr. [ROCm/clr commit: 84a723b2dc93bf8e2380f63b38fa6bcfcd62913d] --- projects/clr/hipamd/include/hip/hcc_detail/hip_runtime.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/projects/clr/hipamd/include/hip/hcc_detail/hip_runtime.h b/projects/clr/hipamd/include/hip/hcc_detail/hip_runtime.h index 58f741188d..6da14653ef 100644 --- a/projects/clr/hipamd/include/hip/hcc_detail/hip_runtime.h +++ b/projects/clr/hipamd/include/hip/hcc_detail/hip_runtime.h @@ -527,9 +527,8 @@ do {\ #elif defined(__clang__) && defined(__HIP__) -#define hipConfigureCall cudaConfigureCall -#define hipSetupArgument cudaSetupArgument -#define hipLaunch cudaLaunch +#define HIP_KERNEL_NAME(...) __VA_ARGS__ +#define HIP_SYMBOL(X) #X typedef int hipLaunchParm ; @@ -551,7 +550,7 @@ extern "C" { hipError_t hipConfigureCall(dim3 gridDim, dim3 blockDim, size_t sharedMem, hipStream_t stream); hipError_t hipSetupArgument(const void *arg, size_t size, size_t offset); -hipError_t hipLaunch(const void *func); +hipError_t hipLaunchByPtr(const void *func); #if defined(__cplusplus) }