implicit_dependencies.doxy 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * This file is part of the StarPU Handbook.
  3. * Copyright (C) 2009--2011 Universit@'e de Bordeaux 1
  4. * Copyright (C) 2010, 2011, 2012, 2013 Centre National de la Recherche Scientifique
  5. * Copyright (C) 2011, 2012 Institut National de Recherche en Informatique et Automatique
  6. * See the file version.doxy for copying conditions.
  7. */
  8. /*! \defgroup API_Implicit_Data_Dependencies Implicit Data Dependencies
  9. \brief In this section, we describe how StarPU makes it possible to
  10. insert implicit task dependencies in order to enforce sequential data
  11. consistency. When this data consistency is enabled on a specific data
  12. handle, any data access will appear as sequentially consistent from
  13. the application. For instance, if the application submits two tasks
  14. that access the same piece of data in read-only mode, and then a third
  15. task that access it in write mode, dependencies will be added between
  16. the two first tasks and the third one. Implicit data dependencies are
  17. also inserted in the case of data accesses from the application.
  18. \fn starpu_data_set_default_sequential_consistency_flag(unsigned flag)
  19. \ingroup API_Implicit_Data_Dependencies
  20. Set the default sequential consistency flag. If a non-zero
  21. value is passed, a sequential data consistency will be enforced for
  22. all handles registered after this function call, otherwise it is
  23. disabled. By default, StarPU enables sequential data consistency. It
  24. is also possible to select the data consistency mode of a specific
  25. data handle with the function
  26. starpu_data_set_sequential_consistency_flag().
  27. \fn unsigned starpu_data_get_default_sequential_consistency_flag(void)
  28. \ingroup API_Implicit_Data_Dependencies
  29. Return the default sequential consistency flag
  30. \fn void starpu_data_set_sequential_consistency_flag(starpu_data_handle_t handle, unsigned flag)
  31. \ingroup API_Implicit_Data_Dependencies
  32. Set the data consistency mode associated to a data handle. The
  33. consistency mode set using this function has the priority over the
  34. default mode which can be set with
  35. starpu_data_set_default_sequential_consistency_flag().
  36. */