|
@@ -127,8 +127,7 @@ static int recordprio;
|
|
|
|
|
|
static starpu_pthread_mutex_t mutex = STARPU_PTHREAD_MUTEX_INITIALIZER;
|
|
|
|
|
|
-/* Initialization */
|
|
|
-void starpu_bound_start(int deps, int prio)
|
|
|
+static void _starpu_bound_clear(int record, int deps, int prio)
|
|
|
{
|
|
|
struct bound_task_pool *tp;
|
|
|
struct bound_task *t;
|
|
@@ -146,7 +145,7 @@ void starpu_bound_start(int deps, int prio)
|
|
|
td = tag_deps;
|
|
|
tag_deps = NULL;
|
|
|
|
|
|
- _starpu_bound_recording = 1;
|
|
|
+ _starpu_bound_recording = record;
|
|
|
recorddeps = deps;
|
|
|
recordprio = prio;
|
|
|
|
|
@@ -174,6 +173,17 @@ void starpu_bound_start(int deps, int prio)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+void starpu_bound_clear(void)
|
|
|
+{
|
|
|
+ _starpu_bound_clear(0, 0, 0);
|
|
|
+}
|
|
|
+
|
|
|
+/* Initialization */
|
|
|
+void starpu_bound_start(int deps, int prio)
|
|
|
+{
|
|
|
+ _starpu_bound_clear(1, deps, prio);
|
|
|
+}
|
|
|
+
|
|
|
/* Whether we will include it in the computation */
|
|
|
static int good_job(struct _starpu_job *j)
|
|
|
{
|