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

6 wiersze
134 B
C++
Czysty Zwykły widok Historia

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