Procházet zdrojové kódy

fix conflict with wait(2)

Samuel Thibault před 8 roky
rodič
revize
55fcfeb3c6

+ 3 - 1
tests/Makefile.am

@@ -324,7 +324,9 @@ endif
 MICROBENCHS = \
 	microbenchs/parallel_independent_homogeneous_tasks      \
 	microbenchs/parallel_independent_heterogeneous_tasks    \
-	microbenchs/parallel_independent_homogeneous_tasks_data
+	microbenchs/parallel_independent_homogeneous_tasks_data	\
+	microbenchs/parallel_independent_heterogeneous_tasks_data \
+	microbenchs/parallel_dependent_homogeneous_tasks_data
 
 if STARPU_HAVE_FC
 if !STARPU_SANITIZE

+ 5 - 5
tests/microbenchs/parallel_dependent_homogeneous_tasks_data.c

@@ -27,7 +27,7 @@
 #define SECONDS_SCALE_COEFFICIENT_TIMING_NOW 1000000
 #define NB_FLOAT 4000000
 
-void wait(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args){
+void wait_homogeneous(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args){
 	starpu_sleep(TIME);
 }
 
@@ -45,10 +45,10 @@ static struct starpu_perfmodel perf_model =
 
 static struct starpu_codelet cl =
 {
-	.cpu_funcs = { wait },
-	.cuda_funcs = { wait }, 
-	.opencl_funcs = { wait },
-	.cpu_funcs_name = { "wait" },
+	.cpu_funcs = { wait_homogeneous },
+	.cuda_funcs = { wait_homogeneous }, 
+	.opencl_funcs = { wait_homogeneous },
+	.cpu_funcs_name = { "wait_homogeneous" },
 	.nbuffers = 1,
 	.modes = {STARPU_RW},
 	.flags = STARPU_CODELET_SIMGRID_EXECUTE,

+ 5 - 5
tests/microbenchs/parallel_independent_homogeneous_tasks.c

@@ -25,7 +25,7 @@
 #define MARGIN 0.05
 #define SECONDS_SCALE_COEFFICIENT_TIMING_NOW 1000000
 
-void wait(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args){
+void wait_homogeneous(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args){
 	starpu_sleep(TIME);
 }
 
@@ -44,10 +44,10 @@ static struct starpu_perfmodel perf_model =
 
 static struct starpu_codelet cl =
 {
-	.cpu_funcs = { wait },
-	.cuda_funcs = { wait }, 
-	.opencl_funcs = { wait },
-	.cpu_funcs_name = { "wait" },
+	.cpu_funcs = { wait_homogeneous },
+	.cuda_funcs = { wait_homogeneous }, 
+	.opencl_funcs = { wait_homogeneous },
+	.cpu_funcs_name = { "wait_homogeneous" },
 	.nbuffers = 0,
 	.flags = STARPU_CODELET_SIMGRID_EXECUTE,
 	.model = &perf_model,

+ 5 - 5
tests/microbenchs/parallel_independent_homogeneous_tasks_data.c

@@ -26,7 +26,7 @@
 #define SECONDS_SCALE_COEFFICIENT_TIMING_NOW 1000000
 #define NB_FLOAT 4000000
 
-void wait(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args){
+void wait_homogeneous(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args){
 	starpu_sleep(TIME);
 }
 
@@ -44,10 +44,10 @@ static struct starpu_perfmodel perf_model =
 
 static struct starpu_codelet cl =
 {
-	.cpu_funcs = { wait },
-	.cuda_funcs = { wait }, 
-	.opencl_funcs = { wait },
-	.cpu_funcs_name = { "wait" },
+	.cpu_funcs = { wait_homogeneous },
+	.cuda_funcs = { wait_homogeneous }, 
+	.opencl_funcs = { wait_homogeneous },
+	.cpu_funcs_name = { "wait_homogeneous" },
 	.nbuffers = 1,
 	.modes = {STARPU_RW},
 	.flags = STARPU_CODELET_SIMGRID_EXECUTE,