Browse Source

simgrid: Benefit from sg_actor_self_data*

Samuel Thibault 6 years ago
parent
commit
4b085d8a24
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/common/thread.c
  2. 1 1
      src/core/simgrid.c

+ 2 - 2
src/common/thread.c

@@ -310,7 +310,7 @@ int starpu_pthread_setspecific(starpu_pthread_key_t key, const void *pointer)
 {
 	void **array;
 #ifdef HAVE_SG_ACTOR_DATA
-	array = sg_actor_data(sg_actor_self());
+	array = sg_actor_self_data();
 #else
 #if defined(HAVE_SMPI_PROCESS_SET_USER_DATA) || defined(smpi_process_get_user_data)
 #if defined(HAVE_MSG_PROCESS_SELF_NAME) || defined(MSG_process_self_name)
@@ -337,7 +337,7 @@ void* starpu_pthread_getspecific(starpu_pthread_key_t key)
 {
 	void **array;
 #ifdef HAVE_SG_ACTOR_DATA
-	array = sg_actor_data(sg_actor_self());
+	array = sg_actor_self_data();
 #else
 #if defined(HAVE_SMPI_PROCESS_SET_USER_DATA) || defined(smpi_process_get_user_data)
 #if defined(HAVE_MSG_PROCESS_SELF_NAME) || defined(MSG_process_self_name)

+ 1 - 1
src/core/simgrid.c

@@ -443,7 +443,7 @@ void _starpu_simgrid_init_early(int *argc STARPU_ATTRIBUTE_UNUSED, char ***argv
 		void **tsd;
 		_STARPU_CALLOC(tsd, MAX_TSD+1, sizeof(void*));
 #ifdef HAVE_SG_ACTOR_DATA
-		sg_actor_data_set(sg_actor_self(), tsd);
+		sg_actor_self_data_set(tsd);
 #else
 		smpi_process_set_user_data(tsd);
 #endif