|
@@ -1,3 +1,19 @@
|
|
|
+/* StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
|
+ *
|
|
|
+ * Copyright (C) 2012 Inria
|
|
|
+ *
|
|
|
+ * StarPU is free software; you can redistribute it and/or modify
|
|
|
+ * it under the terms of the GNU Lesser General Public License as published by
|
|
|
+ * the Free Software Foundation; either version 2.1 of the License, or (at
|
|
|
+ * your option) any later version.
|
|
|
+ *
|
|
|
+ * StarPU is distributed in the hope that it will be useful, but
|
|
|
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
+ *
|
|
|
+ * See the GNU Lesser General Public License in COPYING.LGPL for more details.
|
|
|
+ */
|
|
|
+
|
|
|
#include <starpu.h>
|
|
|
|
|
|
#include "../helper.h"
|
|
@@ -19,7 +35,7 @@ dummy(void *buffers[], void *args)
|
|
|
(void) args;
|
|
|
}
|
|
|
|
|
|
-/*
|
|
|
+/*
|
|
|
* Dummy cost function, used to make sure the scheduler does schedule the
|
|
|
* task, instead of getting rid of it as soon as possible because it doesn't
|
|
|
* know its expected length.
|
|
@@ -78,7 +94,7 @@ run(struct starpu_sched_policy *policy)
|
|
|
goto enodev;
|
|
|
|
|
|
if (starpu_cpu_worker_get_count() == 0 ||
|
|
|
- (starpu_cuda_worker_get_count() == 0 &&
|
|
|
+ (starpu_cuda_worker_get_count() == 0 &&
|
|
|
starpu_opencl_worker_get_count() == 0))
|
|
|
goto enodev;
|
|
|
|
|
@@ -98,7 +114,7 @@ run(struct starpu_sched_policy *policy)
|
|
|
goto enodev;
|
|
|
STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_submit");
|
|
|
|
|
|
-
|
|
|
+
|
|
|
/* Now, run multiple tasks using this handle. */
|
|
|
cl.where |= STARPU_CPU;
|
|
|
int i;
|