Dateien
rocm-systems/samples/0_Intro/module_api/vcpy_kernel.cpp
T

9 Zeilen
144 B
C++

#include<hip_runtime.h>
__global__ void hello_world(hipLaunchParm lp, float *a, float *b)
{
int tx = hipThreadIdx_x;
b[tx] = a[tx];
}