From b3779207c3d395c2decdad1824a80c32d39400bd Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Sun, 4 Sep 2016 13:49:43 +0530 Subject: [PATCH] module_api sample: no longer need EXTERN_C workaround Change-Id: Ida087d832df8e1f3620b38f920ec2853aad641c8 [ROCm/clr commit: 257774f8f05657d2f1298a19c89bcb0bfc80a6ae] --- .../hipamd/samples/0_Intro/module_api/vcpy_kernel.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/projects/clr/hipamd/samples/0_Intro/module_api/vcpy_kernel.cpp b/projects/clr/hipamd/samples/0_Intro/module_api/vcpy_kernel.cpp index ebb6d066a9..0e051f76fc 100644 --- a/projects/clr/hipamd/samples/0_Intro/module_api/vcpy_kernel.cpp +++ b/projects/clr/hipamd/samples/0_Intro/module_api/vcpy_kernel.cpp @@ -1,12 +1,6 @@ -#include +#include "hip/hip_runtime.h" -#ifdef __HIP_PLATFORM_NVCC__ -#define EXTERN_C extern "C" -#else -#define EXTERN_C -#endif - -EXTERN_C __global__ void hello_world(hipLaunchParm lp, float *a, float *b) +extern "C" __global__ void hello_world(hipLaunchParm lp, float *a, float *b) { int tx = hipThreadIdx_x; b[tx] = a[tx];