Browse Source

doc: improve documentation api

Nathalie Furmento 10 years ago
parent
commit
0a565753b3
2 changed files with 23 additions and 5 deletions
  1. 2 2
      doc/doxygen/chapters/api/data_management.doxy
  2. 21 3
      doc/doxygen/chapters/api/mpi.doxy

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

@@ -1,7 +1,7 @@
 /*
  * This file is part of the StarPU Handbook.
  * Copyright (C) 2009--2011  Universit@'e de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2014  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015  Centre National de la Recherche Scientifique
  * Copyright (C) 2011, 2012 Institut National de Recherche en Informatique et Automatique
  * See the file version.doxy for copying conditions.
  */
@@ -195,7 +195,7 @@ block until the transfer is achieved, else the call will return immediately,
 after having just queued the request. In the latter case, the request will
 asynchronously wait for the completion of any task writing on the data.
 
-\fn void star_data_wont_use(starpu_data_handle handle)
+\fn void starpu_data_wont_use(starpu_data_handle_t handle)
 \ingroup API_Data_Management
 Advise StarPU that this handle will not be used in the close future, and is
 thus a good candidate for eviction from GPUs. StarPU will thus write its value

+ 21 - 3
doc/doxygen/chapters/api/mpi.doxy

@@ -130,7 +130,7 @@ Performs a synchronous-mode, non-blocking send of \p data_handle to the node
 \p dest using the message tag \p mpi_tag within the communicator \p
 comm.
 
-int starpu_mpi_issend_detached(starpu_data_handle_t data_handle, starpu_mpi_req *req, int dest, int mpi_tag, MPI_Comm comm, void (*callback)(void *), void *arg)
+\fn int starpu_mpi_issend_detached(starpu_data_handle_t data_handle, starpu_mpi_req *req, int dest, int mpi_tag, MPI_Comm comm, void (*callback)(void *), void *arg)
 \ingroup API_MPI_Support
 Performs a synchronous-mode, non-blocking send of \p data_handle to the node
 \p dest using the message tag \p mpi_tag within the communicator \p
@@ -226,7 +226,7 @@ function does nothing if the cache mechanism is disabled (see
 Register to MPI a StarPU data handle with the given tag, rank and MPI communicator.
 It also automatically clears the MPI communication cache when unregistering the data.
 
-\fn int starpu_mpi_data_register(starpu_data_handle_t handle, int tag, int rank)
+\def starpu_mpi_data_register(data_handle, tag, rank)
 \ingroup API_MPI_Support
 Register to MPI a StarPU data handle with the given tag, rank and the MPI communicator MPI_COMM_WORLD.
 It also automatically clears the MPI communication cache when unregistering the data.
@@ -240,23 +240,41 @@ It also automatically clears the MPI communication cache when unregistering the
 \ingroup API_MPI_Support
 Symbol kept for backward compatibility. Calling function starpu_mpi_data_set_tag
 
-\int starpu_mpi_data_set_rank(starpu_data_handle_t handle, int rank)
+\fn void starpu_mpi_data_set_rank_comm(starpu_data_handle_t handle, int rank, MPI_Comm comm)
+\ingroup API_MPI_Support
+Register to MPI a StarPU data handle with the given rank and given communicator. No tag will be defined.
+It also automatically clears the MPI communication cache when unregistering the data.
+
+\def starpu_mpi_data_set_rank
 \ingroup API_MPI_Support
 Register to MPI a StarPU data handle with the given rank and the MPI communicator MPI_COMM_WORLD. No tag will be defined.
 It also automatically clears the MPI communication cache when unregistering the data.
+Symbol kept for backward compatibility. Calling function starpu_mpi_data_set_rank
 
 \def starpu_data_set_rank
 \ingroup API_MPI_Support
+Register to MPI a StarPU data handle with the given rank and the MPI communicator MPI_COMM_WORLD. No tag will be defined.
+It also automatically clears the MPI communication cache when unregistering the data.
 Symbol kept for backward compatibility. Calling function starpu_mpi_data_set_rank
 
 \fn int starpu_mpi_data_get_rank(starpu_data_handle_t handle)
 \ingroup API_MPI_Support
 Return the rank of the given data.
 
+\def starpu_data_get_rank(handle)
+\ingroup API_MPI_Support
+Return the rank of the given data.
+Symbol kept for backward compatibility. Calling function starpu_mpi_data_get_rank
+
 \fn int starpu_mpi_data_get_tag(starpu_data_handle_t handle)
 \ingroup API_MPI_Support
 Return the tag of the given data.
 
+\def starpu_data_get_tag(handle)
+\ingroup API_MPI_Support
+Return the tag of the given data.
+Symbol kept for backward compatibility. Calling function starpu_mpi_data_get_tag
+
 \def STARPU_EXECUTE_ON_NODE
 \ingroup API_MPI_Support
 this macro is used when calling starpu_mpi_task_insert(), and must be