| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | /* * This file is part of the StarPU Handbook. * Copyright (C) 2009--2011  Universit@'e de Bordeaux 1 * Copyright (C) 2010, 2011, 2012, 2013, 2014  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. *//*! \defgroup API_Implicit_Data_Dependencies Implicit Data Dependencies\brief In this section, we describe how StarPU makes it possible toinsert implicit task dependencies in order to enforce sequential dataconsistency. When this data consistency is enabled on a specific datahandle, any data access will appear as sequentially consistent fromthe application. For instance, if the application submits two tasksthat access the same piece of data in read-only mode, and then a thirdtask that access it in write mode, dependencies will be added betweenthe two first tasks and the third one. Implicit data dependencies arealso inserted in the case of data accesses from the application.\fn starpu_data_set_default_sequential_consistency_flag(unsigned flag)\ingroup API_Implicit_Data_DependenciesSet the default sequential consistency flag. If a non-zerovalue is passed, a sequential data consistency will be enforced forall handles registered after this function call, otherwise it isdisabled. By default, StarPU enables sequential data consistency. Itis also possible to select the data consistency mode of a specificdata handle with the functionstarpu_data_set_sequential_consistency_flag().\fn unsigned starpu_data_get_default_sequential_consistency_flag(void)\ingroup API_Implicit_Data_DependenciesReturn the default sequential consistency flag\fn void starpu_data_set_sequential_consistency_flag(starpu_data_handle_t handle, unsigned flag)\ingroup API_Implicit_Data_DependenciesSet the data consistency mode associated to a data handle. Theconsistency mode set using this function has the priority over thedefault mode which can be set withstarpu_data_set_default_sequential_consistency_flag().\fn unsigned starpu_data_get_sequential_consistency_flag(starpu_data_handle_t handle)\ingroup API_Implicit_Data_DependenciesGet the data consistency mode associated to the data handle \p handle*/
 |