On Nov 23, 2013, at 01:18 , Pierre Jolivet wrote:
> George,
>
> On Nov 22, 2013, at 5:21 AM, George Bosilca wrote:
>
>> Pierre,
>>
>> On Nov 22, 2013, at 02:39 , Pierre Jolivet wrote:
>>
>>> George,
>>> I completely agree that the code I sent was a good example of what NOT to
>>> do with
George,
On Nov 22, 2013, at 5:21 AM, George Bosilca wrote:
> Pierre,
>
> On Nov 22, 2013, at 02:39 , Pierre Jolivet wrote:
>
>> George,
>> I completely agree that the code I sent was a good example of what NOT to do
>> with collective and non-blocking communications, so I’m sending a better
Pierre,
On Nov 22, 2013, at 02:39 , Pierre Jolivet wrote:
> George,
> I completely agree that the code I sent was a good example of what NOT to do
> with collective and non-blocking communications, so I’m sending a better one.
> 1. I’m setting MPI_DATATYPE_NULL only on non-root processes. The r
George,
I completely agree that the code I sent was a good example of what NOT to do
with collective and non-blocking communications, so I’m sending a better one.
1. I’m setting MPI_DATATYPE_NULL only on non-root processes. The root has a
real datatype. Why should both match when using MPI_IN_PLA
Pierre,
There are several issues with the code you provided.
1. You can’t use an MPI_DATATYPE_NULL as the send datatype, not even when count
is zero. At least the root must provide a real datatype. In fact the type
signature of the send message (datatype and count) should match the type
signatu
This program makes no sense and is wrong in multiple ways.
Jeff
On Thu, Nov 21, 2013 at 4:19 PM, Pierre Jolivet wrote:
> Hello,
> The following code doesn’t execute properly :
> #include
>
> int main(int argc, char** argv) {
> int taskid, ntasks;
> MPI_Init(&argc, &argv);
>
Hello,
The following code doesn’t execute properly :
#include
int main(int argc, char** argv) {
int taskid, ntasks;
MPI_Init(&argc, &argv);
MPI_Request rq;
MPI_Comm_rank(MPI_COMM_WORLD,&taskid);
MPI_Comm_size(MPI_COMM_WORLD,&ntasks);
double* r;
int l = 0;