|
@@ -404,7 +404,7 @@ int _starpu_determine_request_path(starpu_data_handle_t handle,
|
|
|
/* handle->lock should be taken. r is returned locked. The node parameter
|
|
|
* indicate either the source of the request, or the destination for a
|
|
|
* write-only request. */
|
|
|
-static struct _starpu_data_request *_starpu_search_existing_data_request(struct _starpu_data_replicate *replicate, unsigned node, enum starpu_data_access_mode mode, unsigned is_prefetch)
|
|
|
+static struct _starpu_data_request *_starpu_search_existing_data_request(struct _starpu_data_replicate *replicate, unsigned node, enum starpu_data_access_mode mode, enum _starpu_is_prefetch is_prefetch)
|
|
|
{
|
|
|
struct _starpu_data_request *r;
|
|
|
|
|
@@ -467,7 +467,7 @@ static struct _starpu_data_request *_starpu_search_existing_data_request(struct
|
|
|
|
|
|
struct _starpu_data_request *_starpu_create_request_to_fetch_data(starpu_data_handle_t handle,
|
|
|
struct _starpu_data_replicate *dst_replicate,
|
|
|
- enum starpu_data_access_mode mode, unsigned is_prefetch,
|
|
|
+ enum starpu_data_access_mode mode, enum _starpu_is_prefetch is_prefetch,
|
|
|
unsigned async,
|
|
|
void (*callback_func)(void *), void *callback_arg, int prio, const char *origin)
|
|
|
{
|
|
@@ -712,7 +712,7 @@ struct _starpu_data_request *_starpu_create_request_to_fetch_data(starpu_data_ha
|
|
|
}
|
|
|
|
|
|
int _starpu_fetch_data_on_node(starpu_data_handle_t handle, int node, struct _starpu_data_replicate *dst_replicate,
|
|
|
- enum starpu_data_access_mode mode, unsigned detached, unsigned is_prefetch, unsigned async,
|
|
|
+ enum starpu_data_access_mode mode, unsigned detached, enum _starpu_is_prefetch is_prefetch, unsigned async,
|
|
|
void (*callback_func)(void *), void *callback_arg, int prio, const char *origin)
|
|
|
{
|
|
|
_STARPU_LOG_IN();
|
|
@@ -782,17 +782,17 @@ int _starpu_fetch_data_on_node(starpu_data_handle_t handle, int node, struct _st
|
|
|
|
|
|
static int idle_prefetch_data_on_node(starpu_data_handle_t handle, int node, struct _starpu_data_replicate *replicate, enum starpu_data_access_mode mode, int prio)
|
|
|
{
|
|
|
- return _starpu_fetch_data_on_node(handle, node, replicate, mode, 1, 2, 1, NULL, NULL, prio, "idle_prefetch_data_on_node");
|
|
|
+ return _starpu_fetch_data_on_node(handle, node, replicate, mode, 1, STARPU_IDLEFETCH, 1, NULL, NULL, prio, "idle_prefetch_data_on_node");
|
|
|
}
|
|
|
|
|
|
static int prefetch_data_on_node(starpu_data_handle_t handle, int node, struct _starpu_data_replicate *replicate, enum starpu_data_access_mode mode, int prio)
|
|
|
{
|
|
|
- return _starpu_fetch_data_on_node(handle, node, replicate, mode, 1, 1, 1, NULL, NULL, prio, "prefetch_data_on_node");
|
|
|
+ return _starpu_fetch_data_on_node(handle, node, replicate, mode, 1, STARPU_PREFETCH, 1, NULL, NULL, prio, "prefetch_data_on_node");
|
|
|
}
|
|
|
|
|
|
static int fetch_data(starpu_data_handle_t handle, int node, struct _starpu_data_replicate *replicate, enum starpu_data_access_mode mode, int prio)
|
|
|
{
|
|
|
- return _starpu_fetch_data_on_node(handle, node, replicate, mode, 0, 0, 0, NULL, NULL, prio, "fetch_data");
|
|
|
+ return _starpu_fetch_data_on_node(handle, node, replicate, mode, 0, STARPU_FETCH, 0, NULL, NULL, prio, "fetch_data");
|
|
|
}
|
|
|
|
|
|
uint32_t _starpu_get_data_refcnt(starpu_data_handle_t handle, unsigned node)
|
|
@@ -1133,7 +1133,7 @@ int _starpu_fetch_task_input(struct starpu_task *task, struct _starpu_job *j, in
|
|
|
|
|
|
if (async)
|
|
|
{
|
|
|
- ret = _starpu_fetch_data_on_node(handle, node, local_replicate, mode, 0, 0, 1,
|
|
|
+ ret = _starpu_fetch_data_on_node(handle, node, local_replicate, mode, 0, STARPU_FETCH, 1,
|
|
|
_starpu_fetch_task_input_cb, worker, 0, "_starpu_fetch_task_input");
|
|
|
#ifdef STARPU_SIMGRID
|
|
|
if (_starpu_simgrid_fetching_input_cost())
|
|
@@ -1372,7 +1372,7 @@ void _starpu_fetch_nowhere_task_input(struct _starpu_job *j)
|
|
|
|
|
|
local_replicate = get_replicate(handle, mode, -1, node);
|
|
|
|
|
|
- _starpu_fetch_data_on_node(handle, node, local_replicate, mode, 0, 0, 1, _starpu_fetch_nowhere_task_input_cb, wrapper, 0, "_starpu_fetch_nowhere_task_input");
|
|
|
+ _starpu_fetch_data_on_node(handle, node, local_replicate, mode, 0, STARPU_FETCH, 1, _starpu_fetch_nowhere_task_input_cb, wrapper, 0, "_starpu_fetch_nowhere_task_input");
|
|
|
}
|
|
|
|
|
|
if (profiling && task->profiling_info)
|