Files
rocm-systems/projects/hip-tests/catch/kernels/Set.cpp
T
Fábio 4dc1940119 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

[ROCm/hip-tests commit: f04fdbd0f7]
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;
}