j***@gmail.com
2013-02-05 16:30:41 UTC
Hello,
Consider something like this:
---
typedef struct TS {
double a,b,c;
} S;
...
S x,y;
...
MPI_Allreduce(&x, &y, 3, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD);
---
Is the above code completely portable (without using MPI_Type_struct and all)?
Thanks!
JS
Consider something like this:
---
typedef struct TS {
double a,b,c;
} S;
...
S x,y;
...
MPI_Allreduce(&x, &y, 3, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD);
---
Is the above code completely portable (without using MPI_Type_struct and all)?
Thanks!
JS