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:
Vignesh Balasubramanian
2025-02-06 22:56:05 +05:30
parent 5a4739d288
commit 8abb37a0ad
17 changed files with 20 additions and 20 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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 );

View File

@@ -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 );

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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,

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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,

View File

@@ -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);

View File

@@ -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