| 8 | // scalr multi matrix kernal |
| 9 | template <typename T> |
| 10 | __global__ void ScaMatkernel(T *A, T scalar, size_l n) { |
| 11 | size_l idx = blockIdx.x * blockDim.x + threadIdx.x; |
| 12 | if (idx < n) { |
| 13 | A[idx] *= scalar; |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | // function for dense tensor |
| 18 | template <typename T> |
nothing calls this directly
no outgoing calls
no test coverage detected