Files
rocm-systems/projects/hip-tests/samples/0_Intro/module_api/vcpy_kernel.cpp
T
Maneesh Gupta 2589f37ff6 module_api: workaround to use vcpy_kernel.cpp for NV path
Change-Id: Ib4868bf02c64070e846c19427c39289609909466


[ROCm/hip-tests commit: 6618c010b5]
2016-09-04 12:35:08 +05:30

15 rivejä
241 B
C++

#include<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)
{
int tx = hipThreadIdx_x;
b[tx] = a[tx];
}