Browse Source

tests/microbenchs/: minor fixes

Nathalie Furmento 8 years ago
parent
commit
5d6b40b7db

+ 19 - 12
tests/microbenchs/microbench.sh

@@ -1,6 +1,7 @@
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
 # Copyright (C) 2016  Université de Bordeaux
+# Copyright (C) 2016  CNRS
 #
 # 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
@@ -22,53 +23,59 @@
 
 set -e
 
-SCHEDS=`$top_builddir/tools/starpu_sched_display`
+SCHEDS=`$(dirname $0)/../../tools/starpu_sched_display`
 
 test_scheds()
 {
 	TEST=$1
+	xfailed=""
 	failed=""
 	pass=""
 
 	RESULT=0
 	for sched in $SCHEDS;
 	do
-		if STARPU_SCHED=$sched $top_builddir/tests/microbenchs/$TEST ; then
-			echo " SUCCESS: STARPU_SCHED=$sched ./microbenchs/$TEST"
+		if STARPU_SCHED=$sched $(dirname $0)/$TEST
+		then
+		    	echo "SUCCESS: STARPU_SCHED=$sched ./microbenchs/$TEST"
 			pass="$pass $sched"
 			continue
 		fi
-		failed="$failed $sched"
 
 		if [ -n "$XSUCCESS" ]
 		then
                         # We have a list of schedulers that are expected to
                         # succeed, others are allowed to fail
-			case " $XSUCCESS " in 
+			case " $XSUCCESS " in
 				*\ $sched\ *)
-					echo " FAIL: STARPU_SCHED=$sched ./microbenchs/$TEST" | ( tee /dev/tty || true )
+					echo "FAIL: STARPU_SCHED=$sched ./microbenchs/$TEST" | ( tee /dev/tty || true )
+					failed="$failed $sched"
 					RESULT=1
 					;;
 				*)
-					echo " XFAIL: STARPU_SCHED=$sched ./microbenchs/$TEST"
+					echo "XFAIL: STARPU_SCHED=$sched ./microbenchs/$TEST"
+					xfailed="$xfailed $sched"
 					;;
 			esac
 		else
                         # We have a list of schedulers that are expected to
                         # fail, others are expected to succeed
-			case " $XFAIL " in 
+			case " $XFAIL " in
 				*\ $sched\ *)
-					echo " XFAIL: STARPU_SCHED=$sched ./microbenchs/$TEST"
+					echo "XFAIL: STARPU_SCHED=$sched ./microbenchs/$TEST"
+					xfailed="$xfailed $sched"
 					;;
 				*)
-					echo " FAIL: STARPU_SCHED=$sched ./microbenchs/$TEST" | ( tee /dev/tty || true )
+					echo "FAIL: STARPU_SCHED=$sched ./microbenchs/$TEST" | ( tee /dev/tty || true )
+					failed="$failed $sched"
 					RESULT=1
 					;;
 			esac
 		fi
 
 	done
-	echo "passed schedulers:$pass" | ( tee /dev/tty || true )
-	echo "failed schedulers:$failed" | ( tee /dev/tty || true )
+	echo "passed schedulers:$pass"
+	echo "failed schedulers:$failed"
+	echo "xfailed schedulers:$xfailed"
 	return $RESULT
 }

+ 23 - 18
tests/microbenchs/parallel_dependent_homogeneous_tasks_data.c

@@ -33,7 +33,8 @@
 #define SECONDS_SCALE_COEFFICIENT_TIMING_NOW 1000000
 #define NB_FLOAT 4000000
 
-void wait_homogeneous(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args){
+void wait_homogeneous(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args)
+{
 	starpu_sleep(TIME);
 }
 
@@ -48,11 +49,10 @@ static struct starpu_perfmodel perf_model =
 	.arch_cost_function = cost_function,
 };
 
-
 static struct starpu_codelet cl =
 {
 	.cpu_funcs = { wait_homogeneous },
-	.cuda_funcs = { wait_homogeneous }, 
+	.cuda_funcs = { wait_homogeneous },
 	.opencl_funcs = { wait_homogeneous },
 	.cpu_funcs_name = { "wait_homogeneous" },
 	.nbuffers = 1,
@@ -61,18 +61,18 @@ static struct starpu_codelet cl =
 	.model = &perf_model,
 };
 
-int main(int argc, char *argv[]){
-	
+int main(int argc, char *argv[])
+{
 	int ret;
-	
-	ret = starpu_initialize(NULL, &argc, &argv); 
+
+	ret = starpu_initialize(NULL, &argc, &argv);
 	if (ret == -ENODEV) return STARPU_TEST_SKIPPED;
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
 
 	unsigned nb_tasks, nb_data, nb_workers;
 	double begin_time, end_time, time_m, time_s, speed_up, expected_speed_up, percentage_expected_speed_up;
 	bool check, check_sup;
-	
+
 	nb_workers = starpu_worker_get_count_by_type(STARPU_CPU_WORKER) + starpu_worker_get_count_by_type(STARPU_CUDA_WORKER) + starpu_worker_get_count_by_type(STARPU_OPENCL_WORKER);
 	nb_tasks = nb_workers*TASK_COEFFICIENT*DATA_COEFFICIENT;
 	nb_data = nb_workers*DATA_COEFFICIENT;
@@ -106,19 +106,17 @@ int main(int argc, char *argv[]){
 		starpu_vector_data_register(&vector_handle[j], STARPU_MAIN_RAM, (uintptr_t)vector[j], NB_FLOAT, sizeof(vector[0][0]));
 	}
 
-	
-
 	begin_time = starpu_timing_now();
 
 	/*execution des tasks*/
-	
+
 	for (i=0; i<nb_tasks; i++)
 		starpu_task_insert(&cl, STARPU_RW, vector_handle[i%nb_data], 0);
 	for (i=0; i<nb_data; i++)
 		starpu_data_wont_use(vector_handle[i]);
 
-	starpu_task_wait_for_all();	
-	
+	starpu_task_wait_for_all();
+
 	end_time = starpu_timing_now();
 
 	for (j = 0; j < nb_data; j++)
@@ -134,17 +132,24 @@ int main(int argc, char *argv[]){
 	check = speed_up >= ((1 - MARGIN) * expected_speed_up);
 	check_sup = speed_up <= ((1 + MARGIN) * expected_speed_up);
 
-	printf("measured time = %f seconds\nsequential time = %f seconds\nspeed up = %f\nnumber of workers = %d\nnumber of tasks = %d\nexpected speed up = %f\npercentage of expected speed up %.2f%%\n", time_m, time_s, speed_up, nb_workers, nb_tasks, expected_speed_up, percentage_expected_speed_up);
+	FPRINTF(stderr, "measured time = %f seconds\n", time_m);
+	FPRINTF(stderr, "sequential time = %f seconds\n", time_s);
+	FPRINTF(stderr, "speed up = %f\n", speed_up);
+	FPRINTF(stderr, "number of workers = %d\n", nb_workers);
+	FPRINTF(stderr, "number of tasks = %d\n", nb_tasks);
+	FPRINTF(stderr, "expected speed up = %f\n", expected_speed_up);
+	FPRINTF(stderr, "percentage of expected speed up %.2f%%\n", percentage_expected_speed_up);
 
 	starpu_shutdown();
 	for (j = 0; j < nb_data; j++)
 		free(vector[j]);
-	
-	if (check && check_sup){ //test reussi ou test echoue
+
+	if (check && check_sup)
+	{ //test reussi ou test echoue
 		return EXIT_SUCCESS;
 	}
-	else{
+	else
+	{
 		return EXIT_FAILURE;
 	}
 }
-

+ 3 - 1
tests/microbenchs/parallel_dependent_homogeneous_tasks_data.sh

@@ -1,7 +1,9 @@
 #!/bin/bash
+#
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
 # Copyright (C) 2016  Université de Bordeaux
+# Copyright (C) 2016  CNRS
 #
 # 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
@@ -14,7 +16,7 @@
 #
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 
-source $srcdir/microbenchs/microbench.sh
+source $(dirname $0)/microbench.sh
 
 XSUCCESS="modular-heft modular-heft2 lws dmda dmdar dmdas dmdasd pheft"
 

+ 22 - 17
tests/microbenchs/parallel_independent_heterogeneous_tasks.c

@@ -32,15 +32,18 @@
 #define TIME_OPENCL_COEFFICIENT 5
 #define SECONDS_SCALE_COEFFICIENT_TIMING_NOW 1000000
 
-void wait_CPU(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args){
+void wait_CPU(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args)
+{
 	starpu_sleep(TIME);
 }
 
-void wait_CUDA(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args){
+void wait_CUDA(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args)
+{
 	starpu_sleep(TIME/TIME_CUDA_COEFFICIENT);
 }
 
-void wait_OPENCL(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args){
+void wait_OPENCL(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args)
+{
 	starpu_sleep(TIME/TIME_OPENCL_COEFFICIENT);
 }
 
@@ -81,33 +84,34 @@ static struct starpu_codelet cl =
 	.model = &perf_model,
 };
 
-int main(int argc, char *argv[]){
-	
+int main(int argc, char *argv[])
+{
 	int ret;
-	
-	ret = starpu_initialize(NULL, &argc, &argv); 
+
+	ret = starpu_initialize(NULL, &argc, &argv);
 	if (ret == -ENODEV) return STARPU_TEST_SKIPPED;
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
 
 	unsigned nb_tasks, nb_workers_CPU, nb_workers_CUDA, nb_workers_OPENCL, i;
 	double begin_time, end_time, time_m, time_s, speed_up, expected_speed_up, percentage_expected_speed_up;
 	bool check, check_sup;
-	
+
 	nb_workers_CPU = starpu_worker_get_count_by_type(STARPU_CPU_WORKER);
 	nb_workers_CUDA = starpu_worker_get_count_by_type(STARPU_CUDA_WORKER);
 	nb_workers_OPENCL = starpu_worker_get_count_by_type(STARPU_OPENCL_WORKER);
 	nb_tasks = (nb_workers_CPU + nb_workers_CUDA + nb_workers_OPENCL)*TASK_COEFFICIENT;
-	
+
 	begin_time = starpu_timing_now();
 
 	/*execution des tasks*/
-	
-	for (i=0; i<nb_tasks; i++){
+
+	for (i=0; i<nb_tasks; i++)
+	{
 		starpu_task_insert(&cl,0);
 	}
 
-	starpu_task_wait_for_all();	
-	
+	starpu_task_wait_for_all();
+
 	end_time = starpu_timing_now();
 
 	/*on determine si le temps mesure est satisfaisant ou pas*/
@@ -123,12 +127,13 @@ int main(int argc, char *argv[]){
 	printf("measured time = %f seconds\nsequential time = %f seconds\nspeed up = %f\nnumber of workers CPU = %d\nnumber of workers CUDA = %d\nnumber of workers OPENCL = %d\nnumber of tasks = %d\nexpected speed up = %f\npercentage of expected speed up = %.2f%%\n", time_m, time_s, speed_up, nb_workers_CPU, nb_workers_CUDA, nb_workers_OPENCL, nb_tasks, expected_speed_up, percentage_expected_speed_up);
 
 	starpu_shutdown();
-	
-	if (check && check_sup){ //test reussi ou test echoue
+
+	if (check && check_sup)
+	{ //test reussi ou test echoue
 		return EXIT_SUCCESS;
 	}
-	else{
+	else
+	{
 		return EXIT_FAILURE;
 	}
 }
-

+ 3 - 1
tests/microbenchs/parallel_independent_heterogeneous_tasks.sh

@@ -1,7 +1,9 @@
 #!/bin/bash
+#
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
 # Copyright (C) 2016  Université de Bordeaux
+# Copyright (C) 2016  CNRS
 #
 # 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
@@ -14,7 +16,7 @@
 #
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 
-source $srcdir/microbenchs/microbench.sh
+source $(dirname $0)/microbench.sh
 
 XFAIL="modular-eager-prefetching modular-prio-prefetching modular-random-prefetching modular-random-prio-prefetching modular-ws modular-heft modular-heft2 random peager heteroprio graph_test"
 

+ 24 - 20
tests/microbenchs/parallel_independent_heterogeneous_tasks_data.c

@@ -29,19 +29,22 @@
 #define MARGIN 0.10
 #endif
 #define TIME_CUDA_COEFFICIENT 10
-#define TIME_OPENCL_COEFFICIENT 5    
+#define TIME_OPENCL_COEFFICIENT 5
 #define SECONDS_SCALE_COEFFICIENT_TIMING_NOW 1000000
 #define NB_FLOAT 400000
 
-void wait_CPU(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args){
+void wait_CPU(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args)
+{
 	starpu_sleep(TIME);
 }
 
-void wait_CUDA(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args){
+void wait_CUDA(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args)
+{
 	starpu_sleep(TIME/TIME_CUDA_COEFFICIENT);
 }
 
-void wait_OPENCL(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args){
+void wait_OPENCL(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args)
+{
 	starpu_sleep(TIME/TIME_OPENCL_COEFFICIENT);
 }
 
@@ -71,11 +74,10 @@ static struct starpu_perfmodel perf_model =
 	.arch_cost_function = cost_function,
 };
 
-
 static struct starpu_codelet cl =
 {
 	.cpu_funcs = { wait_CPU },
-	.cuda_funcs = { wait_CUDA }, 
+	.cuda_funcs = { wait_CUDA },
 	.opencl_funcs = { wait_OPENCL },
 	.cpu_funcs_name = { "wait_CPU" },
 	.nbuffers = 1,
@@ -84,18 +86,18 @@ static struct starpu_codelet cl =
 	.model = &perf_model,
 };
 
-int main(int argc, char *argv[]){
-	
+int main(int argc, char *argv[])
+{
 	int ret;
-	
-	ret = starpu_initialize(NULL, &argc, &argv); 
+
+	ret = starpu_initialize(NULL, &argc, &argv);
 	if (ret == -ENODEV) return STARPU_TEST_SKIPPED;
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
 
 	unsigned nb_tasks, nb_workers_CPU, nb_workers_CUDA, nb_workers_OPENCL;
 	double begin_time, end_time, time_m, time_s, speed_up, expected_speed_up, percentage_expected_speed_up;
 	bool check, check_sup;
-	
+
 	nb_workers_CPU = starpu_worker_get_count_by_type(STARPU_CPU_WORKER);
 	nb_workers_CUDA = starpu_worker_get_count_by_type(STARPU_CUDA_WORKER);
 	nb_workers_OPENCL = starpu_worker_get_count_by_type(STARPU_OPENCL_WORKER);
@@ -130,19 +132,20 @@ int main(int argc, char *argv[]){
 		starpu_vector_data_register(&vector_handle[j], STARPU_MAIN_RAM, (uintptr_t)vector[j], NB_FLOAT, sizeof(vector[0][0]));
 	}
 
-	
+
 
 	begin_time = starpu_timing_now();
 
 	/*execution des tasks*/
-	
-	for (i=0; i<nb_tasks; i++){
+
+	for (i=0; i<nb_tasks; i++)
+	{
 		starpu_task_insert(&cl, STARPU_RW, vector_handle[i], 0);
 		starpu_data_wont_use(vector_handle[i]);
 	}
 
-	starpu_task_wait_for_all();	
-	
+	starpu_task_wait_for_all();
+
 	end_time = starpu_timing_now();
 
 	for (j = 0; j < nb_tasks; j++)
@@ -163,12 +166,13 @@ int main(int argc, char *argv[]){
 	starpu_shutdown();
 	for (j = 0; j < nb_tasks; j++)
 		free(vector[j]);
-	
-	if (check && check_sup){ //test reussi ou test echoue
+
+	if (check && check_sup)
+	{ //test reussi ou test echoue
 		return EXIT_SUCCESS;
 	}
-	else{
+	else
+	{
 		return EXIT_FAILURE;
 	}
 }
-

+ 3 - 1
tests/microbenchs/parallel_independent_heterogeneous_tasks_data.sh

@@ -1,7 +1,9 @@
 #!/bin/bash
+#
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
 # Copyright (C) 2016  Université de Bordeaux
+# Copyright (C) 2016  CNRS
 #
 # 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
@@ -14,7 +16,7 @@
 #
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 
-source $srcdir/microbenchs/microbench.sh
+source $(dirname $0)/microbench.sh
 
 XSUCCESS="modular-heft modular-heft2 dmda dmdar dmdas dmdasd pheft"
 

+ 19 - 18
tests/microbenchs/parallel_independent_homogeneous_tasks.c

@@ -30,17 +30,16 @@
 #endif
 #define SECONDS_SCALE_COEFFICIENT_TIMING_NOW 1000000
 
-void wait_homogeneous(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args){
+void wait_homogeneous(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args)
+{
 	starpu_sleep(TIME);
 }
 
-
 double cost_function(struct starpu_task *t, struct starpu_perfmodel_arch *a, unsigned i)
 {
 	return TIME * 1000000;
 }
 
-
 static struct starpu_perfmodel perf_model =
 {
 	.type = STARPU_PER_ARCH,
@@ -50,7 +49,7 @@ static struct starpu_perfmodel perf_model =
 static struct starpu_codelet cl =
 {
 	.cpu_funcs = { wait_homogeneous },
-	.cuda_funcs = { wait_homogeneous }, 
+	.cuda_funcs = { wait_homogeneous },
 	.opencl_funcs = { wait_homogeneous },
 	.cpu_funcs_name = { "wait_homogeneous" },
 	.nbuffers = 0,
@@ -58,31 +57,32 @@ static struct starpu_codelet cl =
 	.model = &perf_model,
 };
 
-int main(int argc, char *argv[]){
-	
+int main(int argc, char *argv[])
+{
 	int ret;
-	
-	ret = starpu_initialize(NULL, &argc, &argv); 
+
+	ret = starpu_initialize(NULL, &argc, &argv);
 	if (ret == -ENODEV) return STARPU_TEST_SKIPPED;
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
 
 	unsigned nb_tasks, nb_workers, i;
 	double begin_time, end_time, time_m, time_s, speed_up, expected_speed_up, percentage_expected_speed_up;
 	bool check, check_sup;
-	
+
 	nb_workers = starpu_worker_get_count_by_type(STARPU_CPU_WORKER) + starpu_worker_get_count_by_type(STARPU_CUDA_WORKER) + starpu_worker_get_count_by_type(STARPU_OPENCL_WORKER);
 	nb_tasks = nb_workers*TASK_COEFFICIENT;
-	
+
 	begin_time = starpu_timing_now();
 
 	/*execution des tasks*/
-	
-	for (i=0; i<nb_tasks; i++){
+
+	for (i=0; i<nb_tasks; i++)
+	{
 		starpu_task_insert(&cl,0);
 	}
 
-	starpu_task_wait_for_all();	
-	
+	starpu_task_wait_for_all();
+
 	end_time = starpu_timing_now();
 
 	/*on determine si le temps mesure est satisfaisant ou pas*/
@@ -98,12 +98,13 @@ int main(int argc, char *argv[]){
 	printf("measured time = %f seconds\nsequential time = %f seconds\nspeed up = %f\nnumber of workers = %d\nnumber of tasks = %d\nexpected speed up = %f\npercentage of expected speed up = %.2f%%\n", time_m, time_s, speed_up, nb_workers, nb_tasks, expected_speed_up, percentage_expected_speed_up);
 
 	starpu_shutdown();
-	
-	if (check && check_sup){ //test reussi ou test echoue
+
+	if (check && check_sup)
+	{ //test reussi ou test echoue
 		return EXIT_SUCCESS;
 	}
-	else{
+	else
+	{
 		return EXIT_FAILURE;
 	}
 }
-

+ 3 - 1
tests/microbenchs/parallel_independent_homogeneous_tasks.sh

@@ -1,7 +1,9 @@
 #!/bin/bash
+#
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
 # Copyright (C) 2016  Université de Bordeaux
+# Copyright (C) 2016  CNRS
 #
 # 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
@@ -14,7 +16,7 @@
 #
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 
-source $srcdir/microbenchs/microbench.sh
+source $(dirname $0)/microbench.sh
 
 XFAIL="modular-eager-prefetching modular-prio-prefetching modular-random-prefetching modular-random-prio-prefetching modular-ws modular-heft modular-heft2 random peager heteroprio graph_test"
 

+ 19 - 17
tests/microbenchs/parallel_independent_homogeneous_tasks_data.c

@@ -31,7 +31,8 @@
 #define SECONDS_SCALE_COEFFICIENT_TIMING_NOW 1000000
 #define NB_FLOAT 4000000
 
-void wait_homogeneous(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args){
+void wait_homogeneous(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *_args)
+{
 	starpu_sleep(TIME);
 }
 
@@ -46,11 +47,10 @@ static struct starpu_perfmodel perf_model =
 	.arch_cost_function = cost_function,
 };
 
-
 static struct starpu_codelet cl =
 {
 	.cpu_funcs = { wait_homogeneous },
-	.cuda_funcs = { wait_homogeneous }, 
+	.cuda_funcs = { wait_homogeneous },
 	.opencl_funcs = { wait_homogeneous },
 	.cpu_funcs_name = { "wait_homogeneous" },
 	.nbuffers = 1,
@@ -59,18 +59,18 @@ static struct starpu_codelet cl =
 	.model = &perf_model,
 };
 
-int main(int argc, char *argv[]){
-	
+int main(int argc, char *argv[])
+{
 	int ret;
-	
-	ret = starpu_initialize(NULL, &argc, &argv); 
+
+	ret = starpu_initialize(NULL, &argc, &argv);
 	if (ret == -ENODEV) return STARPU_TEST_SKIPPED;
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
 
 	unsigned nb_tasks, nb_workers;
 	double begin_time, end_time, time_m, time_s, speed_up, expected_speed_up, percentage_expected_speed_up;
 	bool check, check_sup;
-	
+
 	nb_workers = starpu_worker_get_count_by_type(STARPU_CPU_WORKER) + starpu_worker_get_count_by_type(STARPU_CUDA_WORKER) + starpu_worker_get_count_by_type(STARPU_OPENCL_WORKER);
 	nb_tasks = nb_workers*TASK_COEFFICIENT;
 
@@ -103,19 +103,20 @@ int main(int argc, char *argv[]){
 		starpu_vector_data_register(&vector_handle[j], STARPU_MAIN_RAM, (uintptr_t)vector[j], NB_FLOAT, sizeof(vector[0][0]));
 	}
 
-	
+
 
 	begin_time = starpu_timing_now();
 
 	/*execution des tasks*/
-	
-	for (i=0; i<nb_tasks; i++){
+
+	for (i=0; i<nb_tasks; i++)
+	{
 		starpu_task_insert(&cl, STARPU_RW, vector_handle[i], 0);
 		starpu_data_wont_use(vector_handle[i]);
 	}
 
-	starpu_task_wait_for_all();	
-	
+	starpu_task_wait_for_all();
+
 	end_time = starpu_timing_now();
 
 	for (j = 0; j < nb_tasks; j++)
@@ -136,12 +137,13 @@ int main(int argc, char *argv[]){
 	starpu_shutdown();
 	for (j = 0; j < nb_tasks; j++)
 		free(vector[j]);
-	
-	if (check && check_sup){ //test reussi ou test echoue
+
+	if (check && check_sup)
+	{ //test reussi ou test echoue
 		return EXIT_SUCCESS;
 	}
-	else{
+	else
+	{
 		return EXIT_FAILURE;
 	}
 }
-

+ 3 - 1
tests/microbenchs/parallel_independent_homogeneous_tasks_data.sh

@@ -1,6 +1,8 @@
 #!/bin/bash
+#
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
+# Copyright (C) 2016  CNRS
 # Copyright (C) 2016  Université de Bordeaux
 #
 # StarPU is free software; you can redistribute it and/or modify
@@ -14,7 +16,7 @@
 #
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 
-source $srcdir/microbenchs/microbench.sh
+source $(dirname $0)/microbench.sh
 
 XSUCCESS="modular-heft modular-heft2 dmda dmdar dmdas dmdasd pheft"