Files
rocm-systems/tests/src/vcpy_isa.cu
T
Aditya Atluri 7ae453f349 added sample for module api which works on both cuda and rocm
Change-Id: Id88abb3698a224177fd0531e3e16013dde6dd95e
2016-08-29 15:00:26 -05:00

7 lines
103 B
Plaintext

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