Files
rocm-systems/projects/hip-tests/samples/0_Intro/module_api/vcpy_kernel.cpp
T
Maneesh Gupta be8073e10f module_api sample: no longer need EXTERN_C workaround
Change-Id: Ida087d832df8e1f3620b38f920ec2853aad641c8


[ROCm/hip-tests commit: c63944fc08]
2016-09-04 13:49:43 +05:30

9 baris
160 B
C++

#include "hip/hip_runtime.h"
extern "C" __global__ void hello_world(hipLaunchParm lp, float *a, float *b)
{
int tx = hipThreadIdx_x;
b[tx] = a[tx];
}