You might want to look at the Boost.mpi project.  They wrote some nice C++ 
wrappers around MPI to handle things like STL vectors, etc.


On Jul 7, 2010, at 5:07 AM, Saygin Arkan wrote:

> Hello,
> 
> I'm a newbie on MPI, just playing around with the things.
> I've searched through the internet but couldn't find an appropriate code 
> example for my problem.
> 
> I'm making comparisons, correlations on my cluster, and gaining the results 
> like this:
> vector<ComparisonResult> results;
> 
> In every node, they calculate and create the results array, in their local 
> storage.
> And then I'd like to collect these vectors in my server node, rank (0).
> 
> I had done this with MPI gather but just for double arrays, not with objects 
> or vectors.
> 
> I have some guess about MPI::Create_contiguous, or MPI::Create_vector 
> functions,
> but all these ask for another associated MPI type, such as CHAR or INT or etc.
> And I don't know if I should use packing somehow...
> 
> is there a way to collect these vectors in my server node with Gather 
> function?
> or even with send & recv?
> 
> Thanks a lot, 
> 
> -- 
> Saygin _______________________________________________
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users


-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/


Reply via email to