From 2208bf6cbcc8eacd9fcde90a3817acbd395df053 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/hip commit: a06b21c5008b8c11e8a2527475726369ad8aee06] --- projects/hip/include/hip/hcc_detail/hip_runtime.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/projects/hip/include/hip/hcc_detail/hip_runtime.h b/projects/hip/include/hip/hcc_detail/hip_runtime.h index 58f741188d..6da14653ef 100644 --- a/projects/hip/include/hip/hcc_detail/hip_runtime.h +++ b/projects/hip/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) }