Files
rocm-systems/hipamd/samples/0_Intro/module_api/vcpy_kernel.cu
T
pensun 793dc2bce0 For module_api sample, use vcpy_kernel.cu to generate ptx file for NV path.
Change-Id: Id0033678834288c4eaa56b12e7d447119be99deb
2016-09-03 21:06:58 -05:00

7 lines
109 B
Plaintext

extern "C" __global__ void hello_world(float *a, float *b)
{
int tx = threadIdx.x;
b[tx] = a[tx];
}