ファイル
rocm-systems/hipamd/samples/0_Intro/module_api/vcpy_kernel.cpp
T

9 行
144 B
C++
Raw 通常表示 履歴

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