This web mail archive is frozen.
This page is part of a frozen web archive of this mailing list.
You can still navigate around this archive, but know that no new mails
have been added to it since July of 2016.
Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.
Thanks for the fix. It is indeed the right solution. I'll make sure it
gets into the trunk asap.
On Jan 18, 2008, at 4:57 PM, Daniel G. Hyams wrote:
> Sorry to reply to my own mail, but the bug only affects
> In this changeset:
> In coll_self_allgatherv.c, the "extent" variable is never used. So
> fix is just to multiply
> "extent" by disps, on line 50. I've verified that this fixes the
> Daniel G. Hyams wrote:
>> I don't think that the displacements (disps) are being handled
>> in MPI_Allgatherv, for a single process case.
>> The disps are being handled as byte offsets, instead of 'item'
>> offsets...they need to be multiplied by the size, in bytes,
>> of the MPI_Datatype being sent.
>> This bug seems to be closely related this:
>> and probably is present in all of the routines listed there.
>> The following code demonstrates the problem; make sure you run it
>> as one
>> process only. The input and output should
>> be the same, but that is not the case.
>> #include <stdio.h>
>> #include <stdlib.h>
>> #include <mpi.h>
>> void tcalloc(int **p,int n)
>> *p = (int*)calloc(n,sizeof(int));
>> int main(int argc, char * argv)
>> int i;
>> int nto_global = 0;
>> int np = 1;
>> int *propto_global = NULL;
>> int *propto = NULL;
>> int nto = 10;
>> int counts;
>> int displs;
>> for (i = 1; i <= nto; i++) propto[i] = i;
>> counts = nto;
>> displs = 1;
>> // BUG: if I set displs above to 4, things work as expected.
>> the displacements
>> // are supposed to be the number of items, not bytes.
>> for (i = 0; i < np; i++)
>> nto_global += counts[i];
>> tcalloc(&propto_global, nto_global+1);
>> for (i = 1; i <= nto; i++) printf("INPUT %d --> %d\n",i,propto[i]);
>> for (i = 1; i <= nto_global; i++) printf("OUTPUT %d -->
> Daniel G. Hyams
> Associate Research Professor
> UT SimCenter at Chattanooga
> Email: Daniel-Hyams_at_[hidden]
> Phone: 423-425-5491
> Fax: 423-425-5517
> devel mailing list
- application/pkcs7-signature attachment: smime.p7s