Samuel Thibault 7 rokov pred
rodič
commit
4aa5967d68
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      src/common/thread.c

+ 4 - 0
src/common/thread.c

@@ -271,7 +271,11 @@ void* starpu_pthread_getspecific(starpu_pthread_key_t key)
 {
 	void **array;
 #ifdef HAVE_SMPI_PROCESS_SET_USER_DATA
+#ifdef HAVE_MSG_PROCESS_SELF_NAME
+	const char *process_name = MSG_process_self_name();
+#else
 	const char *process_name = SIMIX_process_self_get_name();
+#endif
 	char *end;
 	/* Test whether it is an MPI rank */
 	strtol(process_name, &end, 10);