StarPU Internal Handbook

implicit_data_deps.h
Go to the documentation of this file.
1/* StarPU --- Runtime system for heterogeneous multicore architectures.
2 *
3 * Copyright (C) 2010-2021 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
4 *
5 * StarPU is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation; either version 2.1 of the License, or (at
8 * your option) any later version.
9 *
10 * StarPU is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 *
14 * See the GNU Lesser General Public License in COPYING.LGPL for more details.
15 */
16
17#ifndef __IMPLICIT_DATA_DEPS_H__
18#define __IMPLICIT_DATA_DEPS_H__
19
22#include <starpu.h>
23#include <common/config.h>
24
25 struct starpu_task *_starpu_detect_implicit_data_deps_with_handle(struct starpu_task *pre_sync_task, struct starpu_task *post_sync_task, struct _starpu_task_wrapper_dlist *post_sync_task_dependency_slot,
26 starpu_data_handle_t handle, enum starpu_data_access_mode mode, unsigned task_handle_sequential_consistency);
27 int _starpu_test_implicit_data_deps_with_handle(starpu_data_handle_t handle, enum starpu_data_access_mode mode);
28 void _starpu_detect_implicit_data_deps(struct starpu_task *task);
29 void _starpu_release_data_enforce_sequential_consistency(struct starpu_task *task, struct _starpu_task_wrapper_dlist *task_dependency_slot, starpu_data_handle_t handle);
30 void _starpu_release_task_enforce_sequential_consistency(struct _starpu_job *j);
31
32 void _starpu_add_post_sync_tasks(struct starpu_task *post_sync_task, starpu_data_handle_t handle);
33 void _starpu_unlock_post_sync_tasks(starpu_data_handle_t handle);
34
36 void _starpu_implicit_data_deps_write_hook(void (*func)(starpu_data_handle_t));
37
39 int _starpu_data_wait_until_available(starpu_data_handle_t handle, enum starpu_data_access_mode mode, const char *sync_name);
40
41 void _starpu_data_clear_implicit(starpu_data_handle_t handle);
42#endif // __IMPLICIT_DATA_DEPS_H__
43
_starpu_task_wrapper_dlist
Definition: coherency.h:105
_starpu_data_wait_until_available
int _starpu_data_wait_until_available(starpu_data_handle_t handle, enum starpu_data_access_mode mode, const char *sync_name)
_starpu_implicit_data_deps_write_hook
void _starpu_implicit_data_deps_write_hook(void(*func)(starpu_data_handle_t))
_starpu_job
Definition: jobs.h:79