|
@@ -42,6 +42,7 @@ int parallel_code(int sched_ctx)
|
|
// printf("cpu = %d ctx%d nth = %d\n", sched_getcpu(), sched_ctx, omp_get_num_threads());
|
|
// printf("cpu = %d ctx%d nth = %d\n", sched_getcpu(), sched_ctx, omp_get_num_threads());
|
|
#pragma omp for
|
|
#pragma omp for
|
|
for(i = 0; i < NTASKS; i++)
|
|
for(i = 0; i < NTASKS; i++)
|
|
|
|
+#pragma omp critical
|
|
t++;
|
|
t++;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -59,10 +60,6 @@ static void sched_ctx_func(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
|
|
static struct starpu_codelet sched_ctx_codelet =
|
|
static struct starpu_codelet sched_ctx_codelet =
|
|
{
|
|
{
|
|
.cpu_funcs = {sched_ctx_func},
|
|
.cpu_funcs = {sched_ctx_func},
|
|
-#ifdef STARPU_DEVEL
|
|
|
|
-#warning FIXME: cuda_funcs should not need to be defined
|
|
|
|
-#endif
|
|
|
|
- .cuda_funcs = {sched_ctx_func},
|
|
|
|
.model = NULL,
|
|
.model = NULL,
|
|
.nbuffers = 0,
|
|
.nbuffers = 0,
|
|
.name = "sched_ctx"
|
|
.name = "sched_ctx"
|