Browse Source

update code w.r.t coding style

Nathalie Furmento 13 years ago
parent
commit
7599748470
84 changed files with 430 additions and 223 deletions
  1. 6 3
      tests/cholesky/prio.r
  2. 6 3
      tests/cholesky/sched.r
  3. 2 1
      tests/core/empty_task.c
  4. 4 2
      tests/core/execute_on_a_specific_worker.c
  5. 2 1
      tests/core/get_current_task.c
  6. 10 5
      tests/core/insert_task.c
  7. 16 8
      tests/core/multiformat_data_release.c
  8. 20 10
      tests/core/multiformat_handle_conversion.c
  9. 2 1
      tests/core/multithreaded.c
  10. 2 1
      tests/core/regenerate.c
  11. 2 1
      tests/core/starpu_task_wait.c
  12. 4 2
      tests/core/starpu_task_wait_for_all.c
  13. 2 1
      tests/core/static_restartable.c
  14. 2 1
      tests/core/static_restartable_tag.c
  15. 2 1
      tests/core/static_restartable_using_initializer.c
  16. 2 1
      tests/core/subgraph_repeat.c
  17. 2 1
      tests/core/subgraph_repeat_regenerate.c
  18. 4 2
      tests/core/wait_all_regenerable_tasks.c
  19. 10 5
      tests/datawizard/acquire_cb_insert.c
  20. 2 1
      tests/datawizard/acquire_release.c
  21. 2 1
      tests/datawizard/acquire_release2.c
  22. 2 1
      tests/datawizard/critical_section_with_void_interface.c
  23. 6 3
      tests/datawizard/data_implicit_deps.c
  24. 4 2
      tests/datawizard/data_invalidation.c
  25. 2 1
      tests/datawizard/data_lookup.c
  26. 2 1
      tests/datawizard/dining_philosophers.c
  27. 4 2
      tests/datawizard/dsm_stress.c
  28. 2 1
      tests/datawizard/handle_to_pointer.c
  29. 6 3
      tests/datawizard/increment_redux.c
  30. 6 3
      tests/datawizard/increment_redux_v2.c
  31. 4 2
      tests/datawizard/interfaces/matrix/matrix_interface.c
  32. 10 5
      tests/datawizard/interfaces/multiformat/advanced/generic.c
  33. 2 1
      tests/datawizard/interfaces/multiformat/advanced/generic.h
  34. 8 4
      tests/datawizard/interfaces/multiformat/multiformat_conversion_codelets.c
  35. 6 3
      tests/datawizard/interfaces/multiformat/multiformat_interface.c
  36. 4 2
      tests/datawizard/interfaces/multiformat/multiformat_types.h
  37. 8 4
      tests/datawizard/interfaces/test_interfaces.c
  38. 2 1
      tests/datawizard/interfaces/test_interfaces.h
  39. 4 2
      tests/datawizard/interfaces/vector/test_vector_cuda.cu
  40. 8 4
      tests/datawizard/interfaces/vector/test_vector_interface.c
  41. 4 2
      tests/datawizard/lazy_allocation.c
  42. 6 3
      tests/datawizard/manual_reduction.c
  43. 4 2
      tests/datawizard/mpi_like.c
  44. 12 6
      tests/datawizard/mpi_like_async.c
  45. 2 1
      tests/datawizard/readers_and_writers.c
  46. 2 1
      tests/datawizard/reclaim.c
  47. 2 1
      tests/datawizard/scratch.c
  48. 6 3
      tests/datawizard/sync_and_notify_data.c
  49. 6 3
      tests/datawizard/sync_and_notify_data_implicit.c
  50. 8 4
      tests/datawizard/sync_with_data_with_mem.c
  51. 6 3
      tests/datawizard/sync_with_data_with_mem_non_blocking.c
  52. 6 3
      tests/datawizard/sync_with_data_with_mem_non_blocking_implicit.c
  53. 4 2
      tests/datawizard/unpartition.c
  54. 2 1
      tests/datawizard/user_interaction_implicit.c
  55. 4 2
      tests/datawizard/write_only_tmp_buffer.c
  56. 2 1
      tests/errorcheck/starpu_init_noworker.c
  57. 18 9
      tests/experiments/bandwidth_cuda/cuda_bandwidth.c
  58. 4 2
      tests/experiments/latency/cuda_latency.c
  59. 4 2
      tests/heat/deps.r
  60. 6 3
      tests/heat/granularity.r
  61. 12 6
      tests/heat/granularity_model.r
  62. 4 2
      tests/heat/model.r
  63. 6 3
      tests/heat/perturbate.r
  64. 4 2
      tests/heat/random.r
  65. 4 2
      tests/heat/sched.r
  66. 4 2
      tests/loader.c
  67. 6 3
      tests/microbenchs/async_tasks_overhead.c
  68. 2 1
      tests/microbenchs/local_pingpong.c
  69. 4 4
      tests/microbenchs/prefetch_data_on_node.c
  70. 2 1
      tests/microbenchs/redundant_buffer.c
  71. 15 13
      tests/microbenchs/starpu_check.sh
  72. 4 2
      tests/microbenchs/sync_tasks_overhead.c
  73. 4 2
      tests/microbenchs/tasks_overhead.c
  74. 8 4
      tests/mult/random.r
  75. 11 6
      tests/mult/sched.r
  76. 2 1
      tests/opt/datawizard/wt_broadcast.c
  77. 2 1
      tests/opt/datawizard/wt_host.c
  78. 4 2
      tests/overlap/overlap.c
  79. 4 2
      tests/parallel_tasks/explicit_combined_worker.c
  80. 6 3
      tests/parallel_tasks/parallel_kernels.c
  81. 6 3
      tests/parallel_tasks/parallel_kernels_spmd.c
  82. 2 1
      tests/parallel_tasks/spmd_pgreedy.c
  83. 2 1
      tests/perfmodels/non_linear_regression_based.c
  84. 10 5
      tests/perfmodels/regression_based.c

+ 6 - 3
tests/cholesky/prio.r

@@ -32,7 +32,8 @@ parse <- function (size, sched)
 	filename = paste("timings_sched/sched", sched, size, sep=".");
 	filename = paste("timings_sched/sched", sched, size, sep=".");
 
 
 	if (file.exists(filename))
 	if (file.exists(filename))
-	{	ret <- scan(paste("timings_sched/sched", sched, size, sep="."));
+	{
+		ret <- scan(paste("timings_sched/sched", sched, size, sep="."));
 		return(ret);
 		return(ret);
 	};
 	};
 
 
@@ -52,7 +53,8 @@ handle_sched <- function(sched)
 	gflopstab <- NULL;
 	gflopstab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- handle_size(size, sched);
 		list <- handle_size(size, sched);
 		gflopstab <- c(gflopstab, list);
 		gflopstab <- c(gflopstab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));
@@ -68,7 +70,8 @@ handle_sched_mean <- function(sched)
 	meantab <- NULL;
 	meantab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- mean(handle_size(size, sched));
 		list <- mean(handle_size(size, sched));
 		meantab <- c(meantab, list);
 		meantab <- c(meantab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));

+ 6 - 3
tests/cholesky/sched.r

@@ -32,7 +32,8 @@ parse <- function (size, sched)
 	filename = paste("timings_sched/sched", sched, size, sep=".");
 	filename = paste("timings_sched/sched", sched, size, sep=".");
 
 
 	if (file.exists(filename))
 	if (file.exists(filename))
-	{	ret <- scan(paste("timings_sched/sched", sched, size, sep="."));
+	{
+		ret <- scan(paste("timings_sched/sched", sched, size, sep="."));
 		return(ret);
 		return(ret);
 	};
 	};
 
 
@@ -52,7 +53,8 @@ handle_sched <- function(sched)
 	gflopstab <- NULL;
 	gflopstab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- handle_size(size, sched);
 		list <- handle_size(size, sched);
 		gflopstab <- c(gflopstab, list);
 		gflopstab <- c(gflopstab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));
@@ -68,7 +70,8 @@ handle_sched_mean <- function(sched)
 	meantab <- NULL;
 	meantab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- mean(handle_size(size, sched));
 		list <- mean(handle_size(size, sched));
 		meantab <- c(meantab, list);
 		meantab <- c(meantab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));

+ 2 - 1
tests/core/empty_task.c

@@ -35,7 +35,8 @@ static void parse_args(int argc, char **argv)
 {
 {
 	int c;
 	int c;
 	while ((c = getopt(argc, argv, "i:t:h")) != -1)
 	while ((c = getopt(argc, argv, "i:t:h")) != -1)
-	switch(c) {
+	switch(c)
+	{
 		case 'i':
 		case 'i':
 			ntasks = atoi(optarg);
 			ntasks = atoi(optarg);
 			break;
 			break;

+ 4 - 2
tests/core/execute_on_a_specific_worker.c

@@ -62,7 +62,8 @@ static enum starpu_access_mode select_random_mode(void)
 {
 {
 	int r = rand();
 	int r = rand();
 
 
-	switch (r % 3) {
+	switch (r % 3)
+	{
 		case 0:
 		case 0:
 			return STARPU_R;
 			return STARPU_R;
 		case 1:
 		case 1:
@@ -74,7 +75,8 @@ static enum starpu_access_mode select_random_mode(void)
 }
 }
 
 
 
 
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.cpu_funcs = {codelet_null, NULL},
 	.cpu_funcs = {codelet_null, NULL},
 	.cuda_funcs = {codelet_null, NULL},
 	.cuda_funcs = {codelet_null, NULL},

+ 2 - 1
tests/core/get_current_task.c

@@ -37,7 +37,8 @@ static void check_task_callback(void *arg)
 	STARPU_ASSERT(task == starpu_get_current_task());
 	STARPU_ASSERT(task == starpu_get_current_task());
 }
 }
 
 
-static struct starpu_codelet dummy_cl = {
+static struct starpu_codelet dummy_cl =
+{
 	.where = STARPU_CUDA|STARPU_CPU,
 	.where = STARPU_CUDA|STARPU_CPU,
 	.cuda_funcs = {check_task_func, NULL},
 	.cuda_funcs = {check_task_func, NULL},
 	.cpu_funcs = {check_task_func, NULL},
 	.cpu_funcs = {check_task_func, NULL},

+ 10 - 5
tests/core/insert_task.c

@@ -29,7 +29,8 @@ void func_cpu(void *descr[], void *_args)
         *x1 = *x1 * ffactor;
         *x1 = *x1 * ffactor;
 }
 }
 
 
-struct starpu_codelet mycodelet = {
+struct starpu_codelet mycodelet =
+{
 	.where = STARPU_CPU,
 	.where = STARPU_CPU,
 	.cpu_funcs = {func_cpu, NULL},
 	.cpu_funcs = {func_cpu, NULL},
         .nbuffers = 2
         .nbuffers = 2
@@ -64,13 +65,15 @@ int main(int argc, char **argv)
         ret = starpu_task_wait_for_all();
         ret = starpu_task_wait_for_all();
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_wait_for_all");
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_wait_for_all");
 
 
-        for(i=0 ; i<2 ; i++) {
+        for(i=0 ; i<2 ; i++)
+	{
                 ret = starpu_data_acquire(data_handles[i], STARPU_R);
                 ret = starpu_data_acquire(data_handles[i], STARPU_R);
 		STARPU_CHECK_RETURN_VALUE(ret, "starpu_data_acquire");
 		STARPU_CHECK_RETURN_VALUE(ret, "starpu_data_acquire");
         }
         }
         FPRINTF(stderr, "VALUES: %d %f\n", x, f);
         FPRINTF(stderr, "VALUES: %d %f\n", x, f);
 
 
-        for(i=0 ; i<2 ; i++) {
+        for(i=0 ; i<2 ; i++)
+	{
                 starpu_data_release(data_handles[i]);
                 starpu_data_release(data_handles[i]);
         }
         }
 
 
@@ -96,13 +99,15 @@ int main(int argc, char **argv)
         ret = starpu_task_wait_for_all();
         ret = starpu_task_wait_for_all();
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_wait_for_all");
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_wait_for_all");
 
 
-        for(i=0 ; i<2 ; i++) {
+        for(i=0 ; i<2 ; i++)
+	{
                 ret = starpu_data_acquire(data_handles[i], STARPU_R);
                 ret = starpu_data_acquire(data_handles[i], STARPU_R);
 		STARPU_CHECK_RETURN_VALUE(ret, "starpu_data_acquire");
 		STARPU_CHECK_RETURN_VALUE(ret, "starpu_data_acquire");
         }
         }
         FPRINTF(stderr, "VALUES: %d %f\n", x, f);
         FPRINTF(stderr, "VALUES: %d %f\n", x, f);
 
 
-        for(i=0 ; i<2 ; i++) {
+        for(i=0 ; i<2 ; i++)
+	{
                 starpu_data_release(data_handles[i]);
                 starpu_data_release(data_handles[i]);
 		starpu_data_unregister(data_handles[i]);
 		starpu_data_unregister(data_handles[i]);
         }
         }

+ 16 - 8
tests/core/multiformat_data_release.c

@@ -26,7 +26,8 @@ static starpu_data_handle_t handle;
 #define ENTER() do { FPRINTF(stderr, "Entering %s\n", __func__); } while (0)
 #define ENTER() do { FPRINTF(stderr, "Entering %s\n", __func__); } while (0)
 
 
 /* Counting the calls to the codelets */
 /* Counting the calls to the codelets */
-struct stats {
+struct stats
+{
 	unsigned int cpu;
 	unsigned int cpu;
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	unsigned int cuda;
 	unsigned int cuda;
@@ -56,13 +57,15 @@ static void cuda_to_cpu_func(void *buffers[], void *args)
 	global_stats.cuda_to_cpu++;
 	global_stats.cuda_to_cpu++;
 }
 }
 
 
-static struct starpu_codelet cpu_to_cuda_cl = {
+static struct starpu_codelet cpu_to_cuda_cl =
+{
 	.where = STARPU_CUDA,
 	.where = STARPU_CUDA,
 	.cuda_funcs = {cpu_to_cuda_func, NULL},
 	.cuda_funcs = {cpu_to_cuda_func, NULL},
 	.nbuffers = 1
 	.nbuffers = 1
 };
 };
 
 
-static struct starpu_codelet cuda_to_cpu_cl = {
+static struct starpu_codelet cuda_to_cpu_cl =
+{
 	.where = STARPU_CPU,
 	.where = STARPU_CPU,
 	.cpu_funcs = {cuda_to_cpu_func, NULL},
 	.cpu_funcs = {cuda_to_cpu_func, NULL},
 	.nbuffers = 1
 	.nbuffers = 1
@@ -82,20 +85,23 @@ static void opencl_to_cpu_func(void *buffers[], void *args)
 	global_stats.opencl_to_cpu++;
 	global_stats.opencl_to_cpu++;
 }
 }
 
 
-static struct starpu_codelet cpu_to_opencl_cl = {
+static struct starpu_codelet cpu_to_opencl_cl =
+{
 	.where = STARPU_OPENCL,
 	.where = STARPU_OPENCL,
 	.opencl_funcs = {cpu_to_opencl_func, NULL},
 	.opencl_funcs = {cpu_to_opencl_func, NULL},
 	.nbuffers = 1
 	.nbuffers = 1
 };
 };
 
 
-static struct starpu_codelet opencl_to_cpu_cl = {
+static struct starpu_codelet opencl_to_cpu_cl =
+{
 	.where = STARPU_CPU,
 	.where = STARPU_CPU,
 	.cpu_funcs = {opencl_to_cpu_func, NULL},
 	.cpu_funcs = {opencl_to_cpu_func, NULL},
 	.nbuffers = 1
 	.nbuffers = 1
 };
 };
 #endif /* !STARPU_USE_OPENCL */
 #endif /* !STARPU_USE_OPENCL */
 
 
-static struct starpu_multiformat_data_interface_ops ops = {
+static struct starpu_multiformat_data_interface_ops ops =
+{
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	.cuda_elemsize = sizeof(int),
 	.cuda_elemsize = sizeof(int),
 	.cpu_to_cuda_cl = &cpu_to_cuda_cl,
 	.cpu_to_cuda_cl = &cpu_to_cuda_cl,
@@ -144,7 +150,8 @@ static void opencl_func(void *buffers[], void *args)
 static void
 static void
 create_and_submit(int where)
 create_and_submit(int where)
 {
 {
-	static struct starpu_codelet cl = {
+	static struct starpu_codelet cl =
+	{
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 		.cuda_funcs   = {cuda_func, NULL},
 		.cuda_funcs   = {cuda_func, NULL},
 #endif
 #endif
@@ -265,7 +272,8 @@ main(void)
 {
 {
 #ifdef STARPU_USE_CPU
 #ifdef STARPU_USE_CPU
 	int ret;
 	int ret;
-	struct starpu_conf conf = {
+	struct starpu_conf conf =
+	{
 		.ncpus = -1,
 		.ncpus = -1,
 		.ncuda = 1,
 		.ncuda = 1,
 		.nopencl = 1
 		.nopencl = 1

+ 20 - 10
tests/core/multiformat_handle_conversion.c

@@ -32,7 +32,8 @@
 
 
 
 
 /* Counting the calls to the codelets */
 /* Counting the calls to the codelets */
-struct stats {
+struct stats
+{
 	unsigned int cpu;
 	unsigned int cpu;
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	unsigned int cuda;
 	unsigned int cuda;
@@ -62,13 +63,15 @@ static void cuda_to_cpu_func(void *buffers[], void *args)
 	global_stats.cuda_to_cpu++;
 	global_stats.cuda_to_cpu++;
 }
 }
 
 
-struct starpu_codelet cpu_to_cuda_cl = {
+struct starpu_codelet cpu_to_cuda_cl =
+{
 	.where = STARPU_CUDA,
 	.where = STARPU_CUDA,
 	.cuda_funcs = {cpu_to_cuda_func, NULL},
 	.cuda_funcs = {cpu_to_cuda_func, NULL},
 	.nbuffers = 1
 	.nbuffers = 1
 };
 };
 
 
-struct starpu_codelet cuda_to_cpu_cl = {
+struct starpu_codelet cuda_to_cpu_cl =
+{
 	.where = STARPU_CPU,
 	.where = STARPU_CPU,
 	.cpu_funcs = {cuda_to_cpu_func, NULL},
 	.cpu_funcs = {cuda_to_cpu_func, NULL},
 	.nbuffers = 1
 	.nbuffers = 1
@@ -88,20 +91,23 @@ static void opencl_to_cpu_func(void *buffers[], void *args)
 	global_stats.opencl_to_cpu++;
 	global_stats.opencl_to_cpu++;
 }
 }
 
 
-struct starpu_codelet cpu_to_opencl_cl = {
+struct starpu_codelet cpu_to_opencl_cl =
+{
 	.where = STARPU_OPENCL,
 	.where = STARPU_OPENCL,
 	.opencl_funcs = {cpu_to_opencl_func, NULL},
 	.opencl_funcs = {cpu_to_opencl_func, NULL},
 	.nbuffers = 1
 	.nbuffers = 1
 };
 };
 
 
-struct starpu_codelet opencl_to_cpu_cl = {
+struct starpu_codelet opencl_to_cpu_cl =
+{
 	.where = STARPU_CPU,
 	.where = STARPU_CPU,
 	.cpu_funcs = {opencl_to_cpu_func, NULL},
 	.cpu_funcs = {opencl_to_cpu_func, NULL},
 	.nbuffers = 1
 	.nbuffers = 1
 };
 };
 #endif /* !STARPU_USE_OPENCL */
 #endif /* !STARPU_USE_OPENCL */
 
 
-static struct starpu_multiformat_data_interface_ops ops = {
+static struct starpu_multiformat_data_interface_ops ops =
+{
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	.cuda_elemsize = sizeof(int),
 	.cuda_elemsize = sizeof(int),
 	.cpu_to_cuda_cl = &cpu_to_cuda_cl,
 	.cpu_to_cuda_cl = &cpu_to_cuda_cl,
@@ -142,7 +148,8 @@ static void
 create_and_submit_tasks(int where, starpu_data_handle_t handles[])
 create_and_submit_tasks(int where, starpu_data_handle_t handles[])
 {
 {
 	FPRINTF(stderr, "***** Starting Task 1\n");
 	FPRINTF(stderr, "***** Starting Task 1\n");
-	static struct starpu_codelet cl = {
+	static struct starpu_codelet cl =
+	{
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 		.cuda_funcs  = {cuda_func, NULL},
 		.cuda_funcs  = {cuda_func, NULL},
 #endif
 #endif
@@ -161,7 +168,8 @@ create_and_submit_tasks(int where, starpu_data_handle_t handles[])
 	starpu_task_submit(task);
 	starpu_task_submit(task);
 
 
 	FPRINTF(stderr, "***** Starting Task 2\n");
 	FPRINTF(stderr, "***** Starting Task 2\n");
-	static struct starpu_codelet cl2 = {
+	static struct starpu_codelet cl2 =
+	{
 		.where = STARPU_CPU,
 		.where = STARPU_CPU,
 		.cpu_funcs = {cpu_func, NULL},
 		.cpu_funcs = {cpu_func, NULL},
 		.nbuffers = 1
 		.nbuffers = 1
@@ -176,7 +184,8 @@ create_and_submit_tasks(int where, starpu_data_handle_t handles[])
 
 
 
 
 	FPRINTF(stderr, "***** Starting Task 3\n");
 	FPRINTF(stderr, "***** Starting Task 3\n");
-	static struct starpu_codelet cl3 = {
+	static struct starpu_codelet cl3 =
+	{
 		.cpu_funcs   = {cpu_func, NULL},
 		.cpu_funcs   = {cpu_func, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 		.cuda_funcs   = {cuda_func, NULL},
 		.cuda_funcs   = {cuda_func, NULL},
@@ -303,7 +312,8 @@ main(void)
 {
 {
 #ifdef STARPU_USE_CPU
 #ifdef STARPU_USE_CPU
 	int ret;
 	int ret;
-	struct starpu_conf conf = {
+	struct starpu_conf conf =
+	{
 		.ncpus   = -1,
 		.ncpus   = -1,
 		.ncuda   = 2,
 		.ncuda   = 2,
 		.nopencl = 1
 		.nopencl = 1

+ 2 - 1
tests/core/multithreaded.c

@@ -77,7 +77,8 @@ static void parse_args(int argc, char **argv)
 {
 {
 	int c;
 	int c;
 	while ((c = getopt(argc, argv, "i:t:h")) != -1)
 	while ((c = getopt(argc, argv, "i:t:h")) != -1)
-	switch(c) {
+	switch(c)
+	{
 		case 'i':
 		case 'i':
 			ntasks = atoi(optarg);
 			ntasks = atoi(optarg);
 			break;
 			break;

+ 2 - 1
tests/core/regenerate.c

@@ -65,7 +65,8 @@ static void parse_args(int argc, char **argv)
 {
 {
 	int c;
 	int c;
 	while ((c = getopt(argc, argv, "i:")) != -1)
 	while ((c = getopt(argc, argv, "i:")) != -1)
-	switch(c) {
+	switch(c)
+	{
 		case 'i':
 		case 'i':
 			ntasks = atoi(optarg);
 			ntasks = atoi(optarg);
 			break;
 			break;

+ 2 - 1
tests/core/starpu_task_wait.c

@@ -49,7 +49,8 @@ static void parse_args(int argc, char **argv)
 {
 {
 	int c;
 	int c;
 	while ((c = getopt(argc, argv, "i:t:h")) != -1)
 	while ((c = getopt(argc, argv, "i:t:h")) != -1)
-	switch(c) {
+	switch(c)
+	{
 		case 'i':
 		case 'i':
 			ntasks = atoi(optarg);
 			ntasks = atoi(optarg);
 			break;
 			break;

+ 4 - 2
tests/core/starpu_task_wait_for_all.c

@@ -69,7 +69,8 @@ static int inject_one_task(void)
 	return ret;
 	return ret;
 }
 }
 
 
-static struct starpu_conf conf = {
+static struct starpu_conf conf =
+{
 	.sched_policy_name = NULL,
 	.sched_policy_name = NULL,
 	.ncpus = -1,
 	.ncpus = -1,
 	.ncuda = -1,
 	.ncuda = -1,
@@ -91,7 +92,8 @@ static void parse_args(int argc, char **argv)
 {
 {
 	int c;
 	int c;
 	while ((c = getopt(argc, argv, "i:p:h")) != -1)
 	while ((c = getopt(argc, argv, "i:p:h")) != -1)
-	switch(c) {
+	switch(c)
+	{
 		case 'i':
 		case 'i':
 			ntasks = atoi(optarg);
 			ntasks = atoi(optarg);
 			break;
 			break;

+ 2 - 1
tests/core/static_restartable.c

@@ -42,7 +42,8 @@ static void parse_args(int argc, char **argv)
 {
 {
 	int c;
 	int c;
 	while ((c = getopt(argc, argv, "i:")) != -1)
 	while ((c = getopt(argc, argv, "i:")) != -1)
-	switch(c) {
+	switch(c)
+	{
 		case 'i':
 		case 'i':
 			ntasks = atoi(optarg);
 			ntasks = atoi(optarg);
 			break;
 			break;

+ 2 - 1
tests/core/static_restartable_tag.c

@@ -43,7 +43,8 @@ static void parse_args(int argc, char **argv)
 {
 {
 	int c;
 	int c;
 	while ((c = getopt(argc, argv, "i:")) != -1)
 	while ((c = getopt(argc, argv, "i:")) != -1)
-	switch(c) {
+	switch(c)
+	{
 		case 'i':
 		case 'i':
 			ntasks = atoi(optarg);
 			ntasks = atoi(optarg);
 			break;
 			break;

+ 2 - 1
tests/core/static_restartable_using_initializer.c

@@ -45,7 +45,8 @@ static void parse_args(int argc, char **argv)
 {
 {
 	int c;
 	int c;
 	while ((c = getopt(argc, argv, "i:")) != -1)
 	while ((c = getopt(argc, argv, "i:")) != -1)
-	switch(c) {
+	switch(c)
+	{
 		case 'i':
 		case 'i':
 			ntasks = atoi(optarg);
 			ntasks = atoi(optarg);
 			break;
 			break;

+ 2 - 1
tests/core/subgraph_repeat.c

@@ -71,7 +71,8 @@ static void callback_task_D(void *arg __attribute__((unused)))
 		_STARPU_PTHREAD_COND_SIGNAL(&cond);
 		_STARPU_PTHREAD_COND_SIGNAL(&cond);
 		_STARPU_PTHREAD_MUTEX_UNLOCK(&mutex);
 		_STARPU_PTHREAD_MUTEX_UNLOCK(&mutex);
 	}
 	}
-	else {
+	else
+	{
 		int ret;
 		int ret;
 
 
 		/* Let's go for another iteration */
 		/* Let's go for another iteration */

+ 2 - 1
tests/core/subgraph_repeat_regenerate.c

@@ -72,7 +72,8 @@ static void callback_task_D(void *arg __attribute__((unused)))
 		_STARPU_PTHREAD_COND_SIGNAL(&cond);
 		_STARPU_PTHREAD_COND_SIGNAL(&cond);
 		_STARPU_PTHREAD_MUTEX_UNLOCK(&mutex);
 		_STARPU_PTHREAD_MUTEX_UNLOCK(&mutex);
 	}
 	}
-	else {
+	else
+	{
 		int ret;
 		int ret;
 		/* Let's go for another iteration */
 		/* Let's go for another iteration */
 		ret = starpu_task_submit(&taskA);
 		ret = starpu_task_submit(&taskA);

+ 4 - 2
tests/core/wait_all_regenerable_tasks.c

@@ -53,7 +53,8 @@ static void parse_args(int argc, char **argv)
 {
 {
 	int c;
 	int c;
 	while ((c = getopt(argc, argv, "i:")) != -1)
 	while ((c = getopt(argc, argv, "i:")) != -1)
-	switch(c) {
+	switch(c)
+	{
 		case 'i':
 		case 'i':
 			ntasks = atoi(optarg);
 			ntasks = atoi(optarg);
 			break;
 			break;
@@ -95,7 +96,8 @@ int main(int argc, char **argv)
 
 
 	gettimeofday(&start, NULL);
 	gettimeofday(&start, NULL);
 	
 	
-	for (i = 0; i < K; i++) {
+	for (i = 0; i < K; i++)
+	{
 		ret = starpu_task_submit(&task[i]);
 		ret = starpu_task_submit(&task[i]);
 		if (ret == -ENODEV) goto enodev;
 		if (ret == -ENODEV) goto enodev;
 		STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_submit");
 		STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_submit");

+ 10 - 5
tests/datawizard/acquire_cb_insert.c

@@ -29,7 +29,8 @@ void which_index_cpu(void *descr[], void *_args)
 	*x0 = X;
 	*x0 = X;
 }
 }
 
 
-struct starpu_codelet which_index = {
+struct starpu_codelet which_index =
+{
 	.where = STARPU_CPU,
 	.where = STARPU_CPU,
 	.cpu_funcs = {which_index_cpu, NULL},
 	.cpu_funcs = {which_index_cpu, NULL},
         .nbuffers = 1
         .nbuffers = 1
@@ -44,7 +45,8 @@ void work_cpu(void *descr[], void *_args)
 		x0[i] = i + 1;
 		x0[i] = i + 1;
 }
 }
 
 
-struct starpu_codelet work = {
+struct starpu_codelet work =
+{
 	.where = STARPU_CPU,
 	.where = STARPU_CPU,
 	.cpu_funcs = {work_cpu, NULL},
 	.cpu_funcs = {work_cpu, NULL},
         .nbuffers = 1
         .nbuffers = 1
@@ -53,7 +55,8 @@ struct starpu_codelet work = {
 static int x;
 static int x;
 static starpu_data_handle_t x_handle, f_handle;
 static starpu_data_handle_t x_handle, f_handle;
 
 
-void callback(void *arg) {
+void callback(void *arg)
+{
 	starpu_insert_task(&work, STARPU_W, starpu_data_get_sub_data(f_handle, 1, x), 0);
 	starpu_insert_task(&work, STARPU_W, starpu_data_get_sub_data(f_handle, 1, x), 0);
 	starpu_data_release(x_handle);
 	starpu_data_release(x_handle);
 }
 }
@@ -76,7 +79,8 @@ int main(int argc, char **argv)
 	starpu_vector_data_register(&f_handle, 0, (uintptr_t)f, N, sizeof(*f));
 	starpu_vector_data_register(&f_handle, 0, (uintptr_t)f, N, sizeof(*f));
 
 
 	/* Partition f */
 	/* Partition f */
-	struct starpu_data_filter filter = {
+	struct starpu_data_filter filter =
+	{
 		.filter_func = starpu_block_filter_func_vector,
 		.filter_func = starpu_block_filter_func_vector,
 		.nchildren = M,
 		.nchildren = M,
 	};
 	};
@@ -106,7 +110,8 @@ int main(int argc, char **argv)
 
 
         FPRINTF(stderr, "VALUES: %d", x);
         FPRINTF(stderr, "VALUES: %d", x);
 
 
-        for(i=0 ; i<N ; i++) {
+        for(i=0 ; i<N ; i++)
+	{
 		FPRINTF(stderr, " %f", f[i]);
 		FPRINTF(stderr, " %f", f[i]);
         }
         }
 
 

+ 2 - 1
tests/datawizard/acquire_release.c

@@ -30,7 +30,8 @@ void increment_cpu(void *descr[], __attribute__ ((unused)) void *_args)
 	(*tokenptr)++;
 	(*tokenptr)++;
 }
 }
 
 
-static struct starpu_codelet increment_cl = {
+static struct starpu_codelet increment_cl =
+{
         .where = STARPU_CPU|STARPU_CUDA,
         .where = STARPU_CPU|STARPU_CUDA,
 	.cpu_funcs = {increment_cpu, NULL},
 	.cpu_funcs = {increment_cpu, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA

+ 2 - 1
tests/datawizard/acquire_release2.c

@@ -29,7 +29,8 @@ void increment_cpu(void *descr[], __attribute__ ((unused)) void *_args)
 	(*tokenptr)++;
 	(*tokenptr)++;
 }
 }
 
 
-static struct starpu_codelet increment_cl = {
+static struct starpu_codelet increment_cl =
+{
         .where = STARPU_CPU|STARPU_CUDA,
         .where = STARPU_CPU|STARPU_CUDA,
 	.cpu_funcs = {increment_cpu, NULL},
 	.cpu_funcs = {increment_cpu, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA

+ 2 - 1
tests/datawizard/critical_section_with_void_interface.c

@@ -32,7 +32,8 @@ static void critical_section(void *descr[], __attribute__ ((unused)) void *_args
 	critical_var++;
 	critical_var++;
 }
 }
 
 
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.cpu_funcs = {critical_section, NULL},
 	.cpu_funcs = {critical_section, NULL},
 	.cuda_funcs = {critical_section, NULL},
 	.cuda_funcs = {critical_section, NULL},

+ 6 - 3
tests/datawizard/data_implicit_deps.c

@@ -34,7 +34,8 @@ static void f(void *descr[], __attribute__ ((unused)) void *_args)
 	usleep(200000);
 	usleep(200000);
 }
 }
 
 
-static struct starpu_codelet cl_f = {
+static struct starpu_codelet cl_f =
+{
 	.where = STARPU_CPU|STARPU_CUDA,
 	.where = STARPU_CPU|STARPU_CUDA,
 	.cpu_funcs = {f, NULL},
 	.cpu_funcs = {f, NULL},
 	.cuda_funcs = {f, NULL},
 	.cuda_funcs = {f, NULL},
@@ -47,7 +48,8 @@ static void g(void *descr[], __attribute__ ((unused)) void *_args)
 	var = 42;
 	var = 42;
 }
 }
 
 
-static struct starpu_codelet cl_g = {
+static struct starpu_codelet cl_g =
+{
 	.where = STARPU_CPU|STARPU_CUDA,
 	.where = STARPU_CPU|STARPU_CUDA,
 	.cpu_funcs = {g, NULL},
 	.cpu_funcs = {g, NULL},
 	.cuda_funcs = {g, NULL},
 	.cuda_funcs = {g, NULL},
@@ -60,7 +62,8 @@ static void h(void *descr[], __attribute__ ((unused)) void *_args)
 	STARPU_ASSERT(var == 42);
 	STARPU_ASSERT(var == 42);
 }
 }
 
 
-static struct starpu_codelet cl_h = {
+static struct starpu_codelet cl_h =
+{
 	.where = STARPU_CPU|STARPU_CUDA,
 	.where = STARPU_CPU|STARPU_CUDA,
 	.cpu_funcs = {h, NULL},
 	.cpu_funcs = {h, NULL},
 	.cuda_funcs = {h, NULL},
 	.cuda_funcs = {h, NULL},

+ 4 - 2
tests/datawizard/data_invalidation.c

@@ -50,7 +50,8 @@ static void cpu_memset_codelet(void *descr[], __attribute__ ((unused)) void *_ar
 	memset(buf, 42, length);
 	memset(buf, 42, length);
 }
 }
 
 
-static struct starpu_codelet memset_cl = {
+static struct starpu_codelet memset_cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA,
 	.where = STARPU_CPU|STARPU_CUDA,
 	.cpu_funcs = {cpu_memset_codelet, NULL},
 	.cpu_funcs = {cpu_memset_codelet, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
@@ -79,7 +80,8 @@ static void cpu_check_content_codelet(void *descr[], __attribute__ ((unused)) vo
 	}
 	}
 }
 }
 
 
-static struct starpu_codelet check_content_cl = {
+static struct starpu_codelet check_content_cl =
+{
 	.where = STARPU_CPU,
 	.where = STARPU_CPU,
 	.cpu_funcs = {cpu_check_content_codelet, NULL},
 	.cpu_funcs = {cpu_check_content_codelet, NULL},
 	.nbuffers = 1
 	.nbuffers = 1

+ 2 - 1
tests/datawizard/data_lookup.c

@@ -35,7 +35,8 @@ static void task(void **buffers, void *args)
 	}
 	}
 }
 }
 
 
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU,
 	.where = STARPU_CPU,
 	.cpu_funcs = {task, NULL},
 	.cpu_funcs = {task, NULL},
 	.nbuffers = 1
 	.nbuffers = 1

+ 2 - 1
tests/datawizard/dining_philosophers.c

@@ -28,7 +28,8 @@ static void eat_kernel(void *descr[], void *arg)
 {
 {
 }
 }
 
 
-static struct starpu_codelet eating_cl = {
+static struct starpu_codelet eating_cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.cuda_funcs = {eat_kernel, NULL},
 	.cuda_funcs = {eat_kernel, NULL},
 	.cpu_funcs = {eat_kernel, NULL},
 	.cpu_funcs = {eat_kernel, NULL},

+ 4 - 2
tests/datawizard/dsm_stress.c

@@ -69,7 +69,8 @@ static enum starpu_access_mode select_random_mode(void)
 {
 {
 	int r = rand();
 	int r = rand();
 
 
-	switch (r % 3) {
+	switch (r % 3)
+	{
 		case 0:
 		case 0:
 			return STARPU_R;
 			return STARPU_R;
 		case 1:
 		case 1:
@@ -81,7 +82,8 @@ static enum starpu_access_mode select_random_mode(void)
 }
 }
 
 
 
 
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.cpu_funcs = {cpu_codelet_null, NULL},
 	.cpu_funcs = {cpu_codelet_null, NULL},
 	.cuda_funcs = {cuda_codelet_null, NULL},
 	.cuda_funcs = {cuda_codelet_null, NULL},

+ 2 - 1
tests/datawizard/handle_to_pointer.c

@@ -52,7 +52,8 @@ static void cuda_task(void **buffers, void *args)
 }
 }
 #endif
 #endif
 
 
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU | STARPU_CUDA,
 	.where = STARPU_CPU | STARPU_CUDA,
 	.cpu_funcs = {cpu_task, NULL},
 	.cpu_funcs = {cpu_task, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA

+ 6 - 3
tests/datawizard/increment_redux.c

@@ -110,7 +110,8 @@ static void neutral_cpu_kernel(void *descr[], void *arg)
 	*dst = 0;
 	*dst = 0;
 }
 }
 
 
-static struct starpu_codelet redux_cl = {
+static struct starpu_codelet redux_cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {redux_cuda_kernel, NULL},
 	.cuda_funcs = {redux_cuda_kernel, NULL},
@@ -122,7 +123,8 @@ static struct starpu_codelet redux_cl = {
 	.nbuffers = 2
 	.nbuffers = 2
 };
 };
 
 
-static struct starpu_codelet neutral_cl = {
+static struct starpu_codelet neutral_cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA,
 	.where = STARPU_CPU|STARPU_CUDA,
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {neutral_cuda_kernel, NULL},
 	.cuda_funcs = {neutral_cuda_kernel, NULL},
@@ -178,7 +180,8 @@ static void increment_cpu_kernel(void *descr[], void *arg)
 	*tokenptr = *tokenptr + 1;
 	*tokenptr = *tokenptr + 1;
 }
 }
 
 
-static struct starpu_codelet increment_cl = {
+static struct starpu_codelet increment_cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {increment_cuda_kernel, NULL},
 	.cuda_funcs = {increment_cuda_kernel, NULL},

+ 6 - 3
tests/datawizard/increment_redux_v2.c

@@ -109,7 +109,8 @@ static void neutral_cpu_kernel(void *descr[], void *arg)
 	*dst = 0;
 	*dst = 0;
 }
 }
 
 
-static struct starpu_codelet redux_cl = {
+static struct starpu_codelet redux_cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {redux_cuda_kernel, NULL},
 	.cuda_funcs = {redux_cuda_kernel, NULL},
@@ -121,7 +122,8 @@ static struct starpu_codelet redux_cl = {
 	.nbuffers = 2
 	.nbuffers = 2
 };
 };
 
 
-static struct starpu_codelet neutral_cl = {
+static struct starpu_codelet neutral_cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA,
 	.where = STARPU_CPU|STARPU_CUDA,
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {neutral_cuda_kernel, NULL},
 	.cuda_funcs = {neutral_cuda_kernel, NULL},
@@ -177,7 +179,8 @@ static void increment_cpu_kernel(void *descr[], void *arg)
 	*tokenptr = *tokenptr + 1;
 	*tokenptr = *tokenptr + 1;
 }
 }
 
 
-static struct starpu_codelet increment_cl = {
+static struct starpu_codelet increment_cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {increment_cuda_kernel, NULL},
 	.cuda_funcs = {increment_cuda_kernel, NULL},

+ 4 - 2
tests/datawizard/interfaces/matrix/matrix_interface.c

@@ -34,7 +34,8 @@ extern void test_matrix_opencl_func(void *buffers[], void *args);
 static starpu_data_handle_t matrix_handle;
 static starpu_data_handle_t matrix_handle;
 static starpu_data_handle_t matrix2_handle;
 static starpu_data_handle_t matrix2_handle;
 
 
-struct test_config matrix_config = {
+struct test_config matrix_config =
+{
 #ifdef STARPU_USE_CPU
 #ifdef STARPU_USE_CPU
 	.cpu_func      = test_matrix_cpu_func,
 	.cpu_func      = test_matrix_cpu_func,
 #endif /* ! STARPU_USE_CPU */
 #endif /* ! STARPU_USE_CPU */
@@ -112,7 +113,8 @@ int
 main(void)
 main(void)
 {
 {
 	data_interface_test_summary *summary;
 	data_interface_test_summary *summary;
-	struct starpu_conf conf = {
+	struct starpu_conf conf =
+	{
 		.ncpus   = -1,
 		.ncpus   = -1,
 		.ncuda   = 2,
 		.ncuda   = 2,
 		.nopencl = 1
 		.nopencl = 1

+ 10 - 5
tests/datawizard/interfaces/multiformat/advanced/generic.c

@@ -35,13 +35,15 @@ void cuda_to_cpu_func(void *buffers[], void *args)
 	global_stats.cuda_to_cpu++;
 	global_stats.cuda_to_cpu++;
 }
 }
 
 
-struct starpu_codelet cpu_to_cuda_cl = {
+struct starpu_codelet cpu_to_cuda_cl =
+{
 	.where = STARPU_CUDA,
 	.where = STARPU_CUDA,
 	.cuda_funcs = {cpu_to_cuda_func, NULL},
 	.cuda_funcs = {cpu_to_cuda_func, NULL},
 	.nbuffers = 1
 	.nbuffers = 1
 };
 };
 
 
-struct starpu_codelet cuda_to_cpu_cl = {
+struct starpu_codelet cuda_to_cpu_cl =
+{
 	.where = STARPU_CPU,
 	.where = STARPU_CPU,
 	.cpu_funcs = {cuda_to_cpu_func, NULL},
 	.cpu_funcs = {cuda_to_cpu_func, NULL},
 	.nbuffers = 1
 	.nbuffers = 1
@@ -64,13 +66,15 @@ void opencl_to_cpu_func(void *buffers[], void *args)
 	global_stats.opencl_to_cpu++;
 	global_stats.opencl_to_cpu++;
 }
 }
 
 
-struct starpu_codelet cpu_to_opencl_cl = {
+struct starpu_codelet cpu_to_opencl_cl =
+{
 	.where = STARPU_OPENCL,
 	.where = STARPU_OPENCL,
 	.opencl_funcs = {cpu_to_opencl_func, NULL},
 	.opencl_funcs = {cpu_to_opencl_func, NULL},
 	.nbuffers = 1
 	.nbuffers = 1
 };
 };
 
 
-struct starpu_codelet opencl_to_cpu_cl = {
+struct starpu_codelet opencl_to_cpu_cl =
+{
 	.where = STARPU_CPU,
 	.where = STARPU_CPU,
 	.cpu_funcs = {opencl_to_cpu_func, NULL},
 	.cpu_funcs = {opencl_to_cpu_func, NULL},
 	.nbuffers = 1
 	.nbuffers = 1
@@ -78,7 +82,8 @@ struct starpu_codelet opencl_to_cpu_cl = {
 #endif /* !STARPU_USE_OPENCL */
 #endif /* !STARPU_USE_OPENCL */
 
 
 
 
-struct starpu_multiformat_data_interface_ops ops = {
+struct starpu_multiformat_data_interface_ops ops =
+{
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	.cuda_elemsize = sizeof(int),
 	.cuda_elemsize = sizeof(int),
 	.cpu_to_cuda_cl = &cpu_to_cuda_cl,
 	.cpu_to_cuda_cl = &cpu_to_cuda_cl,

+ 2 - 1
tests/datawizard/interfaces/multiformat/advanced/generic.h

@@ -27,7 +27,8 @@ void opencl_func(void *buffers[], void *args);
 #endif /* !STARPU_USE_OPENCL */
 #endif /* !STARPU_USE_OPENCL */
 extern struct starpu_multiformat_data_interface_ops ops;
 extern struct starpu_multiformat_data_interface_ops ops;
 /* Counting the calls to the codelets */
 /* Counting the calls to the codelets */
-struct stats {
+struct stats
+{
 #ifdef STARPU_USE_CPU
 #ifdef STARPU_USE_CPU
 	unsigned int cpu;
 	unsigned int cpu;
 #endif
 #endif

+ 8 - 4
tests/datawizard/interfaces/multiformat/multiformat_conversion_codelets.c

@@ -32,13 +32,15 @@ void cuda_to_cpu(void *buffers[], void *arg)
 	}
 	}
 }
 }
 
 
-extern void cpu_to_cuda_cuda_func(void *buffers[], void *args); struct starpu_codelet cpu_to_cuda_cl = {
+extern void cpu_to_cuda_cuda_func(void *buffers[], void *args); struct starpu_codelet cpu_to_cuda_cl =
+{
 	.where = STARPU_CUDA,
 	.where = STARPU_CUDA,
 	.cuda_funcs = {cpu_to_cuda_cuda_func, NULL},
 	.cuda_funcs = {cpu_to_cuda_cuda_func, NULL},
 	.nbuffers = 1
 	.nbuffers = 1
 };
 };
 
 
-struct starpu_codelet cuda_to_cpu_cl = {
+struct starpu_codelet cuda_to_cpu_cl =
+{
 	.where = STARPU_CPU,
 	.where = STARPU_CPU,
 	.cpu_funcs = {cuda_to_cpu, NULL},
 	.cpu_funcs = {cuda_to_cpu, NULL},
 	.nbuffers = 1
 	.nbuffers = 1
@@ -60,13 +62,15 @@ void opencl_to_cpu(void *buffers[], void *arg)
 }
 }
 
 
 extern void cpu_to_opencl_opencl_func(void *buffers[], void *args);
 extern void cpu_to_opencl_opencl_func(void *buffers[], void *args);
-struct starpu_codelet cpu_to_opencl_cl = {
+struct starpu_codelet cpu_to_opencl_cl =
+{
 	.where = STARPU_OPENCL,
 	.where = STARPU_OPENCL,
 	.opencl_funcs = {cpu_to_opencl_opencl_func, NULL},
 	.opencl_funcs = {cpu_to_opencl_opencl_func, NULL},
 	.nbuffers = 1
 	.nbuffers = 1
 };
 };
 
 
-struct starpu_codelet opencl_to_cpu_cl = {
+struct starpu_codelet opencl_to_cpu_cl =
+{
 	.where = STARPU_CPU,
 	.where = STARPU_CPU,
 	.cpu_funcs = {opencl_to_cpu, NULL},
 	.cpu_funcs = {opencl_to_cpu, NULL},
 	.nbuffers = 1
 	.nbuffers = 1

+ 6 - 3
tests/datawizard/interfaces/multiformat/multiformat_interface.c

@@ -32,7 +32,8 @@ static struct point array_of_structs_dummy[N_ELEMENTS];
 static starpu_data_handle_t multiformat_handle;
 static starpu_data_handle_t multiformat_handle;
 static starpu_data_handle_t multiformat_dummy_handle;
 static starpu_data_handle_t multiformat_dummy_handle;
 
 
-struct test_config multiformat_config = {
+struct test_config multiformat_config =
+{
 	.cpu_func      = test_multiformat_cpu_func,
 	.cpu_func      = test_multiformat_cpu_func,
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	.cuda_func     = test_multiformat_cuda_func,
 	.cuda_func     = test_multiformat_cuda_func,
@@ -82,7 +83,8 @@ extern struct starpu_codelet cpu_to_opencl_cl;
 extern struct starpu_codelet opencl_to_cpu_cl;
 extern struct starpu_codelet opencl_to_cpu_cl;
 #endif
 #endif
 
 
-struct starpu_multiformat_data_interface_ops format_ops = {
+struct starpu_multiformat_data_interface_ops format_ops =
+{
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	.cuda_elemsize = 2* sizeof(float),
 	.cuda_elemsize = 2* sizeof(float),
 	.cpu_to_cuda_cl = &cpu_to_cuda_cl,
 	.cpu_to_cuda_cl = &cpu_to_cuda_cl,
@@ -131,7 +133,8 @@ main(void)
 #ifdef STARPU_USE_CPU
 #ifdef STARPU_USE_CPU
 	int ret;
 	int ret;
 	data_interface_test_summary *summary;
 	data_interface_test_summary *summary;
-	struct starpu_conf conf = {
+	struct starpu_conf conf =
+	{
 		.ncpus   = -1,
 		.ncpus   = -1,
 		.ncuda   = 2,
 		.ncuda   = 2,
 		.nopencl = 1
 		.nopencl = 1

+ 4 - 2
tests/datawizard/interfaces/multiformat/multiformat_types.h

@@ -18,12 +18,14 @@
 
 
 #define N_ELEMENTS 2
 #define N_ELEMENTS 2
 
 
-struct struct_of_arrays{
+struct struct_of_arrays
+{
 	int x[N_ELEMENTS];
 	int x[N_ELEMENTS];
 	int y[N_ELEMENTS];
 	int y[N_ELEMENTS];
 };
 };
 
 
-struct point {
+struct point
+{
 	int x, y;
 	int x, y;
 };
 };
 
 

+ 8 - 4
tests/datawizard/interfaces/test_interfaces.c

@@ -40,7 +40,8 @@ static struct test_config *current_config;
  * FAILURE is 1. Therefore, the values of SUCCESS and FAILURE shall not be
  * FAILURE is 1. Therefore, the values of SUCCESS and FAILURE shall not be
  * changed.
  * changed.
  */
  */
-enum exit_code {
+enum exit_code
+{
 	SUCCESS                 = 0,
 	SUCCESS                 = 0,
 	FAILURE                 = 1,
 	FAILURE                 = 1,
 	UNTESTED                = 2,
 	UNTESTED                = 2,
@@ -68,7 +69,8 @@ enum_to_string(exit_code)
 	}
 	}
 }
 }
 
 
-struct data_interface_test_summary {
+struct data_interface_test_summary
+{
 	int success;
 	int success;
 
 
 	/* Copy methods */
 	/* Copy methods */
@@ -147,7 +149,8 @@ data_interface_test_summary_success(data_interface_test_summary *s)
 	return s->success;
 	return s->success;
 }
 }
 
 
-enum operation {
+enum operation
+{
 	CPU_TO_CPU,
 	CPU_TO_CPU,
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	CPU_TO_CUDA,
 	CPU_TO_CUDA,
@@ -216,7 +219,8 @@ set_field(struct data_interface_test_summary *s, int async,
 	}
 	}
 }
 }
 
 
-static struct data_interface_test_summary summary = {
+static struct data_interface_test_summary summary =
+{
 #ifdef STARPU_USE_CPU
 #ifdef STARPU_USE_CPU
 	.cpu_to_cpu            = UNTESTED,
 	.cpu_to_cpu            = UNTESTED,
 #endif
 #endif

+ 2 - 1
tests/datawizard/interfaces/test_interfaces.h

@@ -16,7 +16,8 @@
 #ifndef TEST_INTERFACES_H
 #ifndef TEST_INTERFACES_H
 #define TEST_INTERFACES_H
 #define TEST_INTERFACES_H
 
 
-struct test_config {
+struct test_config
+{
 	/* A pointer to a registered handle */
 	/* A pointer to a registered handle */
 	starpu_data_handle_t *handle;
 	starpu_data_handle_t *handle;
 
 

+ 4 - 2
tests/datawizard/interfaces/vector/test_vector_cuda.cu

@@ -38,7 +38,8 @@ extern "C" void test_vector_cuda_func(void *buffers[], void *args)
 	int *ret;
 	int *ret;
 
 
 	error = cudaMalloc(&ret, sizeof(int));
 	error = cudaMalloc(&ret, sizeof(int));
-	if (error != cudaSuccess) {
+	if (error != cudaSuccess)
+	{
 		fprintf(stderr, "cudaMalloc failed...\n");
 		fprintf(stderr, "cudaMalloc failed...\n");
 		return;
 		return;
 	}
 	}
@@ -56,7 +57,8 @@ extern "C" void test_vector_cuda_func(void *buffers[], void *args)
 
 
         framework_cuda<<<nblocks,threads_per_block,0,starpu_cuda_get_local_stream()>>>(val, n, ret, factor);
         framework_cuda<<<nblocks,threads_per_block,0,starpu_cuda_get_local_stream()>>>(val, n, ret, factor);
 	error = cudaMemcpy(&vector_config.copy_failed, ret, sizeof(int), cudaMemcpyDeviceToHost);
 	error = cudaMemcpy(&vector_config.copy_failed, ret, sizeof(int), cudaMemcpyDeviceToHost);
-	if (error != cudaSuccess) {
+	if (error != cudaSuccess)
+	{
 		return;
 		return;
 	}
 	}
 
 

+ 8 - 4
tests/datawizard/interfaces/vector/test_vector_interface.c

@@ -32,7 +32,8 @@ extern void test_vector_opencl_func(void *buffers[], void *args);
 static starpu_data_handle_t vector_handle;
 static starpu_data_handle_t vector_handle;
 static starpu_data_handle_t vector2_handle;
 static starpu_data_handle_t vector2_handle;
 
 
-struct test_config vector_config = {
+struct test_config vector_config =
+{
 	.cpu_func      = test_vector_cpu_func,
 	.cpu_func      = test_vector_cpu_func,
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	.cuda_func     = test_vector_cuda_func,
 	.cuda_func     = test_vector_cuda_func,
@@ -84,8 +85,10 @@ static void test_vector_cpu_func(void *buffers[], void *args)
 	int *val = (int *) STARPU_VECTOR_GET_PTR(buffers[0]);
 	int *val = (int *) STARPU_VECTOR_GET_PTR(buffers[0]);
 	int factor = *(int*)args;
 	int factor = *(int*)args;
 	unsigned int i;
 	unsigned int i;
-	for (i = 0; i < n; i++) {
-		if (val[i] != i*factor) {
+	for (i = 0; i < n; i++)
+	{
+		if (val[i] != i*factor)
+		{
 			vector_config.copy_failed = 1;
 			vector_config.copy_failed = 1;
 			return;
 			return;
 		}
 		}
@@ -97,7 +100,8 @@ int
 main(void)
 main(void)
 {
 {
 	data_interface_test_summary *summary;
 	data_interface_test_summary *summary;
-	struct starpu_conf conf = {
+	struct starpu_conf conf =
+	{
 		.ncpus   = -1,
 		.ncpus   = -1,
 		.ncuda   = 2,
 		.ncuda   = 2,
 		.nopencl = 1
 		.nopencl = 1

+ 4 - 2
tests/datawizard/lazy_allocation.c

@@ -49,7 +49,8 @@ static void cpu_memset_codelet(void *descr[], __attribute__ ((unused)) void *_ar
 	memset(buf, 42, length);
 	memset(buf, 42, length);
 }
 }
 
 
-static struct starpu_codelet memset_cl = {
+static struct starpu_codelet memset_cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA,
 	.where = STARPU_CPU|STARPU_CUDA,
 	.cpu_funcs = {cpu_memset_codelet, NULL},
 	.cpu_funcs = {cpu_memset_codelet, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
@@ -98,7 +99,8 @@ static void cuda_check_content_codelet(void *descr[], __attribute__ ((unused)) v
 }
 }
 #endif
 #endif
 
 
-static struct starpu_codelet check_content_cl = {
+static struct starpu_codelet check_content_cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA,
 	.where = STARPU_CPU|STARPU_CUDA,
 	.cpu_funcs = {cpu_check_content_codelet, NULL},
 	.cpu_funcs = {cpu_check_content_codelet, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA

+ 6 - 3
tests/datawizard/manual_reduction.c

@@ -39,7 +39,8 @@ static void initialize_per_worker_handle(void *arg __attribute__((unused)))
 	int workerid = starpu_worker_get_id();
 	int workerid = starpu_worker_get_id();
 
 
 	/* Allocate memory on the worker, and initialize it to 0 */
 	/* Allocate memory on the worker, and initialize it to 0 */
-	switch (starpu_worker_get_type(workerid)) {
+	switch (starpu_worker_get_type(workerid))
+	{
 		case STARPU_CPU_WORKER:
 		case STARPU_CPU_WORKER:
 			per_worker[workerid] = (uintptr_t)calloc(1, sizeof(variable));
 			per_worker[workerid] = (uintptr_t)calloc(1, sizeof(variable));
 			break;
 			break;
@@ -88,7 +89,8 @@ static void cpu_redux_func(void *descr[], void *cl_arg __attribute__((unused)))
 	*a = *a + *b;
 	*a = *a + *b;
 }
 }
 
 
-static struct starpu_codelet reduction_codelet = {
+static struct starpu_codelet reduction_codelet =
+{
 	.where = STARPU_CPU,
 	.where = STARPU_CPU,
 	.cpu_funcs = {cpu_redux_func, NULL},
 	.cpu_funcs = {cpu_redux_func, NULL},
 	.cuda_funcs = {NULL},
 	.cuda_funcs = {NULL},
@@ -135,7 +137,8 @@ static void opencl_func_incr(void *descr[], void *cl_arg __attribute__((unused))
 }
 }
 #endif
 #endif
 
 
-static struct starpu_codelet use_data_on_worker_codelet = {
+static struct starpu_codelet use_data_on_worker_codelet =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.cpu_funcs = {cpu_func_incr, NULL},
 	.cpu_funcs = {cpu_func_incr, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA

+ 4 - 2
tests/datawizard/mpi_like.c

@@ -26,7 +26,8 @@
 //static pthread_cond_t cond;
 //static pthread_cond_t cond;
 //static pthread_mutex_t mutex;
 //static pthread_mutex_t mutex;
 
 
-struct thread_data {
+struct thread_data
+{
 	unsigned index;
 	unsigned index;
 	unsigned val;
 	unsigned val;
 	starpu_data_handle_t handle;
 	starpu_data_handle_t handle;
@@ -54,7 +55,8 @@ static void increment_handle_cpu_kernel(void *descr[], void *cl_arg __attribute_
 	*val += 1;
 	*val += 1;
 }
 }
 
 
-static struct starpu_codelet increment_handle_cl = {
+static struct starpu_codelet increment_handle_cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA,
 	.where = STARPU_CPU|STARPU_CUDA,
 	.cpu_funcs = {increment_handle_cpu_kernel, NULL},
 	.cpu_funcs = {increment_handle_cpu_kernel, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA

+ 12 - 6
tests/datawizard/mpi_like_async.c

@@ -27,7 +27,8 @@
 //static pthread_cond_t cond;
 //static pthread_cond_t cond;
 //static pthread_mutex_t mutex;
 //static pthread_mutex_t mutex;
 
 
-struct thread_data {
+struct thread_data
+{
 	unsigned index;
 	unsigned index;
 	unsigned val;
 	unsigned val;
 	starpu_data_handle_t handle;
 	starpu_data_handle_t handle;
@@ -39,7 +40,8 @@ struct thread_data {
 	struct thread_data *neighbour;
 	struct thread_data *neighbour;
 };
 };
 
 
-struct data_req {
+struct data_req
+{
 	int (*test_func)(void *);
 	int (*test_func)(void *);
 	void *test_arg;
 	void *test_arg;
 	struct data_req *next;
 	struct data_req *next;
@@ -68,7 +70,8 @@ static void increment_handle_cpu_kernel(void *descr[], void *cl_arg __attribute_
 //	FPRINTF(stderr, "VAL %d (&val = %p)\n", *val, val);
 //	FPRINTF(stderr, "VAL %d (&val = %p)\n", *val, val);
 }
 }
 
 
-static struct starpu_codelet increment_handle_cl = {
+static struct starpu_codelet increment_handle_cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA,
 	.where = STARPU_CPU|STARPU_CUDA,
 	.cpu_funcs = {increment_handle_cpu_kernel, NULL},
 	.cpu_funcs = {increment_handle_cpu_kernel, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
@@ -192,7 +195,8 @@ static void *progress_func(void *arg)
 	progress_thread_running = 1;
 	progress_thread_running = 1;
 	_STARPU_PTHREAD_COND_SIGNAL(&data_req_cond);	
 	_STARPU_PTHREAD_COND_SIGNAL(&data_req_cond);	
 
 
-	while (progress_thread_running) {
+	while (progress_thread_running)
+	{
 		struct data_req *req;
 		struct data_req *req;
 
 
 		if (data_req_list == NULL)
 		if (data_req_list == NULL)
@@ -214,7 +218,8 @@ static void *progress_func(void *arg)
 				free(req);
 				free(req);
 				_STARPU_PTHREAD_MUTEX_LOCK(&data_req_mutex);
 				_STARPU_PTHREAD_MUTEX_LOCK(&data_req_mutex);
 			}
 			}
-			else {
+			else
+			{
 				/* ret = 0 : the request is not finished, we put it back at the end of the list */
 				/* ret = 0 : the request is not finished, we put it back at the end of the list */
 				_STARPU_PTHREAD_MUTEX_LOCK(&data_req_mutex);
 				_STARPU_PTHREAD_MUTEX_LOCK(&data_req_mutex);
 
 
@@ -224,7 +229,8 @@ static void *progress_func(void *arg)
 					/* The list is empty */
 					/* The list is empty */
 					data_req_list = req;
 					data_req_list = req;
 				}
 				}
-				else {
+				else
+				{
 					while (req_aux)
 					while (req_aux)
 					{
 					{
 						if (req_aux->next == NULL)
 						if (req_aux->next == NULL)

+ 2 - 1
tests/datawizard/readers_and_writers.c

@@ -25,7 +25,8 @@ static void dummy_kernel(void *descr[], void *arg)
 {
 {
 }
 }
 
 
-static struct starpu_codelet rw_cl = {
+static struct starpu_codelet rw_cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.cuda_funcs = {dummy_kernel, NULL},
 	.cuda_funcs = {dummy_kernel, NULL},
 	.cpu_funcs = {dummy_kernel, NULL},
 	.cpu_funcs = {dummy_kernel, NULL},

+ 2 - 1
tests/datawizard/reclaim.c

@@ -51,7 +51,8 @@ static void dummy_func(void *descr[], __attribute__ ((unused)) void *_args)
 {
 {
 }
 }
 
 
-static struct starpu_codelet dummy_cl = {
+static struct starpu_codelet dummy_cl =
+{
         .where = STARPU_CPU|STARPU_CUDA,
         .where = STARPU_CPU|STARPU_CUDA,
 	.cpu_funcs = {dummy_func, NULL},
 	.cpu_funcs = {dummy_func, NULL},
 	.cuda_funcs = {dummy_func, NULL},
 	.cuda_funcs = {dummy_func, NULL},

+ 2 - 1
tests/datawizard/scratch.c

@@ -51,7 +51,8 @@ static void cpu_f(void *descr[], __attribute__ ((unused)) void *_args)
 	}
 	}
 }
 }
 
 
-static struct starpu_codelet cl_f = {
+static struct starpu_codelet cl_f =
+{
 	.where = STARPU_CPU|STARPU_CUDA,
 	.where = STARPU_CPU|STARPU_CUDA,
 	.cpu_funcs = {cpu_f, NULL},
 	.cpu_funcs = {cpu_f, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA

+ 6 - 3
tests/datawizard/sync_and_notify_data.c

@@ -107,7 +107,8 @@ int main(int argc, char **argv)
 		for (ind = 0; ind < N; ind++)
 		for (ind = 0; ind < N; ind++)
 		{
 		{
 			/* increment a = v[0] */
 			/* increment a = v[0] */
-			struct starpu_codelet cl_inc_a = {
+			struct starpu_codelet cl_inc_a =
+			{
 				.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL|STARPU_GORDON,
 				.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL|STARPU_GORDON,
 				.cpu_funcs = {cpu_codelet_incA, NULL},
 				.cpu_funcs = {cpu_codelet_incA, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
@@ -147,7 +148,8 @@ int main(int argc, char **argv)
 		for (ind = 0; ind < N; ind++)
 		for (ind = 0; ind < N; ind++)
 		{
 		{
 			/* increment c = v[2] */
 			/* increment c = v[2] */
-			struct starpu_codelet cl_inc_c = {
+			struct starpu_codelet cl_inc_c =
+			{
 				.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL|STARPU_GORDON,
 				.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL|STARPU_GORDON,
 				.cpu_funcs = {cpu_codelet_incC, NULL},
 				.cpu_funcs = {cpu_codelet_incC, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
@@ -187,7 +189,8 @@ int main(int argc, char **argv)
 
 
 	starpu_shutdown();
 	starpu_shutdown();
 
 
-	if ((v[0] != N*K) || (v[1] != K) || (v[2] != N*K)) {
+	if ((v[0] != N*K) || (v[1] != K) || (v[2] != N*K))
+	{
 		FPRINTF(stderr, "Incorrect result\n");
 		FPRINTF(stderr, "Incorrect result\n");
 		return EXIT_FAILURE;
 		return EXIT_FAILURE;
 	}
 	}

+ 6 - 3
tests/datawizard/sync_and_notify_data_implicit.c

@@ -76,7 +76,8 @@ void cpu_codelet_incC(void *descr[], __attribute__ ((unused)) void *_args)
 }
 }
 
 
 /* increment a = v[0] */
 /* increment a = v[0] */
-static struct starpu_codelet cl_inc_a = {
+static struct starpu_codelet cl_inc_a =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL|STARPU_GORDON,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL|STARPU_GORDON,
 	.cpu_funcs = {cpu_codelet_incA, NULL},
 	.cpu_funcs = {cpu_codelet_incA, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
@@ -92,7 +93,8 @@ static struct starpu_codelet cl_inc_a = {
 };
 };
 
 
 /* increment c = v[2] */
 /* increment c = v[2] */
-struct starpu_codelet cl_inc_c = {
+struct starpu_codelet cl_inc_c =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL|STARPU_GORDON,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL|STARPU_GORDON,
 	.cpu_funcs = {cpu_codelet_incC, NULL},
 	.cpu_funcs = {cpu_codelet_incC, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
@@ -184,7 +186,8 @@ int main(int argc, char **argv)
 	starpu_data_unregister(v_handle);
 	starpu_data_unregister(v_handle);
 	starpu_shutdown();
 	starpu_shutdown();
 
 
-	if ((v[0] != N*K) || (v[1] != K) || (v[2] != N*K)) {
+	if ((v[0] != N*K) || (v[1] != K) || (v[2] != N*K))
+	{
 		FPRINTF(stderr, "Incorrect result\n");
 		FPRINTF(stderr, "Incorrect result\n");
 		return EXIT_FAILURE;
 		return EXIT_FAILURE;
 	}
 	}

+ 8 - 4
tests/datawizard/sync_with_data_with_mem.c

@@ -34,7 +34,8 @@ static void dummy_codelet(void *descr[], __attribute__ ((unused)) void *_args)
 {
 {
 }
 }
 
 
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.cpu_funcs = {dummy_codelet, NULL},
 	.cpu_funcs = {dummy_codelet, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
@@ -83,7 +84,8 @@ int main(int argc, char **argv)
 	{
 	{
 		/* Use the buffers on the different workers so that it may not
 		/* Use the buffers on the different workers so that it may not
 		 * be in main memory anymore */
 		 * be in main memory anymore */
-		for (b = 0; b < NBUFFERS; b++) {
+		for (b = 0; b < NBUFFERS; b++)
+		{
 			ret = use_handle(v_handle[b]);
 			ret = use_handle(v_handle[b]);
 			if (ret == -ENODEV) goto enodev;
 			if (ret == -ENODEV) goto enodev;
 			STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_submit");
 			STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_submit");
@@ -93,7 +95,8 @@ int main(int argc, char **argv)
 		STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_wait_for_all");
 		STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_wait_for_all");
 
 
 		/* Grab the different pieces of data into main memory */
 		/* Grab the different pieces of data into main memory */
-		for (b = 0; b < NBUFFERS; b++) {
+		for (b = 0; b < NBUFFERS; b++)
+		{
 			ret = starpu_data_acquire(v_handle[b], STARPU_RW);
 			ret = starpu_data_acquire(v_handle[b], STARPU_RW);
 			STARPU_CHECK_RETURN_VALUE(ret, "starpu_data_acquire");
 			STARPU_CHECK_RETURN_VALUE(ret, "starpu_data_acquire");
 		}
 		}
@@ -104,7 +107,8 @@ int main(int argc, char **argv)
 	}
 	}
 
 
 	/* do some cleanup */
 	/* do some cleanup */
-	for (b = 0; b < NBUFFERS; b++) {
+	for (b = 0; b < NBUFFERS; b++)
+	{
 		starpu_data_unregister(v_handle[b]);
 		starpu_data_unregister(v_handle[b]);
 		starpu_free(buffer[b]);
 		starpu_free(buffer[b]);
 	}
 	}

+ 6 - 3
tests/datawizard/sync_with_data_with_mem_non_blocking.c

@@ -35,7 +35,8 @@ static void dummy_codelet(void *descr[], __attribute__ ((unused)) void *_args)
 {
 {
 }
 }
 
 
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.cpu_funcs = {dummy_codelet, NULL},
 	.cpu_funcs = {dummy_codelet, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
@@ -101,7 +102,8 @@ int main(int argc, char **argv)
 	{
 	{
 		/* Use the buffers on the different workers so that it may not
 		/* Use the buffers on the different workers so that it may not
 		 * be in main memory anymore */
 		 * be in main memory anymore */
-		for (b = 0; b < NBUFFERS; b++) {
+		for (b = 0; b < NBUFFERS; b++)
+		{
 			ret = use_handle(v_handle[b]);
 			ret = use_handle(v_handle[b]);
 			if (ret == -ENODEV) goto enodev;
 			if (ret == -ENODEV) goto enodev;
 			STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_submit");
 			STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_submit");
@@ -136,7 +138,8 @@ int main(int argc, char **argv)
 	}
 	}
 
 
 	/* do some cleanup */
 	/* do some cleanup */
-	for (b = 0; b < NBUFFERS; b++) {
+	for (b = 0; b < NBUFFERS; b++)
+	{
 		starpu_data_unregister(v_handle[b]);
 		starpu_data_unregister(v_handle[b]);
 		starpu_free(buffer[b]);
 		starpu_free(buffer[b]);
 	}
 	}

+ 6 - 3
tests/datawizard/sync_with_data_with_mem_non_blocking_implicit.c

@@ -35,7 +35,8 @@ static void dummy_codelet(void *descr[], __attribute__ ((unused)) void *_args)
 {
 {
 }
 }
 
 
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.cpu_funcs = {dummy_codelet, NULL},
 	.cpu_funcs = {dummy_codelet, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
@@ -100,7 +101,8 @@ int main(int argc, char **argv)
 	{
 	{
 		/* Use the buffers on the different workers so that it may not
 		/* Use the buffers on the different workers so that it may not
 		 * be in main memory anymore */
 		 * be in main memory anymore */
-		for (b = 0; b < NBUFFERS; b++) {
+		for (b = 0; b < NBUFFERS; b++)
+		{
 			ret = use_handle(v_handle[b]);
 			ret = use_handle(v_handle[b]);
 			if (ret == -ENODEV) goto enodev;
 			if (ret == -ENODEV) goto enodev;
 			STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_submit");
 			STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_submit");
@@ -135,7 +137,8 @@ int main(int argc, char **argv)
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_wait_for_all");
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_wait_for_all");
 
 
 	/* do some cleanup */
 	/* do some cleanup */
-	for (b = 0; b < NBUFFERS; b++) {
+	for (b = 0; b < NBUFFERS; b++)
+	{
 		starpu_data_unregister(v_handle[b]);
 		starpu_data_unregister(v_handle[b]);
 		starpu_free(buffer[b]);
 		starpu_free(buffer[b]);
 	}
 	}

+ 4 - 2
tests/datawizard/unpartition.c

@@ -34,7 +34,8 @@ static void dummy_codelet(void *descr[], __attribute__ ((unused)) void *_args)
 {
 {
 }
 }
 
 
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.cpu_funcs = {dummy_codelet, NULL},
 	.cpu_funcs = {dummy_codelet, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
@@ -74,7 +75,8 @@ int main(int argc, char **argv)
 
 
 	starpu_vector_data_register(&v_handle, 0, (uintptr_t)buffer, VECTORSIZE, sizeof(char));
 	starpu_vector_data_register(&v_handle, 0, (uintptr_t)buffer, VECTORSIZE, sizeof(char));
 
 
-	struct starpu_data_filter f = {
+	struct starpu_data_filter f =
+	{
 		.filter_func = starpu_vector_divide_in_2_filter_func,
 		.filter_func = starpu_vector_divide_in_2_filter_func,
 		/* there are only 2 children */
 		/* there are only 2 children */
 		.nchildren = 2,
 		.nchildren = 2,

+ 2 - 1
tests/datawizard/user_interaction_implicit.c

@@ -26,7 +26,8 @@
 #define NBUFFERS	16
 #define NBUFFERS	16
 #define NITER		128
 #define NITER		128
 
 
-struct data {
+struct data
+{
 	unsigned index;
 	unsigned index;
 	unsigned val;
 	unsigned val;
 	starpu_data_handle_t handle;
 	starpu_data_handle_t handle;

+ 4 - 2
tests/datawizard/write_only_tmp_buffer.c

@@ -68,7 +68,8 @@ static void display_var(void *descr[], __attribute__ ((unused)) void *_args)
 	}
 	}
 }
 }
 
 
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.cpu_funcs = {cpu_codelet_null, NULL},
 	.cpu_funcs = {cpu_codelet_null, NULL},
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
@@ -80,7 +81,8 @@ static struct starpu_codelet cl = {
 	.nbuffers = 1
 	.nbuffers = 1
 };
 };
 
 
-static struct starpu_codelet display_cl = {
+static struct starpu_codelet display_cl =
+{
 	.where = STARPU_CPU,
 	.where = STARPU_CPU,
 	.cpu_funcs = {display_var, NULL},
 	.cpu_funcs = {display_var, NULL},
 	.nbuffers = 1
 	.nbuffers = 1

+ 2 - 1
tests/errorcheck/starpu_init_noworker.c

@@ -26,7 +26,8 @@ int main(int argc, char **argv)
 	int ret;	
 	int ret;	
 
 
 	/* We try to initialize StarPU without any worker */
 	/* We try to initialize StarPU without any worker */
-	struct starpu_conf conf = {
+	struct starpu_conf conf =
+	{
 		.sched_policy_name = NULL, /* default */
 		.sched_policy_name = NULL, /* default */
 		.ncpus = 0,
 		.ncpus = 0,
 		.ncuda = 0,
 		.ncuda = 0,

+ 18 - 9
tests/experiments/bandwidth_cuda/cuda_bandwidth.c

@@ -54,36 +54,44 @@ unsigned cuda_initialized = 0;
 static void parse_args(int argc, char **argv)
 static void parse_args(int argc, char **argv)
 {
 {
 	int i;
 	int i;
-	for (i = 1; i < argc; i++) {
-		if (strcmp(argv[i], "-gpu-ld") == 0) {
+	for (i = 1; i < argc; i++)
+	{
+		if (strcmp(argv[i], "-gpu-ld") == 0)
+		{
 		        char *argptr;
 		        char *argptr;
 			GPU_LD = strtol(argv[++i], &argptr, 10);
 			GPU_LD = strtol(argv[++i], &argptr, 10);
 		}
 		}
 
 
-		if (strcmp(argv[i], "-cpu-ld") == 0) {
+		if (strcmp(argv[i], "-cpu-ld") == 0)
+		{
 		        char *argptr;
 		        char *argptr;
 			CPU_LD = strtol(argv[++i], &argptr, 10);
 			CPU_LD = strtol(argv[++i], &argptr, 10);
 		}
 		}
 
 
-		if (strcmp(argv[i], "-size") == 0) {
+		if (strcmp(argv[i], "-size") == 0)
+		{
 		        char *argptr;
 		        char *argptr;
 			MATRIXSIZE = strtol(argv[++i], &argptr, 10);
 			MATRIXSIZE = strtol(argv[++i], &argptr, 10);
 		}
 		}
 
 
-		if (strcmp(argv[i], "-pin") == 0) {
+		if (strcmp(argv[i], "-pin") == 0)
+		{
 			pinned = 1;
 			pinned = 1;
 		}
 		}
 
 
-		if (strcmp(argv[i], "-HtoD") == 0) {
+		if (strcmp(argv[i], "-HtoD") == 0)
+		{
 			htod = 1;
 			htod = 1;
 		}
 		}
 
 
-		if (strcmp(argv[i], "-iter") == 0) {
+		if (strcmp(argv[i], "-iter") == 0)
+		{
 		        char *argptr;
 		        char *argptr;
 			ITER = strtol(argv[++i], &argptr, 10);
 			ITER = strtol(argv[++i], &argptr, 10);
 		}
 		}
 
 
-		if (strcmp(argv[i], "-h") == 0) {
+		if (strcmp(argv[i], "-h") == 0)
+		{
 			printf("usage : %s [-pin] [-HtoD] [-size size] [-cpu-ld ld] [-gpu-ld ld] [-iter n]\n", argv[0]);
 			printf("usage : %s [-pin] [-HtoD] [-size size] [-cpu-ld ld] [-gpu-ld ld] [-iter n]\n", argv[0]);
 		}
 		}
 	}
 	}
@@ -166,7 +174,8 @@ void benchmark_memcpy(void)
 				cuCtxSynchronize();
 				cuCtxSynchronize();
 			}
 			}
 		}
 		}
-		else {
+		else
+		{
 			for (count = 0; count < ITER; count++)
 			for (count = 0; count < ITER; count++)
 			{
 			{
 				cublasSetMatrix(MATRIXSIZE, MATRIXSIZE, sizeof(float),
 				cublasSetMatrix(MATRIXSIZE, MATRIXSIZE, sizeof(float),

+ 4 - 2
tests/experiments/latency/cuda_latency.c

@@ -141,11 +141,13 @@ void *launch_gpu_thread(void *arg)
 	unsigned iter;
 	unsigned iter;
 	for (iter = 0; iter < niter; iter++)
 	for (iter = 0; iter < niter; iter++)
 	{
 	{
-		if (id == 0) {
+		if (id == 0)
+		{
 			send_data(0, 1);
 			send_data(0, 1);
 			recv_data(1, 0);
 			recv_data(1, 0);
 		}
 		}
-		else {
+		else
+		{
 			recv_data(0, 1);
 			recv_data(0, 1);
 			send_data(1, 0);
 			send_data(1, 0);
 		}
 		}

+ 4 - 2
tests/heat/deps.r

@@ -41,7 +41,8 @@ handle_sched <- function(sched)
 	gflopstab <- NULL;
 	gflopstab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- handle_size(size, sched);
 		list <- handle_size(size, sched);
 		gflopstab <- c(gflopstab, list);
 		gflopstab <- c(gflopstab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));
@@ -57,7 +58,8 @@ handle_sched_mean <- function(sched)
 	meantab <- NULL;
 	meantab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- mean(handle_size(size, sched));
 		list <- mean(handle_size(size, sched));
 		meantab <- c(meantab, list);
 		meantab <- c(meantab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));

+ 6 - 3
tests/heat/granularity.r

@@ -63,7 +63,8 @@ handle_grain <- function(grain)
 	gflopstab <- NULL;
 	gflopstab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- handle_size(size, grain);
 		list <- handle_size(size, grain);
 
 
 		if (!is.na(list))
 		if (!is.na(list))
@@ -83,7 +84,8 @@ handle_grain_mean <- function(grain)
 	meantab <- NULL;
 	meantab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- mean(handle_size(size, grain));
 		list <- mean(handle_size(size, grain));
 
 
 		if (!is.na(list))
 		if (!is.na(list))
@@ -123,7 +125,8 @@ display_grain <- function()
 
 
 	colarray <- c("magenta", "blue", "peru", "green3", "navy", "red", "green2", "black", "orange");
 	colarray <- c("magenta", "blue", "peru", "green3", "navy", "red", "green2", "black", "orange");
 
 
-	for (grain in grainlist) {
+	for (grain in grainlist)
+	{
 		trace_grain(grain, colarray[i+1], -1);
 		trace_grain(grain, colarray[i+1], -1);
 		i <- i + 1;
 		i <- i + 1;
 	}
 	}

+ 12 - 6
tests/heat/granularity_model.r

@@ -61,7 +61,8 @@ handle_grain <- function(grain)
 	gflopstab <- NULL;
 	gflopstab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- handle_size(size, grain);
 		list <- handle_size(size, grain);
 
 
 		if (!is.na(list))
 		if (!is.na(list))
@@ -81,7 +82,8 @@ handle_grain_mean <- function(grain)
 	meantab <- NULL;
 	meantab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- mean(handle_size(size, grain));
 		list <- mean(handle_size(size, grain));
 
 
 		if (!is.na(list))
 		if (!is.na(list))
@@ -139,7 +141,8 @@ handle_grain_nm <- function(grain)
 	gflopstab <- NULL;
 	gflopstab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- handle_size_nm(size, grain);
 		list <- handle_size_nm(size, grain);
 
 
 		if (!is.na(list))
 		if (!is.na(list))
@@ -159,7 +162,8 @@ handle_grain_mean_nm <- function(grain)
 	meantab <- NULL;
 	meantab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- mean(handle_size_nm(size, grain));
 		list <- mean(handle_size_nm(size, grain));
 
 
 		if (!is.na(list))
 		if (!is.na(list))
@@ -180,7 +184,8 @@ handle_grain_mean <- function(grain)
 	meantab <- NULL;
 	meantab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- mean(handle_size(size, grain));
 		list <- mean(handle_size(size, grain));
 
 
 		if (!is.na(list))
 		if (!is.na(list))
@@ -223,7 +228,8 @@ display_grain <- function()
 
 
 	colarray <- c("magenta", "blue", "peru", "green3", "navy", "red", "green2", "black", "orange");
 	colarray <- c("magenta", "blue", "peru", "green3", "navy", "red", "green2", "black", "orange");
 
 
-	for (grain in grainlist) {
+	for (grain in grainlist)
+	{
 		trace_grain(grain, colarray[i+1], -1);
 		trace_grain(grain, colarray[i+1], -1);
 		i <- i + 1;
 		i <- i + 1;
 	}
 	}

+ 4 - 2
tests/heat/model.r

@@ -47,7 +47,8 @@ handle_sched <- function(sched)
 	gflopstab <- NULL;
 	gflopstab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- handle_size(size, sched);
 		list <- handle_size(size, sched);
 		gflopstab <- c(gflopstab, list);
 		gflopstab <- c(gflopstab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));
@@ -63,7 +64,8 @@ handle_sched_mean <- function(sched)
 	meantab <- NULL;
 	meantab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- mean(handle_size(size, sched));
 		list <- mean(handle_size(size, sched));
 		meantab <- c(meantab, list);
 		meantab <- c(meantab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));

+ 6 - 3
tests/heat/perturbate.r

@@ -73,7 +73,8 @@ handle_ampl <- function(ampl)
 	gflopstab <- NULL;
 	gflopstab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- handle_size(size, ampl);
 		list <- handle_size(size, ampl);
 		gflopstab <- c(gflopstab, list);
 		gflopstab <- c(gflopstab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));
@@ -89,7 +90,8 @@ handle_ampl_mean <- function(ampl)
 	meantab <- NULL;
 	meantab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- mean(handle_size(size, ampl));
 		list <- mean(handle_size(size, ampl));
 		meantab <- c(meantab, list);
 		meantab <- c(meantab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));
@@ -106,7 +108,8 @@ handle_ref_mean <- function()
 	meantab <- NULL;
 	meantab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- mean(handle_size_ref(size));
 		list <- mean(handle_size_ref(size));
 		meantab <- c(meantab, list);
 		meantab <- c(meantab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));

+ 4 - 2
tests/heat/random.r

@@ -47,7 +47,8 @@ handle_sched <- function(sched)
 	gflopstab <- NULL;
 	gflopstab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- handle_size(size, sched);
 		list <- handle_size(size, sched);
 		gflopstab <- c(gflopstab, list);
 		gflopstab <- c(gflopstab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));
@@ -63,7 +64,8 @@ handle_sched_mean <- function(sched)
 	meantab <- NULL;
 	meantab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- mean(handle_size(size, sched));
 		list <- mean(handle_size(size, sched));
 		meantab <- c(meantab, list);
 		meantab <- c(meantab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));

+ 4 - 2
tests/heat/sched.r

@@ -47,7 +47,8 @@ handle_sched <- function(sched)
 	gflopstab <- NULL;
 	gflopstab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- handle_size(size, sched);
 		list <- handle_size(size, sched);
 		gflopstab <- c(gflopstab, list);
 		gflopstab <- c(gflopstab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));
@@ -63,7 +64,8 @@ handle_sched_mean <- function(sched)
 	meantab <- NULL;
 	meantab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- mean(handle_size(size, sched));
 		list <- mean(handle_size(size, sched));
 		meantab <- c(meantab, list);
 		meantab <- c(meantab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));

+ 4 - 2
tests/loader.c

@@ -59,7 +59,8 @@ int main(int argc, char *argv[])
 		exit(EXIT_FAILURE);
 		exit(EXIT_FAILURE);
 	}
 	}
 
 
-	if (strstr(test_name, "spmv/dw_block_spmv")) {
+	if (strstr(test_name, "spmv/dw_block_spmv"))
+	{
 		test_args = (char *) malloc(150*sizeof(char));
 		test_args = (char *) malloc(150*sizeof(char));
 		sprintf(test_args, "%s/examples/spmv/matrix_market/examples/fidapm05.mtx", STARPU_SRC_DIR);
 		sprintf(test_args, "%s/examples/spmv/matrix_market/examples/fidapm05.mtx", STARPU_SRC_DIR);
 	}
 	}
@@ -91,7 +92,8 @@ int main(int argc, char *argv[])
 		fprintf(stderr, "[error] execl. Mark test as failed\n");
 		fprintf(stderr, "[error] execl. Mark test as failed\n");
 		exit(EXIT_FAILURE);
 		exit(EXIT_FAILURE);
 	}
 	}
-	if (child_pid == -1) {
+	if (child_pid == -1)
+	{
 		fprintf(stderr, "[error] fork. Mark test as failed\n");
 		fprintf(stderr, "[error] fork. Mark test as failed\n");
 		exit(EXIT_FAILURE);
 		exit(EXIT_FAILURE);
 	}
 	}

+ 6 - 3
tests/microbenchs/async_tasks_overhead.c

@@ -76,7 +76,8 @@ static void init_gordon_kernel(void)
 //	STARPU_ASSERT(!ret);
 //	STARPU_ASSERT(!ret);
 //}
 //}
 
 
-static struct starpu_conf conf = {
+static struct starpu_conf conf =
+{
 	.sched_policy_name = NULL,
 	.sched_policy_name = NULL,
 	.ncpus = -1,
 	.ncpus = -1,
 	.ncuda = -1,
 	.ncuda = -1,
@@ -98,7 +99,8 @@ static void parse_args(int argc, char **argv)
 {
 {
 	int c;
 	int c;
 	while ((c = getopt(argc, argv, "i:p:h")) != -1)
 	while ((c = getopt(argc, argv, "i:p:h")) != -1)
-	switch(c) {
+	switch(c)
+	{
 		case 'i':
 		case 'i':
 			ntasks = atoi(optarg);
 			ntasks = atoi(optarg);
 			break;
 			break;
@@ -182,7 +184,8 @@ int main(int argc, char **argv)
                 char *output_dir = getenv("STARPU_BENCH_DIR");
                 char *output_dir = getenv("STARPU_BENCH_DIR");
                 char *bench_id = getenv("STARPU_BENCH_ID");
                 char *bench_id = getenv("STARPU_BENCH_ID");
 
 
-                if (output_dir && bench_id) {
+                if (output_dir && bench_id)
+		{
                         char file[1024];
                         char file[1024];
                         FILE *f;
                         FILE *f;
 
 

+ 2 - 1
tests/microbenchs/local_pingpong.c

@@ -73,7 +73,8 @@ int main(int argc, char **argv)
 					starpu_worker_get_name(w, worker_0_name, 128);
 					starpu_worker_get_name(w, worker_0_name, 128);
 					found_node_0 = 1;
 					found_node_0 = 1;
 				}
 				}
-				else {
+				else
+				{
 					memory_node_1 = starpu_worker_get_memory_node(w);
 					memory_node_1 = starpu_worker_get_memory_node(w);
 					starpu_worker_get_name(w, worker_1_name, 128);
 					starpu_worker_get_name(w, worker_1_name, 128);
 					break;
 					break;

+ 4 - 4
tests/microbenchs/prefetch_data_on_node.c

@@ -47,7 +47,8 @@ static enum starpu_access_mode select_random_mode(void)
 {
 {
 	int r = rand();
 	int r = rand();
 
 
-	switch (r % 3) {
+	switch (r % 3)
+	{
 		case 0:
 		case 0:
 			return STARPU_R;
 			return STARPU_R;
 		case 1:
 		case 1:
@@ -59,8 +60,8 @@ static enum starpu_access_mode select_random_mode(void)
 	return STARPU_RW;
 	return STARPU_RW;
 }
 }
 
 
-
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.cpu_funcs = {codelet_null, NULL},
 	.cpu_funcs = {codelet_null, NULL},
 	.cuda_funcs = {codelet_null, NULL},
 	.cuda_funcs = {codelet_null, NULL},
@@ -68,7 +69,6 @@ static struct starpu_codelet cl = {
 	.nbuffers = 1
 	.nbuffers = 1
 };
 };
 
 
-
 int main(int argc, char **argv)
 int main(int argc, char **argv)
 {
 {
 	int ret;
 	int ret;

+ 2 - 1
tests/microbenchs/redundant_buffer.c

@@ -41,7 +41,8 @@ static void cpu_codelet_null(void *descr[], __attribute__ ((unused)) void *_args
 {
 {
 }
 }
 
 
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.cpu_funcs = {cpu_codelet_null, NULL},
 	.cpu_funcs = {cpu_codelet_null, NULL},
 	.cuda_funcs = {cuda_codelet_null, NULL},
 	.cuda_funcs = {cuda_codelet_null, NULL},

+ 15 - 13
tests/microbenchs/starpu_check.sh

@@ -1,19 +1,19 @@
 #!/bin/sh
 #!/bin/sh
 
 
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 # StarPU --- Runtime system for heterogeneous multicore architectures.
-# 
+#
 # Copyright (C) 2009, 2010  Université de Bordeaux 1
 # Copyright (C) 2009, 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
 # 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
 # it under the terms of the GNU Lesser General Public License as published by
 # the Free Software Foundation; either version 2.1 of the License, or (at
 # the Free Software Foundation; either version 2.1 of the License, or (at
 # your option) any later version.
 # your option) any later version.
-# 
+#
 # StarPU is distributed in the hope that it will be useful, but
 # StarPU is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-# 
+#
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 
 
 
 
@@ -23,15 +23,17 @@ ntests=0
 nfailed=0
 nfailed=0
 nsucess=0
 nsucess=0
 
 
-print_summary() {
+print_summary()
+{
 	if test $nfailed = 0; then
 	if test $nfailed = 0; then
 		echo "**** All tests are successful ****"
 		echo "**** All tests are successful ****"
 	else
 	else
-		echo "$nfailed test(s) failed out of $ntests" 
+		echo "$nfailed test(s) failed out of $ntests"
 	fi
 	fi
 }
 }
 
 
-test_with_timeout() {
+test_with_timeout()
+{
 	timeout=$1
 	timeout=$1
         application=$2
         application=$2
 
 
@@ -68,7 +70,7 @@ echo "TEST synchronous tasks"
 echo "**********************"
 echo "**********************"
 echo
 echo
 
 
-test_with_timeout 10 "./sync_tasks_overhead -i 10000" 2> /dev/null 
+test_with_timeout 10 "./sync_tasks_overhead -i 10000" 2> /dev/null
 
 
 echo
 echo
 echo "***********************"
 echo "***********************"
@@ -76,7 +78,7 @@ echo "TEST asynchronous tasks"
 echo "***********************"
 echo "***********************"
 echo
 echo
 
 
-test_with_timeout 10 "./async_tasks_overhead -i 20000" 2> /dev/null 
+test_with_timeout 10 "./async_tasks_overhead -i 20000" 2> /dev/null
 
 
 echo
 echo
 echo "**************"
 echo "**************"
@@ -84,7 +86,7 @@ echo "TEST increment"
 echo "**************"
 echo "**************"
 echo
 echo
 
 
-test_with_timeout 10 "../../examples/incrementer/incrementer" 2> /dev/null 
+test_with_timeout 10 "../../examples/incrementer/incrementer" 2> /dev/null
 
 
 echo
 echo
 echo "**********"
 echo "**********"
@@ -92,7 +94,7 @@ echo "TEST tag 1"
 echo "**********"
 echo "**********"
 echo
 echo
 
 
-test_with_timeout 60 "../../examples/tag_example/tag_example -iter 1000" 2> /dev/null 
+test_with_timeout 60 "../../examples/tag_example/tag_example -iter 1000" 2> /dev/null
 
 
 echo
 echo
 echo "**********"
 echo "**********"
@@ -100,7 +102,7 @@ echo "TEST tag 2"
 echo "**********"
 echo "**********"
 echo
 echo
 
 
-test_with_timeout 10 "../../examples/tag_example/tag_example2 -iter 100" 2> /dev/null 
+test_with_timeout 10 "../../examples/tag_example/tag_example2 -iter 100" 2> /dev/null
 
 
 
 
 
 

+ 4 - 2
tests/microbenchs/sync_tasks_overhead.c

@@ -75,7 +75,8 @@ static void parse_args(int argc, char **argv)
 {
 {
 	int c;
 	int c;
 	while ((c = getopt(argc, argv, "i:")) != -1)
 	while ((c = getopt(argc, argv, "i:")) != -1)
-	switch(c) {
+	switch(c)
+	{
 		case 'i':
 		case 'i':
 			ntasks = atoi(optarg);
 			ntasks = atoi(optarg);
 			break;
 			break;
@@ -119,7 +120,8 @@ int main(int argc, char **argv)
                 char *output_dir = getenv("STARPU_BENCH_DIR");
                 char *output_dir = getenv("STARPU_BENCH_DIR");
                 char *bench_id = getenv("STARPU_BENCH_ID");
                 char *bench_id = getenv("STARPU_BENCH_ID");
 
 
-                if (output_dir && bench_id) {
+                if (output_dir && bench_id)
+		{
                         char file[1024];
                         char file[1024];
                         FILE *f;
                         FILE *f;
 
 

+ 4 - 2
tests/microbenchs/tasks_overhead.c

@@ -63,7 +63,8 @@ static void parse_args(int argc, char **argv)
 {
 {
 	int c;
 	int c;
 	while ((c = getopt(argc, argv, "i:b:h")) != -1)
 	while ((c = getopt(argc, argv, "i:b:h")) != -1)
-	switch(c) {
+	switch(c)
+	{
 		case 'i':
 		case 'i':
 			ntasks = atoi(optarg);
 			ntasks = atoi(optarg);
 			break;
 			break;
@@ -169,7 +170,8 @@ int main(int argc, char **argv)
                 char *output_dir = getenv("STARPU_BENCH_DIR");
                 char *output_dir = getenv("STARPU_BENCH_DIR");
                 char *bench_id = getenv("STARPU_BENCH_ID");
                 char *bench_id = getenv("STARPU_BENCH_ID");
 
 
-                if (output_dir && bench_id) {
+                if (output_dir && bench_id)
+		{
                         char file[1024];
                         char file[1024];
                         FILE *f;
                         FILE *f;
 
 

+ 8 - 4
tests/mult/random.r

@@ -53,7 +53,8 @@ handle_sched <- function(sched)
 	gflopstab <- NULL;
 	gflopstab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- handle_size(size, sched);
 		list <- handle_size(size, sched);
 		gflopstab <- c(gflopstab, list);
 		gflopstab <- c(gflopstab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));
@@ -69,7 +70,8 @@ handle_sched_mean <- function(sched)
 	meantab <- NULL;
 	meantab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- mean(handle_size(size, sched));
 		list <- mean(handle_size(size, sched));
 		meantab <- c(meantab, list);
 		meantab <- c(meantab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));
@@ -86,7 +88,8 @@ handle_sched_max <- function(sched)
 	gflopstab <- NULL;
 	gflopstab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		prout <- handle_size(size, sched);
 		prout <- handle_size(size, sched);
 		list <- max(prout);
 		list <- max(prout);
 		print(list);
 		print(list);
@@ -105,7 +108,8 @@ handle_sched_min <- function(sched)
 	gflopstab <- NULL;
 	gflopstab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- min((handle_size(size, sched)));
 		list <- min((handle_size(size, sched)));
 		print("MIN"); print( list);
 		print("MIN"); print( list);
 		gflopstab <- c(gflopstab, list);
 		gflopstab <- c(gflopstab, list);

+ 11 - 6
tests/mult/sched.r

@@ -33,8 +33,9 @@ parse <- function (size, sched)
 	filename = paste("timings-sched/sched", sched, size, sep=".");
 	filename = paste("timings-sched/sched", sched, size, sep=".");
 
 
 	if (file.exists(filename))
 	if (file.exists(filename))
-	{	ret <- scan(paste("timings-sched/sched", sched, size, sep="."));
-		return(ret);
+	{
+		ret <- scan(paste("timings-sched/sched", sched, size, sep="."));
+	    	return(ret);
 	};
 	};
 
 
 	return(NULL);
 	return(NULL);
@@ -53,7 +54,8 @@ handle_sched <- function(sched)
 	gflopstab <- NULL;
 	gflopstab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- handle_size(size, sched);
 		list <- handle_size(size, sched);
 		gflopstab <- c(gflopstab, list);
 		gflopstab <- c(gflopstab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));
@@ -69,7 +71,8 @@ handle_sched_mean <- function(sched)
 	meantab <- NULL;
 	meantab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- mean(handle_size(size, sched));
 		list <- mean(handle_size(size, sched));
 		meantab <- c(meantab, list);
 		meantab <- c(meantab, list);
 		sizetab <- c(sizetab, array(size, c(length(list))));
 		sizetab <- c(sizetab, array(size, c(length(list))));
@@ -86,7 +89,8 @@ handle_sched_max <- function(sched)
 	gflopstab <- NULL;
 	gflopstab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		prout <- handle_size(size, sched);
 		prout <- handle_size(size, sched);
 		list <- max(prout);
 		list <- max(prout);
 		print(list);
 		print(list);
@@ -105,7 +109,8 @@ handle_sched_min <- function(sched)
 	gflopstab <- NULL;
 	gflopstab <- NULL;
 	sizetab <- NULL;
 	sizetab <- NULL;
 
 
-	for (size in sizelist) {
+	for (size in sizelist)
+	{
 		list <- min((handle_size(size, sched)));
 		list <- min((handle_size(size, sched)));
 		print("MIN"); print( list);
 		print("MIN"); print( list);
 		gflopstab <- c(gflopstab, list);
 		gflopstab <- c(gflopstab, list);

+ 2 - 1
tests/opt/datawizard/wt_broadcast.c

@@ -70,7 +70,8 @@ static void increment_cpu_kernel(void *descr[], void *arg)
 	*tokenptr = *tokenptr + 1;
 	*tokenptr = *tokenptr + 1;
 }
 }
 
 
-static struct starpu_codelet increment_cl = {
+static struct starpu_codelet increment_cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {increment_cuda_kernel, NULL},
 	.cuda_funcs = {increment_cuda_kernel, NULL},

+ 2 - 1
tests/opt/datawizard/wt_host.c

@@ -71,7 +71,8 @@ static void increment_cpu_kernel(void *descr[], void *arg)
 	*tokenptr = *tokenptr + 1;
 	*tokenptr = *tokenptr + 1;
 }
 }
 
 
-static struct starpu_codelet increment_cl = {
+static struct starpu_codelet increment_cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 #ifdef STARPU_USE_CUDA
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {increment_cuda_kernel, NULL},
 	.cuda_funcs = {increment_cuda_kernel, NULL},

+ 4 - 2
tests/overlap/overlap.c

@@ -54,12 +54,14 @@ static void codelet_sleep(void *descr[], __attribute__ ((unused)) void *_args)
 	usleep(TASKDURATION);
 	usleep(TASKDURATION);
 }
 }
 
 
-static struct starpu_perfmodel model = {
+static struct starpu_perfmodel model =
+{
 	.type = STARPU_HISTORY_BASED,
 	.type = STARPU_HISTORY_BASED,
 	.symbol = NULL /* to be defined later */
 	.symbol = NULL /* to be defined later */
 };
 };
 
 
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.cpu_funcs = {codelet_sleep, NULL},
 	.cpu_funcs = {codelet_sleep, NULL},
 	.cuda_funcs = {codelet_sleep, NULL},
 	.cuda_funcs = {codelet_sleep, NULL},

+ 4 - 2
tests/parallel_tasks/explicit_combined_worker.c

@@ -35,7 +35,8 @@ static void codelet_null(void *descr[], __attribute__ ((unused)) void *_args)
 #endif
 #endif
 }
 }
 
 
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.type = STARPU_FORKJOIN,
 	.type = STARPU_FORKJOIN,
 	.max_parallelism = INT_MAX,
 	.max_parallelism = INT_MAX,
@@ -52,7 +53,8 @@ int main(int argc, char **argv)
 	unsigned *v;
 	unsigned *v;
 	int ret;
 	int ret;
 
 
-//        struct starpu_conf conf = {
+//      struct starpu_conf conf =
+//	{
 //                .sched_policy_name = "pheft",
 //                .sched_policy_name = "pheft",
 //                .ncpus = -1,
 //                .ncpus = -1,
 //                .ncuda = -1,
 //                .ncuda = -1,

+ 6 - 3
tests/parallel_tasks/parallel_kernels.c

@@ -35,12 +35,14 @@ static void codelet_null(void *descr[], __attribute__ ((unused)) void *_args)
 #endif
 #endif
 }
 }
 
 
-struct starpu_perfmodel model = {
+struct starpu_perfmodel model =
+{
 	.type = STARPU_HISTORY_BASED,
 	.type = STARPU_HISTORY_BASED,
 	.symbol = "parallel_kernel_test"
 	.symbol = "parallel_kernel_test"
 };
 };
 
 
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.type = STARPU_FORKJOIN,
 	.type = STARPU_FORKJOIN,
 	.max_parallelism = INT_MAX,
 	.max_parallelism = INT_MAX,
@@ -58,7 +60,8 @@ int main(int argc, char **argv)
 	starpu_data_handle_t v_handle;
 	starpu_data_handle_t v_handle;
 	unsigned *v;
 	unsigned *v;
 
 
-        struct starpu_conf conf = {
+        struct starpu_conf conf =
+	{
                 .sched_policy_name = "pheft",
                 .sched_policy_name = "pheft",
                 .ncpus = -1,
                 .ncpus = -1,
                 .ncuda = -1,
                 .ncuda = -1,

+ 6 - 3
tests/parallel_tasks/parallel_kernels_spmd.c

@@ -37,12 +37,14 @@ static void codelet_null(void *descr[], __attribute__ ((unused)) void *_args)
 #endif
 #endif
 }
 }
 
 
-struct starpu_perfmodel model = {
+struct starpu_perfmodel model =
+{
 	.type = STARPU_HISTORY_BASED,
 	.type = STARPU_HISTORY_BASED,
 	.symbol = "parallel_kernel_test_spmd"
 	.symbol = "parallel_kernel_test_spmd"
 };
 };
 
 
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.type = STARPU_SPMD,
 	.type = STARPU_SPMD,
 	.max_parallelism = INT_MAX,
 	.max_parallelism = INT_MAX,
@@ -60,7 +62,8 @@ int main(int argc, char **argv)
 	starpu_data_handle_t v_handle;
 	starpu_data_handle_t v_handle;
 	unsigned *v;
 	unsigned *v;
 
 
-        struct starpu_conf conf = {
+        struct starpu_conf conf =
+	{
                 .sched_policy_name = "pheft",
                 .sched_policy_name = "pheft",
                 .ncpus = -1,
                 .ncpus = -1,
                 .ncuda = -1,
                 .ncuda = -1,

+ 2 - 1
tests/parallel_tasks/spmd_pgreedy.c

@@ -41,7 +41,8 @@ static void codelet_null(void *descr[], __attribute__ ((unused)) void *_args)
 #endif
 #endif
 }
 }
 
 
-static struct starpu_codelet cl = {
+static struct starpu_codelet cl =
+{
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.where = STARPU_CPU|STARPU_CUDA|STARPU_OPENCL,
 	.type = STARPU_SPMD,
 	.type = STARPU_SPMD,
 	.max_parallelism = INT_MAX,
 	.max_parallelism = INT_MAX,

+ 2 - 1
tests/perfmodels/non_linear_regression_based.c

@@ -36,7 +36,8 @@ static void memset_cpu(void *descr[], void *arg)
 	memset(ptr, 42, n);
 	memset(ptr, 42, n);
 }
 }
 
 
-static struct starpu_perfmodel model = {
+static struct starpu_perfmodel model =
+{
 	.type = STARPU_NL_REGRESSION_BASED,
 	.type = STARPU_NL_REGRESSION_BASED,
 	.symbol = "non_linear_memset_regression_based"
 	.symbol = "non_linear_memset_regression_based"
 };
 };

+ 10 - 5
tests/perfmodels/regression_based.c

@@ -37,12 +37,14 @@ static void memset_cpu(void *descr[], void *arg)
 	memset(ptr, 42, n);
 	memset(ptr, 42, n);
 }
 }
 
 
-static struct starpu_perfmodel model = {
+static struct starpu_perfmodel model =
+{
 	.type = STARPU_REGRESSION_BASED,
 	.type = STARPU_REGRESSION_BASED,
 	.symbol = "memset_regression_based"
 	.symbol = "memset_regression_based"
 };
 };
 
 
-static struct starpu_perfmodel nl_model = {
+static struct starpu_perfmodel nl_model =
+{
 	.type = STARPU_NL_REGRESSION_BASED,
 	.type = STARPU_NL_REGRESSION_BASED,
 	.symbol = "non_linear_memset_regression_based"
 	.symbol = "non_linear_memset_regression_based"
 };
 };
@@ -93,14 +95,17 @@ static void test_memset(int nelems, struct starpu_codelet *codelet)
         starpu_data_unregister(handle);
         starpu_data_unregister(handle);
 }
 }
 
 
-static void show_task_perfs(int size, struct starpu_task *task) {
+static void show_task_perfs(int size, struct starpu_task *task)
+{
 	unsigned workerid;
 	unsigned workerid;
-	for (workerid = 0; workerid < starpu_worker_get_count(); workerid++) {
+	for (workerid = 0; workerid < starpu_worker_get_count(); workerid++)
+	{
 		char name[16];
 		char name[16];
 		starpu_worker_get_name(workerid, name, sizeof(name));
 		starpu_worker_get_name(workerid, name, sizeof(name));
 
 
 		unsigned nimpl;
 		unsigned nimpl;
-		for (nimpl = 0; nimpl < STARPU_MAXIMPLEMENTATIONS; nimpl++) {
+		for (nimpl = 0; nimpl < STARPU_MAXIMPLEMENTATIONS; nimpl++)
+		{
 			FPRINTF(stdout, "Expected time for %d on %s:\t%f\n",
 			FPRINTF(stdout, "Expected time for %d on %s:\t%f\n",
 				size, name, starpu_task_expected_length(task, starpu_worker_get_perf_archtype(workerid), nimpl));
 				size, name, starpu_task_expected_length(task, starpu_worker_get_perf_archtype(workerid), nimpl));
 		}
 		}