From 1f3619a03dcb6487f6005ccb70925d3ac3cd2de7 Mon Sep 17 00:00:00 2001 From: Joseph Schuchart Date: Mon, 27 Nov 2023 17:30:07 +0000 Subject: [PATCH] Fun with signed integers in parsec matrix wrapper Signed-off-by: Joseph Schuchart --- examples/potrf/pmw.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/potrf/pmw.h b/examples/potrf/pmw.h index 000e5693b..0f8d75d7d 100644 --- a/examples/potrf/pmw.h +++ b/examples/potrf/pmw.h @@ -54,7 +54,8 @@ class PaRSECMatrixWrapper { parsec_data_get_copy(pm->super.super.data_of(&pm->super.super, row, col), 0))); auto mb = (row < pm->super.mt - 1) ? pm->super.mb : pm->super.m - row * pm->super.mb; auto nb = (col < pm->super.nt - 1) ? pm->super.nb : pm->super.n - col * pm->super.nb; - return MatrixTile{mb, nb, ptr, pm->super.mb}; + std::size_t lda = pm->super.mb; + return MatrixTile{mb, nb, ptr, lda}; } /** Number of tiled rows **/