|
@@ -58,7 +58,9 @@ void taskgroup_f(void *arg)
|
|
struct starpu_omp_task_region_attr attr;
|
|
struct starpu_omp_task_region_attr attr;
|
|
int *p_i = (int *)arg;
|
|
int *p_i = (int *)arg;
|
|
memset(&attr, 0, sizeof(attr));
|
|
memset(&attr, 0, sizeof(attr));
|
|
|
|
+#ifdef STARPU_SIMGRID
|
|
attr.cl.model = &starpu_perfmodel_nop;
|
|
attr.cl.model = &starpu_perfmodel_nop;
|
|
|
|
+#endif
|
|
attr.cl.cpu_funcs[0] = task_region_g;
|
|
attr.cl.cpu_funcs[0] = task_region_g;
|
|
attr.cl.where = STARPU_CPU;
|
|
attr.cl.where = STARPU_CPU;
|
|
attr.cl_arg_size = sizeof(void *);
|
|
attr.cl_arg_size = sizeof(void *);
|
|
@@ -99,7 +101,9 @@ void parallel_region_f(void *buffers[], void *args)
|
|
printf("[tid %p] task thread = %d: implicit task \"f\": taskgroup\n", (void *)tid, worker_id);
|
|
printf("[tid %p] task thread = %d: implicit task \"f\": taskgroup\n", (void *)tid, worker_id);
|
|
|
|
|
|
memset(&attr, 0, sizeof(attr));
|
|
memset(&attr, 0, sizeof(attr));
|
|
|
|
+#ifdef STARPU_SIMGRID
|
|
attr.cl.model = &starpu_perfmodel_nop;
|
|
attr.cl.model = &starpu_perfmodel_nop;
|
|
|
|
+#endif
|
|
attr.cl.cpu_funcs[0] = task_region_g;
|
|
attr.cl.cpu_funcs[0] = task_region_g;
|
|
attr.cl.where = STARPU_CPU;
|
|
attr.cl.where = STARPU_CPU;
|
|
attr.cl_arg_size = sizeof(void *);
|
|
attr.cl_arg_size = sizeof(void *);
|
|
@@ -121,7 +125,9 @@ main (void)
|
|
{
|
|
{
|
|
struct starpu_omp_parallel_region_attr attr;
|
|
struct starpu_omp_parallel_region_attr attr;
|
|
memset(&attr, 0, sizeof(attr));
|
|
memset(&attr, 0, sizeof(attr));
|
|
|
|
+#ifdef STARPU_SIMGRID
|
|
attr.cl.model = &starpu_perfmodel_nop;
|
|
attr.cl.model = &starpu_perfmodel_nop;
|
|
|
|
+#endif
|
|
attr.cl.cpu_funcs[0] = parallel_region_f;
|
|
attr.cl.cpu_funcs[0] = parallel_region_f;
|
|
attr.cl.where = STARPU_CPU;
|
|
attr.cl.where = STARPU_CPU;
|
|
attr.if_clause = 1;
|
|
attr.if_clause = 1;
|