Files
rocm-systems/catch/kernels/Set.cpp
T
Fábio f04fdbd0f7 EXSWCPHIPT-42 - Add HIP RTC support to the test framework (#2719)
* EXSWCPHIPT-42 - Add HIP RTC support to the test framework
* Removed ifdef from hipTestContext class
2022-06-13 15:35:02 +05:30

6 строки
134 B
C++

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