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

6 lignes
134 B
C++
Brut Vue normale Historique

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