mirror of
https://github.com/amd/blis.git
synced 2026-04-20 15:48:50 +00:00
Update to AOCL-BLAS bench application for logging outputs
- Updated the format specifiers to have a leading space, in order to delimit the outputs appropriately in the output file. - Further updated every source file to have a leading space in its format string occuring after the macros. AMD-Internal: [CPUPL-5895] Change-Id: If856f55363bb811de0be6fdd1d7bbc8ec5c76c15
This commit is contained in:
@@ -235,7 +235,7 @@ int main( int argc, char** argv )
|
||||
(unsigned long)n,
|
||||
gflops, max_index);
|
||||
|
||||
fprintf (fout, "%s %c " INT_FS INT_FS INT_FS "%6.3f\n", tmp, dt_ch, n, incx, max_index, gflops);
|
||||
fprintf (fout, "%s %c" INT_FS INT_FS INT_FS " %6.3f\n", tmp, dt_ch, n, incx, max_index, gflops);
|
||||
|
||||
fflush(fout);
|
||||
|
||||
|
||||
@@ -213,7 +213,7 @@ int main( int argc, char** argv )
|
||||
(unsigned long)n,
|
||||
gflops);
|
||||
|
||||
fprintf (fout, "%s %c " INT_FS INT_FS "%6.3f\n", tmp, dt_ch, n, incx, gflops);
|
||||
fprintf (fout, "%s %c" INT_FS INT_FS " %6.3f\n", tmp, dt_ch, n, incx, gflops);
|
||||
|
||||
fflush(fout);
|
||||
|
||||
|
||||
@@ -254,7 +254,7 @@ int main( int argc, char** argv )
|
||||
(unsigned long)n,
|
||||
gflops );
|
||||
|
||||
fprintf( fout, "%s %c " INT_FS " %lf %lf " INT_FS " %lf %lf " INT_FS "%6.3f\n",
|
||||
fprintf( fout, "%s %c" INT_FS " %lf %lf" INT_FS " %lf %lf" INT_FS " %6.3f\n",
|
||||
tmp, dt_ch, n, alpha_r, alpha_i, incx, beta_r, beta_i, incy, gflops );
|
||||
fflush( fout );
|
||||
|
||||
|
||||
@@ -247,7 +247,7 @@ int main( int argc, char** argv )
|
||||
(unsigned long)n,
|
||||
gflops );
|
||||
|
||||
fprintf( fout, "%s %c " INT_FS " %lf %lf " INT_FS INT_FS "%6.3f\n",
|
||||
fprintf( fout, "%s %c" INT_FS " %lf %lf" INT_FS INT_FS " %6.3f\n",
|
||||
tmp, dt_ch, n, alpha_r, alpha_i, incx, incy, gflops );
|
||||
fflush( fout );
|
||||
|
||||
|
||||
@@ -252,7 +252,7 @@ int main( int argc, char** argv )
|
||||
(unsigned long)n,
|
||||
gflops);
|
||||
|
||||
fprintf (fout, "%s %c " INT_FS INT_FS INT_FS "%6.3f\n",
|
||||
fprintf (fout, "%s %c" INT_FS INT_FS INT_FS " %6.3f\n",
|
||||
tmp, dt_ch, n, incx, incy, gflops);
|
||||
|
||||
fflush(fout);
|
||||
|
||||
@@ -336,7 +336,7 @@ int main( int argc, char** argv )
|
||||
(unsigned long)n,
|
||||
gflops);
|
||||
|
||||
fprintf (fout, "%s %c %c " INT_FS INT_FS INT_FS "%6.3f\n",
|
||||
fprintf (fout, "%s %c %c" INT_FS INT_FS INT_FS " %6.3f\n",
|
||||
tmp, dt_ch, conjx_ch, n, incx, incy, gflops);
|
||||
|
||||
fflush(fout);
|
||||
|
||||
@@ -483,7 +483,7 @@ int main( int argc, char** argv )
|
||||
(unsigned long)n,
|
||||
(unsigned long)k, gflops);
|
||||
|
||||
fprintf (fout, "%s %c %c %c" INT_FS INT_FS INT_FS "%lf %lf" INT_FS INT_FS "%lf %lf" INT_FS "%6.3f\n", \
|
||||
fprintf (fout, "%s %c %c %c" INT_FS INT_FS INT_FS " %lf %lf" INT_FS INT_FS " %lf %lf" INT_FS " %6.3f\n", \
|
||||
api_name, dt_ch, transA_c, transB_c, m, n, k, alpha_r, alpha_i, lda, ldb, beta_r, beta_i, ldc, gflops);
|
||||
|
||||
fflush(fout);
|
||||
|
||||
@@ -975,7 +975,7 @@ int main( int argc, char** argv )
|
||||
(unsigned long)n,
|
||||
(unsigned long)k, gflops);
|
||||
|
||||
fprintf (fout, "%c %c %c %c %c " INT_FS INT_FS INT_FS " %lf %lf " INT_FS INT_FS " %lf %lf " INT_FS "%6.3f\n", \
|
||||
fprintf (fout, "%c %c %c %c %c" INT_FS INT_FS INT_FS " %lf %lf" INT_FS INT_FS " %lf %lf" INT_FS " %6.3f\n", \
|
||||
dt_ch, transA_c, transB_c, packA_c, packB_c, m, n, k, alpha_r, alpha_i, lda, ldb, beta_r, beta_i, ldc, gflops);
|
||||
|
||||
fflush(fout);
|
||||
|
||||
@@ -465,7 +465,7 @@ int main( int argc, char** argv )
|
||||
( unsigned long )n,
|
||||
( unsigned long )k, gflops );
|
||||
|
||||
fprintf(fout, "%s %c %c" INT_FS INT_FS UINT_FS UINT_FS UINT_FS "%c %c %lf %lf %lf %lf %6.3f\n", \
|
||||
fprintf(fout, "%s %c %c" INT_FS INT_FS UINT_FS UINT_FS UINT_FS " %c %c %lf %lf %lf %lf %6.3f\n", \
|
||||
tmp, dt_ch, uplo_c, n, k, lda, ldb, ldc,
|
||||
transA_c,
|
||||
transB_c,
|
||||
|
||||
@@ -397,7 +397,7 @@ int main( int argc, char** argv )
|
||||
(unsigned long)n,
|
||||
gflops);
|
||||
|
||||
fprintf (fout, "%s %c %c " INT_FS INT_FS " %lf %lf " INT_FS INT_FS " %lf %lf " INT_FS " %6.3f\n",
|
||||
fprintf (fout, "%s %c %c" INT_FS INT_FS " %lf %lf" INT_FS INT_FS " %lf %lf " INT_FS " %6.3f\n",
|
||||
tmp, dt_ch, transA, m, n, alpha_r, alpha_i, lda,\
|
||||
incx, beta_r, beta_i, incy, gflops);
|
||||
|
||||
|
||||
@@ -322,7 +322,7 @@ int main( int argc, char** argv )
|
||||
(unsigned long)n,
|
||||
gflops);
|
||||
|
||||
fprintf (fout, "%s %c " INT_FS INT_FS " %lf %lf " INT_FS INT_FS INT_FS " %6.3f\n",
|
||||
fprintf (fout, "%s %c" INT_FS INT_FS " %lf %lf" INT_FS INT_FS INT_FS " %6.3f\n",
|
||||
tmp, dt_ch, m, n, alpha_r, alpha_i, incx, incy, lda, gflops);
|
||||
|
||||
fflush(fout);
|
||||
|
||||
@@ -226,7 +226,7 @@ int main( int argc, char** argv )
|
||||
(unsigned long)n,
|
||||
gflops);
|
||||
|
||||
fprintf (fout, "%s %c" INT_FS INT_FS "%6.3f\n",
|
||||
fprintf (fout, "%s %c" INT_FS INT_FS " %6.3f\n",
|
||||
tmp, dt_ch, n, incx, gflops);
|
||||
|
||||
fflush(fout);
|
||||
|
||||
@@ -290,7 +290,7 @@ int main( int argc, char** argv )
|
||||
(unsigned long)n,
|
||||
gflops);
|
||||
|
||||
fprintf (fout, "%s %s %lf %lf " INT_FS INT_FS "%6.3f\n",
|
||||
fprintf (fout, "%s %s %lf %lf" INT_FS INT_FS " %6.3f\n",
|
||||
tmp, dt_ch, alpha_r, alpha_i, n, incx, gflops);
|
||||
|
||||
fflush(fout);
|
||||
|
||||
@@ -236,7 +236,7 @@ int main( int argc, char** argv )
|
||||
(unsigned long)n,
|
||||
gflops);
|
||||
|
||||
fprintf (fout, "%s %c " INT_FS INT_FS INT_FS "%6.3f\n", tmp, dt_ch, n, incx, incy, gflops);
|
||||
fprintf (fout, "%s %c" INT_FS INT_FS INT_FS " %6.3f\n", tmp, dt_ch, n, incx, incy, gflops);
|
||||
|
||||
fflush(fout);
|
||||
|
||||
|
||||
@@ -413,7 +413,7 @@ int main( int argc, char** argv )
|
||||
( unsigned long )n,
|
||||
( unsigned long )k, gflops );
|
||||
|
||||
fprintf(fout, "%s %c %c %c " INT_FS INT_FS " %lf %lf " UINT_FS " %lf %lf " UINT_FS " %6.3f\n", \
|
||||
fprintf(fout, "%s %c %c %c" INT_FS INT_FS " %lf %lf" UINT_FS " %lf %lf" UINT_FS " %6.3f\n", \
|
||||
tmp, dt_ch, uplo_c, transA_c, n, k,
|
||||
alpha_r, alpha_i,
|
||||
lda, beta_r, beta_i,
|
||||
|
||||
@@ -384,7 +384,7 @@ int main( int argc, char** argv )
|
||||
( unsigned long )p_inc,
|
||||
( unsigned long )m, gflops );
|
||||
|
||||
fprintf (fout, "%s %c %c %c %c " INT_FS INT_FS INT_FS "%6.3f\n",
|
||||
fprintf (fout, "%s %c %c %c %c" INT_FS INT_FS INT_FS " %6.3f\n",
|
||||
tmp, dt_ch, uploa_c, transA, diaga_c, m, lda, incx, gflops);
|
||||
|
||||
fflush(fout);
|
||||
|
||||
@@ -36,9 +36,9 @@
|
||||
// NOTE : When blis-int-size is not explicitly specified, the underlying
|
||||
// hardware is detected at compile time and the width is set.
|
||||
#if BLIS_INT_TYPE_SIZE == 32
|
||||
#define INT_FS "%d"
|
||||
#define UINT_FS "%u"
|
||||
#define INT_FS " %d"
|
||||
#define UINT_FS " %u"
|
||||
#else
|
||||
#define INT_FS "%ld"
|
||||
#define UINT_FS "%lu"
|
||||
#define INT_FS " %ld"
|
||||
#define UINT_FS " %lu"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user