Comhaid
rocm-systems/catch/kernels/Set.cpp
T

6 línte
134 B
C++
Amh Amharc Gnáth Stair

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