[mpich-discuss] Bug reporting for some mpi/rma tests

Clément Foyer clement.foyer at gmail.com
Tue May 31 09:31:48 CDT 2016


Hi everyone,

As I was using your tests I was surprised by some of them.

The first one is test/mpi/rma/get_acc_local.c, as you accumulate NITER
times acc_val into out_val, initialized at 0. At each step of the loop you
check whether the out_val is equal to i times acc_val. As i start from 0,
you expect the result to be 0 instead of acc_val. I suppose you should have
had i start from 1, or change the test line 36 to "if (out_val != acc_val *
(i + 1)) {", with an adaptation of the debug message as well.

The second test in which I found errors is mpi/rma/selfrma.c. The
parameters given to the printf function at lines 66, 80 and 95 are in the
wrong order. It should be "j, winbuf[j], sbuf[j]" instead of "winbuf[j], j,
sbuf[j]". And at the line 95, the header to the debug line is "AccVec", as
it seems it should have been "GetVec".

I hope that was useful for you. If that was was unnecessary, please tell me
so I won't bother you with this kind of message again.

Sincerely yours,

C. FOYER
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20160531/876cc752/attachment.html>
-------------- next part --------------
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list