Add a debug function to print the matrix tile by tile into a file
All threads resolved!
All threads resolved!
Merge request reports
Activity
assigned to @faverge
added 2 commits
added 1 commit
- 96ef64ce - compute: Add a print function for a descriptor
- Resolved by Mathieu Faverge
Hi,
Thanks for the feature ! I gave it a try this morning, and it's working fine.
I however suggest the very minor following changes so that the header has its own line and also for a prettier aligned print of floating point values (I'm a maniac, I know...).
diff --git a/coreblas/compute/core_zprint.c b/coreblas/compute/core_zprint.c index 49a3eaec..0e4fdc88 100644 --- a/coreblas/compute/core_zprint.c +++ b/coreblas/compute/core_zprint.c @@ -27,16 +27,16 @@ CORE_zprint( FILE *file, const char *header, int i, j; fflush( output ); - fprintf( output, "--- %10s (%2d, %2d) / %p, %d:", header, Am, An, A, lda ); + fprintf( output, "--- %10s (%2d, %2d) / %p, %d:\n", header, Am, An, A, lda ); for(i=0; i<M; i++) { fprintf( output, " " ); for(j=0; j<N; j++) { #if defined(PRECISION_z) || defined(PRECISION_c) - fprintf( output, " (%e, %e)", + fprintf( output, " (% e, % e)", creal( A[j*lda + i] ), cimag( A[j*lda + i] )); #else - fprintf( output, " %e", A[j*lda + i] ); + fprintf( output, " % e", A[j*lda + i] ); #endif } fprintf( output, "\n" );
added 6 commits
-
96ef64ce...efa10536 - 4 commits from branch
solverstack:master
- 1b50f2e9 - coreblas: Add print function
- 2d9ffc91 - compute: Add a print function for a descriptor
-
96ef64ce...efa10536 - 4 commits from branch
enabled an automatic merge when the pipeline for 2d9ffc91 succeeds
mentioned in commit ac473886
Please register or sign in to reply