diff --git a/projects/hip-tests/samples/0_Intro/module_api/vcpy_kernel.cpp b/projects/hip-tests/samples/0_Intro/module_api/vcpy_kernel.cpp index ebb6d066a9..0e051f76fc 100644 --- a/projects/hip-tests/samples/0_Intro/module_api/vcpy_kernel.cpp +++ b/projects/hip-tests/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];