Browse Source

Explicit that one initializes the data interface before registering data

Samuel Thibault 5 years ago
parent
commit
37ff44b9de
1 changed files with 4 additions and 0 deletions
  1. 4 0
      doc/doxygen/chapters/410_mpi_support.doxy

+ 4 - 0
doc/doxygen/chapters/410_mpi_support.doxy

@@ -413,6 +413,10 @@ static struct starpu_data_interface_ops interface_complex_ops =
 interface_complex_ops.interfaceid = starpu_data_interface_get_next_id();
 
 starpu_mpi_interface_datatype_register(interface_complex_ops.interfaceid, starpu_complex_interface_datatype_allocate, starpu_complex_interface_datatype_free);
+
+starpu_data_interface handle;
+starpu_complex_data_register(&handle, STARPU_MAIN_RAM, real, imaginary, 2);
+...
 \endcode