From 7b0e57abc89ceead0703f08dcbba30fbe9914771 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Mon, 28 Jul 2014 16:44:44 +0200 Subject: [PATCH] these assertions were a bit strong --- src/smpi/colls/bcast-SMP-binary.c | 3 --- src/smpi/colls/bcast-SMP-linear.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/smpi/colls/bcast-SMP-binary.c b/src/smpi/colls/bcast-SMP-binary.c index 19cf892bef..04b40b2240 100644 --- a/src/smpi/colls/bcast-SMP-binary.c +++ b/src/smpi/colls/bcast-SMP-binary.c @@ -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(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; diff --git a/src/smpi/colls/bcast-SMP-linear.c b/src/smpi/colls/bcast-SMP-linear.c index aa865eba92..ee7e3d2a66 100644 --- a/src/smpi/colls/bcast-SMP-linear.c +++ b/src/smpi/colls/bcast-SMP-linear.c @@ -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(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; -- 2.20.1