From 385fa2d1eb406fbc8a88b7f1b787b8b7a04d5fc5 Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Mon, 27 Mar 2023 23:02:01 +0200
Subject: [PATCH] runtime: remove RUNTIME_set_tag_sizes function

---
 control/descriptor.c                        |  1 -
 include/chameleon/runtime.h                 | 16 ----------------
 runtime/openmp/control/runtime_descriptor.c |  7 -------
 runtime/parsec/control/runtime_descriptor.c |  7 -------
 runtime/quark/control/runtime_descriptor.c  |  7 -------
 runtime/starpu/control/runtime_descriptor.c | 14 --------------
 6 files changed, 52 deletions(-)

diff --git a/control/descriptor.c b/control/descriptor.c
index 2cbd9fd18..7aed89815 100644
--- a/control/descriptor.c
+++ b/control/descriptor.c
@@ -963,7 +963,6 @@ int CHAMELEON_Desc_Flush( const CHAM_desc_t        *desc,
  *
  */
 void CHAMELEON_user_tag_size(int user_tag_width, int user_tag_sep) {
-    RUNTIME_comm_set_tag_sizes( user_tag_width, user_tag_sep );
     return;
 }
 
diff --git a/include/chameleon/runtime.h b/include/chameleon/runtime.h
index 8d4570f3c..82818ba75 100644
--- a/include/chameleon/runtime.h
+++ b/include/chameleon/runtime.h
@@ -214,22 +214,6 @@ RUNTIME_comm_rank( CHAM_context_t *ctxt );
 int
 RUNTIME_comm_size( CHAM_context_t *ctxt );
 
-/**
- * @brief Set the data tags bounds based on runtime tags limit.
- *
- * @param[in] user_tag_width
- *            Total number of bits used to defined the data tags (31 by default).
- *            Must be larger than 20.
- *
- * @param[in] user_tag_sep
- *            The number of bits dedicated to identify the pieces of data per
- *            descriptor.  (user_tag_width - user_tag_sep) defines the number of
- *            bits used to enumerate the descriptors.
- */
-void
-RUNTIME_comm_set_tag_sizes( int user_tag_width,
-                            int user_tag_sep );
-
 /**
  * @}
  *
diff --git a/runtime/openmp/control/runtime_descriptor.c b/runtime/openmp/control/runtime_descriptor.c
index 4cfff1164..ecec4def2 100644
--- a/runtime/openmp/control/runtime_descriptor.c
+++ b/runtime/openmp/control/runtime_descriptor.c
@@ -21,13 +21,6 @@
  */
 #include "chameleon_openmp.h"
 
-void RUNTIME_comm_set_tag_sizes( int user_tag_width,
-                                 int user_tag_sep )
-{
-    (void)user_tag_width;
-    (void)user_tag_sep;
-}
-
 void *RUNTIME_malloc( size_t size )
 {
     return malloc( size );
diff --git a/runtime/parsec/control/runtime_descriptor.c b/runtime/parsec/control/runtime_descriptor.c
index 0faed4a68..84fecb360 100644
--- a/runtime/parsec/control/runtime_descriptor.c
+++ b/runtime/parsec/control/runtime_descriptor.c
@@ -41,13 +41,6 @@ static chameleon_parsec_arena_t chameleon_parsec_registered_arenas[CHAMELEON_PAR
 
 #endif
 
-void RUNTIME_comm_set_tag_sizes( int user_tag_width,
-                                 int user_tag_sep )
-{
-    (void)user_tag_width;
-    (void)user_tag_sep;
-}
-
 void *RUNTIME_malloc( size_t size )
 {
     return malloc(size);
diff --git a/runtime/quark/control/runtime_descriptor.c b/runtime/quark/control/runtime_descriptor.c
index fc3f28020..1e9be06fa 100644
--- a/runtime/quark/control/runtime_descriptor.c
+++ b/runtime/quark/control/runtime_descriptor.c
@@ -22,13 +22,6 @@
  */
 #include "chameleon_quark.h"
 
-void RUNTIME_comm_set_tag_sizes( int user_tag_width,
-                                 int user_tag_sep )
-{
-    (void)user_tag_width;
-    (void)user_tag_sep;
-}
-
 void *RUNTIME_malloc( size_t size )
 {
     return malloc( size );
diff --git a/runtime/starpu/control/runtime_descriptor.c b/runtime/starpu/control/runtime_descriptor.c
index 46f3832a4..3438d0cb2 100644
--- a/runtime/starpu/control/runtime_descriptor.c
+++ b/runtime/starpu/control/runtime_descriptor.c
@@ -40,20 +40,6 @@
 
 #endif
 
-void RUNTIME_comm_set_tag_sizes( int user_tag_width,
-                                 int user_tag_sep )
-{
-#if defined(CHAMELEON_USE_MPI)
-    int rc;
-    rc = chameleon_starpu_tag_init( user_tag_width, user_tag_sep );
-    if ( rc != CHAMELEON_SUCCESS ) {
-        chameleon_error("RUNTIME_user_tag_size",
-                    "must be called before creating any Cham descriptor with CHAMELEON_Desc_create(). The tag sizes will not be modified.");
-    }
-#endif
-    (void)user_tag_width; (void)user_tag_sep;
-}
-
 /**
  *  Malloc/Free of the data
  */
-- 
GitLab