| 189 | |
| 190 | template<typename T> |
| 191 | void printMatrix(T* devPtr, const int m, const int n) |
| 192 | { |
| 193 | for (int i = 0; i < m; i++) { |
| 194 | for (int j = 0; j < n; j++) { |
| 195 | printf("%f ", (float)(devPtr[i * n + j])); |
| 196 | } |
| 197 | printf("\n"); |
| 198 | } |
| 199 | printf("\n\n"); |
| 200 | } |
| 201 | |
| 202 | template void printMatrix(float* devPtr, const int m, const int n); |
| 203 |
no outgoing calls