From 916cdbadaa1c99f73bdc4d947a63d39a71e7591e Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Wed, 16 Feb 2022 14:49:41 +0100
Subject: [PATCH] starpu: silent warnings

---
 runtime/starpu/interface/cham_tile_interface.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/runtime/starpu/interface/cham_tile_interface.c b/runtime/starpu/interface/cham_tile_interface.c
index a237d2cfe..d9f460b64 100644
--- a/runtime/starpu/interface/cham_tile_interface.c
+++ b/runtime/starpu/interface/cham_tile_interface.c
@@ -119,7 +119,7 @@ cti_register_data_handle( starpu_data_handle_t  handle,
                           void                 *data_interface )
 {
     starpu_cham_tile_interface_t *cham_tile_interface = (starpu_cham_tile_interface_t *) data_interface;
-    unsigned node;
+    int node;
 
     for (node = 0; node < STARPU_MAXNODES; node++)
     {
@@ -573,10 +573,10 @@ static int cti_copy_any_to_any( void *src_interface, unsigned src_node,
     starpu_cham_tile_interface_t *cham_tile_src = (starpu_cham_tile_interface_t *) src_interface;
     starpu_cham_tile_interface_t *cham_tile_dst = (starpu_cham_tile_interface_t *) dst_interface;
     size_t elemsize = CHAMELEON_Element_Size( cham_tile_src->flttype );
-    size_t m        = cham_tile_src->tile.m;
-    size_t n        = cham_tile_src->tile.n;
-    size_t ld_src   = cham_tile_src->tile.ld;
-    size_t ld_dst   = cham_tile_dst->tile.ld;
+    size_t m        = (size_t)(cham_tile_src->tile.m);
+    size_t n        = (size_t)(cham_tile_src->tile.n);
+    size_t ld_src   = (size_t)(cham_tile_src->tile.ld);
+    size_t ld_dst   = (size_t)(cham_tile_dst->tile.ld);
     int    ret      = 0;
 
     void *src_mat = CHAM_tile_get_ptr( &(cham_tile_src->tile) );
@@ -585,8 +585,8 @@ static int cti_copy_any_to_any( void *src_interface, unsigned src_node,
     assert( ld_src >= m );
     assert( ld_dst >= m );
 
-    assert( m == cham_tile_dst->tile.m );
-    assert( n == cham_tile_dst->tile.n );
+    assert( m == (size_t)(cham_tile_dst->tile.m) );
+    assert( n == (size_t)(cham_tile_dst->tile.n) );
 
 #if defined(CHAMELEON_KERNELS_TRACE)
     fprintf( stderr,
-- 
GitLab