|
@@ -225,10 +225,13 @@ struct starpu_task *_starpu_detect_implicit_data_deps_with_handle(struct starpu_
|
|
|
struct _starpu_job *pre_sync_job = _starpu_get_job_associated_to_task(pre_sync_task);
|
|
|
struct _starpu_job *post_sync_job = _starpu_get_job_associated_to_task(post_sync_task);
|
|
|
|
|
|
+ if (mode & STARPU_R)
|
|
|
+ STARPU_ASSERT_MSG(handle->initialized || handle->init_cl, "Handle %p is not initialized, it cannot be read", handle);
|
|
|
+
|
|
|
if (mode & STARPU_W || mode == STARPU_REDUX)
|
|
|
{
|
|
|
|
|
|
- STARPU_ASSERT_MSG(!handle->readonly, "Read-only handles can not be written to");
|
|
|
+ STARPU_ASSERT_MSG(!handle->readonly, "Read-only handle %p can not be written to", handle);
|
|
|
|
|
|
handle->initialized = 1;
|
|
|
/* We will change our value, disconnect from our readonly duplicates */
|