| 7 | |
| 8 | template <typename T> |
| 9 | __global__ void sqrtKernel(T* d_out, T* d_in, size_l size) { |
| 10 | size_l idx = threadIdx.x + blockIdx.x * blockDim.x; |
| 11 | if (idx < size) { |
| 12 | d_out[idx] = sqrt(d_in[idx]); |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | // take deviceDnTen as input |
| 17 | template <typename T> |
nothing calls this directly
no outgoing calls
no test coverage detected