From 2cb7be997b75b99c393d12d0cf16878078d9d1e8 Mon Sep 17 00:00:00 2001 From: Udit Kumar Agarwal Date: Tue, 7 Jan 2025 08:39:14 -0800 Subject: [PATCH 1/3] [ESIMD] Fixed printf's format specifier in dgetrf_8x8.cpp --- sycl/test-e2e/ESIMD/regression/dgetrf_8x8.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/test-e2e/ESIMD/regression/dgetrf_8x8.cpp b/sycl/test-e2e/ESIMD/regression/dgetrf_8x8.cpp index 5a8cfa00d5ee8..5e601c390ecc5 100644 --- a/sycl/test-e2e/ESIMD/regression/dgetrf_8x8.cpp +++ b/sycl/test-e2e/ESIMD/regression/dgetrf_8x8.cpp @@ -218,7 +218,7 @@ static int dgetrfnp_batch_strided_check(int64_t m, int64_t n, double *a_in, double res = 0.0, nrm = 0.0, ulp = *(double *)prec_b; double *w = (double *)malloc(sizeof(double) * MAX(m * n, 1)); - sprintf(label, "m=%ld, n=%ld, lda=%ld, batch=%ld", m, n, lda, batch); + sprintf(label, "m=%lld, n=%lld, lda=%lld, batch=%lld", m, n, lda, batch); for (k = 0; k < batch; k++) { /* info == 0 */ From f4c93bbf4b57edcda32b94f477c0fbd834a48a95 Mon Sep 17 00:00:00 2001 From: Udit Kumar Agarwal Date: Tue, 7 Jan 2025 10:26:30 -0800 Subject: [PATCH 2/3] Use PRId64 instead as it's more portable than %lld --- sycl/test-e2e/ESIMD/regression/dgetrf_8x8.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sycl/test-e2e/ESIMD/regression/dgetrf_8x8.cpp b/sycl/test-e2e/ESIMD/regression/dgetrf_8x8.cpp index 5e601c390ecc5..78b2ca525fb47 100644 --- a/sycl/test-e2e/ESIMD/regression/dgetrf_8x8.cpp +++ b/sycl/test-e2e/ESIMD/regression/dgetrf_8x8.cpp @@ -218,7 +218,9 @@ static int dgetrfnp_batch_strided_check(int64_t m, int64_t n, double *a_in, double res = 0.0, nrm = 0.0, ulp = *(double *)prec_b; double *w = (double *)malloc(sizeof(double) * MAX(m * n, 1)); - sprintf(label, "m=%lld, n=%lld, lda=%lld, batch=%lld", m, n, lda, batch); + sprintf(label, + "m=%" PRId64 ", n=%" PRId64", lda=%" PRId64 ", batch=%" PRId64, m, n, + lda, batch); for (k = 0; k < batch; k++) { /* info == 0 */ From 76be7a32d202fe944e60a50c32eb57047bf47b0d Mon Sep 17 00:00:00 2001 From: Udit Kumar Agarwal Date: Tue, 7 Jan 2025 11:00:52 -0800 Subject: [PATCH 3/3] Add missing header. Clang-format --- sycl/test-e2e/ESIMD/regression/dgetrf_8x8.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sycl/test-e2e/ESIMD/regression/dgetrf_8x8.cpp b/sycl/test-e2e/ESIMD/regression/dgetrf_8x8.cpp index 78b2ca525fb47..0610e2c80510a 100644 --- a/sycl/test-e2e/ESIMD/regression/dgetrf_8x8.cpp +++ b/sycl/test-e2e/ESIMD/regression/dgetrf_8x8.cpp @@ -11,6 +11,7 @@ // // Reduced version of dgetrf.cpp - M = 8, N = 8, single batch. // +#include #include #include #include @@ -219,7 +220,7 @@ static int dgetrfnp_batch_strided_check(int64_t m, int64_t n, double *a_in, double *w = (double *)malloc(sizeof(double) * MAX(m * n, 1)); sprintf(label, - "m=%" PRId64 ", n=%" PRId64", lda=%" PRId64 ", batch=%" PRId64, m, n, + "m=%" PRId64 ", n=%" PRId64 ", lda=%" PRId64 ", batch=%" PRId64, m, n, lda, batch); for (k = 0; k < batch; k++) {