Files
rocm-systems/projects/hip-tests/catch/kernels/Set.cpp
T

6 lines
134 B
C++
Raw Normal View History

#include <kernels.hh>
__global__ void Set(int* Ad, int val) {
int tx = threadIdx.x + blockIdx.x * blockDim.x;
Ad[tx] = val;
}