From 3fa3ed10d74833dfc917047f3cfe41c261bd83df Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Fri, 21 Jun 2024 11:36:59 +0200
Subject: [PATCH] coreblas/debug: Add the mat pointer value to the kernel trace
 to improve debuging information

---
 coreblas/compute/global.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/coreblas/compute/global.c b/coreblas/compute/global.c
index 0c0ad0e76..54deb11cf 100644
--- a/coreblas/compute/global.c
+++ b/coreblas/compute/global.c
@@ -11,14 +11,14 @@
  *
  * @brief Chameleon global coreblas variables and functions
  *
- * @version 1.2.0
+ * @version 1.3.0
  * @author Jakub Kurzak
  * @author Piotr Luszczek
  * @author Florent Pruvost
  * @author Guillaume Sylvand
  * @author Mathieu Faverge
  * @author Alycia Lisito
- * @date 2022-02-22
+ * @date 2024-07-17
  *
  */
 #include "coreblas.h"
@@ -58,6 +58,8 @@ void __coreblas_kernel_trace( const char *func, ... )
         size += snprintf( output+size, len-size, "%s%s",
                           first ? "" : ", ",
                           tile->name );
+        size += snprintf( output+size, len-size, " / %p",
+                          CHAM_tile_get_ptr( tile ) );
         first = 0;
     }
     va_end( va_list );
-- 
GitLab