XBT_DEBUG("Copy the data over");
if(smpi_is_shared(buff, src_private_blocks, &src_offset)) {
src_private_blocks = shift_and_frame_private_blocks(src_private_blocks, src_offset, buff_size);
- if (src_private_blocks.size()==1 && (src_private_blocks[0].second - src_private_blocks[0].first)==buff_size){//simple shared malloc ... return.
+ if (src_private_blocks.size()==0){//simple shared malloc ... return.
XBT_VERB("Sender is shared. Let's ignore it.");
smpi_cleanup_comm_after_copy(comm, buff);
return;
}
if (smpi_is_shared((char*)comm->dst_buff_, dst_private_blocks, &dst_offset)) {
dst_private_blocks = shift_and_frame_private_blocks(dst_private_blocks, dst_offset, buff_size);
- if (src_private_blocks.size()==1 && (src_private_blocks[0].second - src_private_blocks[0].first)==buff_size){//simple shared malloc ... return.
+ if (dst_private_blocks.size()==0){//simple shared malloc ... return.
XBT_VERB("Receiver is shared. Let's ignore it.");
smpi_cleanup_comm_after_copy(comm, buff);
return;
elif [ -f /bin/freebsd-version ]; then
os=$(uname -s)
ver=$(freebsd-version -u)
+elif [ -f /etc/version ]; then
+ read -r os ver < /etc/release
elif [ -f /etc/os-release ]; then
# freedesktop.org and systemd, put last as usually missing useful info
. /etc/os-release