Questions tagged [boost-mpi]

one of the Boost libraries, a C++-style wrapper around the Message Passing Interface (MPI) library for high-performance distributed computing.

80 questions
1
vote
2 answers

How to build boost::mpi library with Open MPI on Windows with Visual Studio 2010

I installed Open MPI 1.5.4 (64 bit) and I am trying to rebuild boost libraries (1.48) with bjam. I changed user-config.jam file, by adding using mpi line with explicit compiler path (although mpic++ is already in PATH environment variable): using…
Cătălin Pitiș
  • 14,123
  • 2
  • 39
  • 62
1
vote
1 answer

Boost.MPI/Boost.Interprocess - how to detect if processes run on same machine?

So I use boost.mpi to run my app on 2 machine in a cluster, each has 8 cores.so I get 16 processes startedd. I wonder how my processes can find out on which of my clusters thay are ran? How thay somehow make names to machinesand save them?
user1078642
  • 51
  • 1
  • 3
1
vote
0 answers

What could cause asymmetric throughput of MPI nonblocking messages?

I'm using MPI nonblocking messages to communicate between 2 tasks. The communication pattern is as follows: Each task has a master thread that receives messages from the other tasks. It has 5 or so work threads that do a computation and send…
Lutorm
  • 381
  • 2
  • 7
1
vote
1 answer

Failure in 1D std::vector boost serialization

I'm trying to serialize a std::vector as a member in the class, the attached code fails at throws segmentation fault that I've not been able to resolve this issue for weeks now. It's weird as it goes well in smaller size of container, but even this…
MA19
  • 510
  • 3
  • 15
1
vote
1 answer

How to setup cmake to link parallel boost-graph?

I am trying to set up CMake such that boost-graph is properly linked. But I am running into an error when doing find_package(Boost REQUIRED COMPONENTS graph mpi) # finding mpi is a problem -- Found boost_mpi 1.77.0 at…
cpchung
  • 774
  • 3
  • 8
  • 23
1
vote
0 answers

How to build Boost.MPI under Buildroot?

By default, package BR2_PACKAGE_BOOST_MPI does not build when cross-compiling in Buildroot: It requires detecting MPI (e.g. OpenMPI) configuration and libraries, and given this is not possible automatically (in the buildroot environment), the bjam…
herchu
  • 936
  • 7
  • 24
1
vote
0 answers

How to correctly use the builtin `MPI_DOUBLE_COMPLEX` for `std::complex` with Boost.MPI?

I want to transfer a large amount of std::complex numbers using Boost.MPI. In the Boost.MPI tutorial it is explained that To obtain optimal performance for small fixed-length data types not containing any pointers it is very important to…
Julius
  • 1,816
  • 10
  • 14
1
vote
1 answer

How to use boost mpi broadcast function in an efficient way?

I am trying to broadcast a value from a root process and receive it in all other processes. I have implemented it in the following two formats. 1. I used broadcast function in all processes (root and all other slaves) #include…
Mehrdad
  • 107
  • 8
1
vote
1 answer

MPI transmission of unknown sub-class with boost::mpi::packed_oarchive and packed_iarchive

I am trying to transmit a class of of unknown subclass, but known base class. I believe this should be possible using boost::serialization, BOOST_CLASS_EXPORT_GUID and boost::mpi, but I'm pretty new to C++ in general This is the code that I…
SimplyKnownAsG
  • 904
  • 9
  • 26
1
vote
3 answers

Is it possible to force MPI to always block on send?

Is there a way to force MPI to always block on send? This might be useful when looking for deadlocks in a distributed algorithm which otherwise depends on the buffering MPI might choose to do on send. For example, the following program (run with 2…
Călin
  • 347
  • 2
  • 13
1
vote
1 answer

boost mpi MPI_THREAD_MULTIPLE

I use mpich with MPI_THREAD_MULTIPLE support. From boost documentation: For variable-length data, e.g., serialized types and packed archives, two messages will be sent via MPI_Send: one containing the length of the data and the second containing the…
Alex
  • 1,047
  • 8
  • 21
1
vote
0 answers

MPI content/skeleton for variable mechanism?

I am wondering what the benefits are for the skelton & content implementation of MPI functionalities such as provided in Boost.MPI. As far as I understood is the skeleton&content approach ONLY beneficial if a message has a fixed size of arbitrary…
Gabriel
  • 8,990
  • 6
  • 57
  • 101
1
vote
1 answer

Boost::Serialization Mpi Sending array of user defined types

I want to send my Array class using boost Mpi template class Array { private: int size; T* data; public: // constructors + other stuff }; Here T can be any built in type or user defined type. Suppose I have a class complex struct…
Noman Javed
  • 51
  • 1
  • 2
1
vote
3 answers

Autoconf macro for Boost MPI?

I'm searching an autoconf macro to use in my configure.ac that checks for Boost MPI. It's not hard to find a couple of them on the Internet but none of the one I tried worked as expected. What ax_boost_mpi.m4 do you use? EDIT: I'll explain my…
baol
  • 4,362
  • 34
  • 44
1
vote
1 answer

How can I do an overlapping scatter using Boost.MPI?

I want to distribute a vector with overlapping elements. For example, if I had [1,2,3], I'd want [1,2] to get sent to one node, and [2,3] to get sent to another. I'm familiar with how to do this using MPI, but how would I do this using Boost::MPI?
Mike
  • 23,892
  • 18
  • 70
  • 90