瀏覽代碼

mpi/src, src: fix order parameter

Nathalie Furmento 7 年之前
父節點
當前提交
fbddae5fa9
共有 2 個文件被更改,包括 6 次插入7 次删除
  1. 2 2
      mpi/src/load_balancer/policy/data_movements_interface.c
  2. 4 5
      src/util/starpu_clusters_create.c

+ 2 - 2
mpi/src/load_balancer/policy/data_movements_interface.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2016                                     Inria
- * Copyright (C) 2017                                     CNRS
+ * Copyright (C) 2017, 2018                               CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -266,7 +266,7 @@ static struct starpu_data_interface_ops interface_data_movements_ops =
 	.describe = NULL
 };
 
-void data_movements_data_register(starpu_data_handle_t *handleptr, unsigned home_node, int *tags, int *ranks, int size)
+void data_movements_data_register(starpu_data_handle_t *handleptr, unsigned home_node, int *ranks, int *tags, int size)
 {
 	struct data_movements_interface data_movements =
 	{

+ 4 - 5
src/util/starpu_clusters_create.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2015-2017                                CNRS
+ * Copyright (C) 2015-2018                                CNRS
  * Copyright (C) 2015-2017                                Inria
  * Copyright (C) 2015-2016                                Université de Bordeaux
  *
@@ -377,7 +377,7 @@ void _starpu_cluster_group_init(struct _starpu_cluster_group *group,
 	group->clusters = _starpu_cluster_list_new();
 	group->father = father;
 	_STARPU_MALLOC(group->params, sizeof(struct _starpu_cluster_parameters));
-	_starpu_cluster_copy_parameters(group->params, father->params);
+	_starpu_cluster_copy_parameters(father->params, group->params);
 	return;
 }
 
@@ -391,7 +391,7 @@ void _starpu_cluster_init(struct _starpu_cluster *cluster,
 	cluster->workerids = NULL;
 	cluster->father = father;
 	_STARPU_MALLOC(cluster->params, sizeof(struct _starpu_cluster_parameters));
-	_starpu_cluster_copy_parameters(cluster->params, father->params);
+	_starpu_cluster_copy_parameters(father->params, cluster->params);
 }
 
 int _starpu_cluster_remove(struct _starpu_cluster_list *cluster_list,
@@ -451,8 +451,7 @@ void _starpu_cluster_init_parameters(struct _starpu_cluster_parameters *params)
 	return;
 }
 
-void _starpu_cluster_copy_parameters(struct _starpu_cluster_parameters *dst,
-				     struct _starpu_cluster_parameters *src)
+void _starpu_cluster_copy_parameters(struct _starpu_cluster_parameters *src, struct _starpu_cluster_parameters *dst)
 {
 	dst->min_nb = src->min_nb;
 	dst->max_nb = src->max_nb;