Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
these assertions were a bit strong
authorAugustin Degomme <augustin.degomme@imag.fr>
Mon, 28 Jul 2014 14:44:44 +0000 (16:44 +0200)
committerAugustin Degomme <augustin.degomme@imag.fr>
Mon, 28 Jul 2014 15:11:32 +0000 (17:11 +0200)
src/smpi/colls/bcast-SMP-binary.c
src/smpi/colls/bcast-SMP-linear.c

index 19cf892..04b40b2 100644 (file)
@@ -32,9 +32,6 @@ int smpi_coll_tuned_bcast_SMP_binary(void *buf, int count,
   // if the number of cores is one, the platform may be simulated with 1 node = 1 core
   if (host_num_core == 1) host_num_core = NUM_CORE;
 
   // if the number of cores is one, the platform may be simulated with 1 node = 1 core
   if (host_num_core == 1) host_num_core = NUM_CORE;
 
-  if(size%host_num_core)
-    THROWF(arg_error,0, "bcast SMP binary can't be used with non multiple of NUM_CORE=%d number of processes ! ",host_num_core);
-
   int segment = bcast_SMP_binary_segment_byte / extent;
   int pipe_length = count / segment;
   int remainder = count % segment;
   int segment = bcast_SMP_binary_segment_byte / extent;
   int pipe_length = count / segment;
   int remainder = count % segment;
index aa865eb..ee7e3d2 100644 (file)
@@ -32,9 +32,6 @@ int smpi_coll_tuned_bcast_SMP_linear(void *buf, int count,
   // if the number of cores is one, the platform may be simulated with 1 node = 1 core
   if (num_core == 1) num_core = NUM_CORE;
 
   // if the number of cores is one, the platform may be simulated with 1 node = 1 core
   if (num_core == 1) num_core = NUM_CORE;
 
-  if(size%num_core)
-    THROWF(arg_error,0, "bcast SMP linear can't be used with non multiple of num_core=%d number of processes!",num_core);
-
   int segment = bcast_SMP_linear_segment_byte / extent;
   segment =  segment == 0 ? 1 :segment; 
   int pipe_length = count / segment;
   int segment = bcast_SMP_linear_segment_byte / extent;
   segment =  segment == 0 ? 1 :segment; 
   int pipe_length = count / segment;