|
@@ -1,7 +1,7 @@
|
|
|
/* StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
|
*
|
|
|
* Copyright (C) 2010 Université de Bordeaux 1
|
|
|
- * Copyright (C) 2010 Centre National de la Recherche Scientifique
|
|
|
+ * Copyright (C) 2010, 2011 Centre National de la Recherche Scientifique
|
|
|
*
|
|
|
* 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
|
|
@@ -21,10 +21,9 @@
|
|
|
#define N 1000
|
|
|
#define VECTORSIZE 1024
|
|
|
|
|
|
-static pthread_mutex_t mutex;
|
|
|
-static pthread_cond_t cond;
|
|
|
-
|
|
|
-static unsigned finished = 0;
|
|
|
+//static pthread_mutex_t mutex;
|
|
|
+//static pthread_cond_t cond;
|
|
|
+//static unsigned finished = 0;
|
|
|
|
|
|
static unsigned cnt;
|
|
|
|
|
@@ -56,17 +55,17 @@ static starpu_codelet cl = {
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
{
|
|
|
- struct starpu_conf conf = {
|
|
|
- .sched_policy_name = "pheft",
|
|
|
- .ncpus = -1,
|
|
|
- .ncuda = -1,
|
|
|
- .nopencl = -1,
|
|
|
- .nspus = -1,
|
|
|
- .use_explicit_workers_bindid = 0,
|
|
|
- .use_explicit_workers_cuda_gpuid = 0,
|
|
|
- .use_explicit_workers_opencl_gpuid = 0,
|
|
|
- .calibrate = -1
|
|
|
- };
|
|
|
+// struct starpu_conf conf = {
|
|
|
+// .sched_policy_name = "pheft",
|
|
|
+// .ncpus = -1,
|
|
|
+// .ncuda = -1,
|
|
|
+// .nopencl = -1,
|
|
|
+// .nspus = -1,
|
|
|
+// .use_explicit_workers_bindid = 0,
|
|
|
+// .use_explicit_workers_cuda_gpuid = 0,
|
|
|
+// .use_explicit_workers_opencl_gpuid = 0,
|
|
|
+// .calibrate = -1
|
|
|
+// };
|
|
|
|
|
|
starpu_init(NULL);
|
|
|
|