| 82 | |
| 83 | template<class T> |
| 84 | __global__ |
| 85 | void increment_kernel(T* const d_input, const size_t size) |
| 86 | { |
| 87 | const unsigned int id = hipBlockDim_x * hipBlockIdx_x + hipThreadIdx_x; |
| 88 | if(id < size) |
| 89 | { |
| 90 | d_input[id] += static_cast<T>(1); |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | } // namespace |
| 95 |
nothing calls this directly
no outgoing calls
no test coverage detected