Browse Source

fix indentation coherency

Samuel Thibault 4 years ago
parent
commit
f25f28328e
4 changed files with 10 additions and 10 deletions
  1. 2 2
      configure.ac
  2. 2 2
      src/core/topology.c
  3. 1 1
      src/core/workers.c
  4. 5 5
      src/datawizard/coherency.c

+ 2 - 2
configure.ac

@@ -2393,7 +2393,7 @@ if test x$maxnodes = x0 ; then
 		if test x$enable_mic = xyes ; then
 		if test x$enable_mic = xyes ; then
 			nodes=`expr $nodes + $nmaxmicdev`
 			nodes=`expr $nodes + $nmaxmicdev`
 		fi
 		fi
-                if test x$enable_fpga = xyes ; then
+		if test x$enable_fpga = xyes ; then
 			# we could have used nmaxcudadev + 1, but this would certainly give an
 			# we could have used nmaxcudadev + 1, but this would certainly give an
 			# odd number.
 			# odd number.
 			nodes=`expr $nodes + $nmaxfpgadev`
 			nodes=`expr $nodes + $nmaxfpgadev`
@@ -2470,7 +2470,7 @@ if test x$enable_simgrid != xyes; then
 		nmaxcudadev=0
 		nmaxcudadev=0
 	fi
 	fi
 
 
-        if test x$enable_fpga != xyes; then
+	if test x$enable_fpga != xyes; then
 		nmaxfpgadev=0
 		nmaxfpgadev=0
 	fi
 	fi
 	if test x$enable_opencl != xyes; then
 	if test x$enable_opencl != xyes; then

+ 2 - 2
src/core/topology.c

@@ -3145,8 +3145,8 @@ int _starpu_build_topology(struct _starpu_machine_config *config, int no_mp_conf
 	config->cuda_nodeid = -1;
 	config->cuda_nodeid = -1;
 	config->opencl_nodeid = -1;
 	config->opencl_nodeid = -1;
 	config->mic_nodeid = -1;
 	config->mic_nodeid = -1;
-        config->fpga_nodeid = -1;
-        config->mpi_nodeid = -1;
+	config->fpga_nodeid = -1;
+	config->mpi_nodeid = -1;
 	for (i = 0; i < starpu_worker_get_count(); i++)
 	for (i = 0; i < starpu_worker_get_count(); i++)
 	{
 	{
 		switch (starpu_worker_get_type(i))
 		switch (starpu_worker_get_type(i))

+ 1 - 1
src/core/workers.c

@@ -1109,7 +1109,7 @@ int starpu_conf_init(struct starpu_conf *conf)
 		conf->reserve_ncpus++;
 		conf->reserve_ncpus++;
 	conf->ncuda = starpu_get_env_number("STARPU_NCUDA");
 	conf->ncuda = starpu_get_env_number("STARPU_NCUDA");
 	conf->nopencl = starpu_get_env_number("STARPU_NOPENCL");
 	conf->nopencl = starpu_get_env_number("STARPU_NOPENCL");
-        conf->nfpga = starpu_get_env_number("STARPU_NFPGA");
+	conf->nfpga = starpu_get_env_number("STARPU_NFPGA");
 	conf->nmic = starpu_get_env_number("STARPU_NMIC");
 	conf->nmic = starpu_get_env_number("STARPU_NMIC");
 	conf->nmpi_ms = starpu_get_env_number("STARPU_NMPI_MS");
 	conf->nmpi_ms = starpu_get_env_number("STARPU_NMPI_MS");
 	conf->calibrate = starpu_get_env_number("STARPU_CALIBRATE");
 	conf->calibrate = starpu_get_env_number("STARPU_CALIBRATE");

+ 5 - 5
src/datawizard/coherency.c

@@ -37,7 +37,7 @@
 static int link_supports_direct_transfers(starpu_data_handle_t handle, unsigned src_node, unsigned dst_node, unsigned *handling_node);
 static int link_supports_direct_transfers(starpu_data_handle_t handle, unsigned src_node, unsigned dst_node, unsigned *handling_node);
 int _starpu_select_src_node(starpu_data_handle_t handle, unsigned destination)
 int _starpu_select_src_node(starpu_data_handle_t handle, unsigned destination)
 {
 {
-        int src_node = -1;
+	int src_node = -1;
 	unsigned i;
 	unsigned i;
 
 
 	unsigned nnodes = starpu_memory_nodes_get_count();
 	unsigned nnodes = starpu_memory_nodes_get_count();
@@ -109,7 +109,7 @@ int _starpu_select_src_node(starpu_data_handle_t handle, unsigned destination)
 	int i_ram = -1;
 	int i_ram = -1;
 	int i_gpu = -1;
 	int i_gpu = -1;
 	int i_disk = -1;
 	int i_disk = -1;
-        int i_fpga = -1;
+	int i_fpga = -1;
 
 
 	/* Revert to dumb strategy: take RAM unless only a GPU has it */
 	/* Revert to dumb strategy: take RAM unless only a GPU has it */
 	for (i = 0; i < nnodes; i++)
 	for (i = 0; i < nnodes; i++)
@@ -146,11 +146,11 @@ int _starpu_select_src_node(starpu_data_handle_t handle, unsigned destination)
 				i_gpu = i;
 				i_gpu = i;
 
 
 			if (starpu_node_get_kind(i) == STARPU_CPU_RAM ||
 			if (starpu_node_get_kind(i) == STARPU_CPU_RAM ||
-                            starpu_node_get_kind(i) == STARPU_MPI_MS_RAM)
+			    starpu_node_get_kind(i) == STARPU_MPI_MS_RAM)
 				i_ram = i;
 				i_ram = i;
 			if (starpu_node_get_kind(i) == STARPU_DISK_RAM)
 			if (starpu_node_get_kind(i) == STARPU_DISK_RAM)
 				i_disk = i;
 				i_disk = i;
-                        if (starpu_node_get_kind(i) == STARPU_FPGA_RAM)
+			if (starpu_node_get_kind(i) == STARPU_FPGA_RAM)
 				i_fpga = i;
 				i_fpga = i;
 		}
 		}
 	}
 	}
@@ -161,7 +161,7 @@ int _starpu_select_src_node(starpu_data_handle_t handle, unsigned destination)
 	/* no luck we have to use the disk memory */
 	/* no luck we have to use the disk memory */
 	else if (i_gpu != -1)
 	else if (i_gpu != -1)
 		src_node = i_gpu;
 		src_node = i_gpu;
-        else if (i_fpga != -1)
+	else if (i_fpga != -1)
 		src_node = i_fpga;
 		src_node = i_fpga;
 	else
 	else
 		src_node = i_disk;
 		src_node = i_disk;