Files
rocm-systems/projects/hip-tests/samples/0_Intro/module_api/vcpy_kernel.cpp
T

9 γραμμές
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];
}