Files
rocm-systems/samples/0_Intro/module_api/vcpy_kernel.cu
T
pensun e08f4513c1 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 строки
109 B
Plaintext

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