be8073e10f
Change-Id: Ida087d832df8e1f3620b38f920ec2853aad641c8
[ROCm/hip-tests commit: c63944fc08]
9 строки
160 B
C++
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];
|
|
}
|
|
|