MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / fillupMatrixDebug

Function fillupMatrixDebug

cpp/4_CUDA_Libraries/batchCUBLAS/batchCUBLAS.cpp:385–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385template <typename T_ELEM> void fillupMatrixDebug(T_ELEM *A, int lda, int rows, int cols)
386{
387 for (int j = 0; j < cols; j++) {
388 for (int i = 0; i < rows; i++) {
389 A[i + lda * j] = cuGet<T_ELEM>(i + j);
390 }
391 }
392}
393
394template <typename T_ELEM>
395int test_gemm_loop(struct gemmOpts &opts, float err, double max_relative_error, cublasHandle_t handle)

Callers 1

test_gemm_loopFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_gemm_loopFunction · 0.68