MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / printMatrix

Function printMatrix

tests/unittests/fp8_gemm_test/worker.cpp:191–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189
190template<typename T>
191void 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
202template void printMatrix(float* devPtr, const int m, const int n);
203

Callers 2

cublasTesterFunction · 0.70
printMatrixWithLimitFunction · 0.50

Calls

no outgoing calls

Tested by 1

printMatrixWithLimitFunction · 0.40