Przeglądaj źródła

rename STARPU_SSYNC into STARPU_SSEND

Nathalie Furmento 10 lat temu
rodzic
commit
50f48abb8e

+ 1 - 1
ChangeLog

@@ -140,7 +140,7 @@ New features:
   * New MPI functions starpu_mpi_issend and starpu_mpi_issend_detached
     to send data using a synchronous and non-blocking mode (internally
     uses MPI_Issend)
-  * New data access mode flag STARPU_SSYNC to be set when calling
+  * New data access mode flag STARPU_SSEND to be set when calling
     starpu_mpi_insert_task to specify the data has to be sent using a
     synchronous and non-blocking mode
 

+ 1 - 1
doc/doxygen/chapters/api/data_management.doxy

@@ -60,7 +60,7 @@ or ::STARPU_RW to express that StarPU can let tasks commute, which is
 useful e.g. when bringing a contribution into some data, which can be
 done in any order (but still require sequential consistency against
 reads or non-commutative writes).
-\var starpu_data_access_mode::STARPU_SSYNC
+\var starpu_data_access_mode::STARPU_SSEND
 \ingroup API_Data_Management
 used in starpu_mpi_insert_task() to specify the data has to be sent
 using a synchronous and non-blocking mode (see starpu_mpi_issend())

+ 1 - 1
doc/doxygen/chapters/api/mpi.doxy

@@ -256,7 +256,7 @@ arguments. The argument list must be zero-terminated.
 
 The arguments following the codelet are the same types as for the
 function starpu_task_insert(). Access modes for data can also be set
-with ::STARPU_SSYNC to specify the data has to be sent using a
+with ::STARPU_SSEND to specify the data has to be sent using a
 synchronous and non-blocking mode (see starpu_mpi_issend()).
 The extra argument
 ::STARPU_EXECUTE_ON_NODE followed by an integer allows to specify the

+ 1 - 1
include/starpu_data.h

@@ -37,7 +37,7 @@ enum starpu_data_access_mode
 	STARPU_SCRATCH=(1<<2),
 	STARPU_REDUX=(1<<3),
 	STARPU_COMMUTE=(1<<4),
-	STARPU_SSYNC=(1<<5)
+	STARPU_SSEND=(1<<5)
 	/* Note: other STARPU_* values in include/starpu_task_util.h */
 };
 

+ 1 - 1
mpi/src/starpu_mpi_task_insert.c

@@ -32,7 +32,7 @@
 #include <starpu_mpi_select_node.h>
 
 #define _SEND_DATA(data, mode, dest, mpi_tag, comm, callback, arg)     \
-	if (mode & STARPU_SSYNC)					\
+	if (mode & STARPU_SSEND)					\
 		starpu_mpi_issend_detached(data, dest, mpi_tag, comm, callback, arg); \
 	else								\
 		starpu_mpi_isend_detached(data, dest, mpi_tag, comm, callback, arg);

+ 1 - 1
mpi/tests/insert_task_count.c

@@ -83,7 +83,7 @@ int main(int argc, char **argv)
 	{
 		if (loop % 2)
 			starpu_mpi_insert_task(MPI_COMM_WORLD, &increment_cl,
-					       STARPU_RW|STARPU_SSYNC, token_handle,
+					       STARPU_RW|STARPU_SSEND, token_handle,
 					       STARPU_EXECUTE_ON_NODE, 0,
 					       0);
 		else

+ 1 - 1
src/util/starpu_task_insert_utils.c

@@ -242,7 +242,7 @@ void _starpu_task_insert_create(struct starpu_codelet *cl, struct starpu_task **
 		{
 			/* We have an access mode : we expect to find a handle */
 			starpu_data_handle_t handle = va_arg(varg_list, starpu_data_handle_t);
-			enum starpu_data_access_mode mode = (enum starpu_data_access_mode) arg_type & ~STARPU_SSYNC;
+			enum starpu_data_access_mode mode = (enum starpu_data_access_mode) arg_type & ~STARPU_SSEND;
 
 			STARPU_ASSERT(cl != NULL);