one of the Boost libraries, a C++-style wrapper around the Message Passing Interface (MPI) library for high-performance distributed computing.
Questions tagged [boost-mpi]
80 questions
                    
                    8
                    
            votes
                
                2 answers
            
        trying to build Boost MPI, but the lib files are not created. What's going on?
I am trying to run a program with Boost MPI, but the thing is I don't have the .lib. So I try to create one by following the instruction at http://www.boost.org/doc/libs/1_43_0/doc/html/mpi/getting_started.html#mpi.config 
The instruction says "For…
         
    
    
        Karl
        
- 5,613
- 13
- 73
- 107
                    7
                    
            votes
                
                2 answers
            
        Boost.MPI vs Boost.Asio
Good day!
What difference between these libraries?
I read MPI's docs and have small experience with asio. For me it's different 
implementations of network communication and no more.
But each of them introduces different abstractions ( I'm not sure…
         
    
    
        Iakov Minochkin
        
- 432
- 2
- 10
                    7
                    
            votes
                
                2 answers
            
        MPI gather/reduce operation confusion?
In the boost tutorial there are examples of gather and reduce operations. The code for gather is as follows:
#include 
#include 
#include 
#include 
namespace mpi = boost::mpi;
int main(int argc, char*…    
         
    
    
        sc_ray
        
- 7,803
- 11
- 63
- 100
                    6
                    
            votes
                
                1 answer
            
        Multithreading with C++ API
i am trying to parallel my program using OpenMP and sometimes i feels that i am reaching a dead end.
I would like to share variables in a function member that i defined (and initialized) in the class. If i understood correctly, it is not possible…
         
    
    
        Eagle
        
- 3,362
- 5
- 34
- 46
                    6
                    
            votes
                
                1 answer
            
        Is there a limit for the message size in mpi using boost::mpi?
I'm currently writing a simulation using boost::mpi on top of openMPI and everything works great. However once I scale up the system and therefore have to send larger std::vectors I get errors.
I've reduced the issue to the following…
         
    
    
        tik
        
- 63
- 5
                    5
                    
            votes
                
                5 answers
            
        Multi-Core Programming. Boost's MPI, OpenMP, TBB, or something else?
I am totally a novice in Multi-Core Programming, but I do know how to program C++.
Now, I am looking around for Multi-Core Programming library. I just want to give it a try, just for fun, and right now, I found 3 APIs, but I am not sure which one…
         
    
    
        Karl
        
- 5,613
- 13
- 73
- 107
                    5
                    
            votes
                
                1 answer
            
        Which kind of diagram for parallel code documentation?
I have some parallel code (implemented using MPI) that needs to be documented. I'd like to have a flow-diagram describing it's high-level strategy.
What kind of diagram do you use to describe send, receive, broadcast, gather, reduction and other…
         
    
    
        baol
        
- 4,362
- 34
- 44
                    4
                    
            votes
                
                3 answers
            
        c++: MPI communicator as global variable
I need the MPI world communicator to be accessible in functions/class member functions.  But by design/convention, MPI environments and communicators are always defined and initialized at the beginning of int main().
The only, simple solution I can…
         
    
    
        cmo
        
- 3,762
- 4
- 36
- 64
                    4
                    
            votes
                
                1 answer
            
        Send a simple boost graph object via boost:MPI got error
I am making a test by modifying the code 'serialize.cpp' in '/apps/boost_1_56_0/libs/graph/test' and trying to send a boost graph object over the network via boost MPI.
It compiled fine, but when I ran the executable using mpirun, I got this…
         
    
    
        user3658306
        
- 217
- 4
- 15
                    3
                    
            votes
                
                1 answer
            
        Can I tell Boost.MPI which class version to use with Boost.Serialization?
I'm using Boost.MPI to exchange messages between processes. Each message carries one of my classes, serialized using Boost.Serialization. I also use the same serialization code to save that class to a file. What I need to send over MPI is smaller…
         
    
    
        foxcub
        
- 2,517
- 2
- 27
- 27
                    3
                    
            votes
                
                4 answers
            
        Boost.MPI: What's received isn't what was sent!
I am relatively new to using Boost MPI. I have got the libraries installed, the code compiles, but I am getting a very odd error - some integer data received by the slave nodes is not what was sent by the master. What is going on?
I am using boost…
         
    
    
        Alan Reynolds
        
- 131
- 6
                    3
                    
            votes
                
                1 answer
            
        boost::mpi blocking IO not interrupted by linux signals
I use boost::mpi, OpenMPI. boost::mpi::communicator::recv (blocking version) is not interrupted by Linux signals. How can my program can be terminated in the right way with SIGTERM signal?
         
    
    
        Alex
        
- 1,047
- 8
- 21
                    3
                    
            votes
                
                0 answers
            
        fast mpi right rotate large data
I want to move data to right in a circular way once using MPI. That is, if you have 4 nodes, 1->2, 2->3, 3->4, 4->1. I am using boost mpi and have the following code to do it.
mat new_W(this->W.n_rows,this->W.n_cols);
int p_send = MPI_RANK + 1 >=…
         
    
    
        Ramakrishnan Kannan
        
- 604
- 1
- 11
- 24
                    3
                    
            votes
                
                3 answers
            
        Unable to run OpenMPI across more than two machines
When attempting to run the first example in the boost::mpi tutorial, I was unable to run across more than two machines.  Specifically, this seemed to run fine:
mpirun -hostfile hostnames -np 4 boost1
with each hostname in hostnames as … 
         
    
    
        rcollyer
        
- 10,475
- 4
- 48
- 75
                    3
                    
            votes
                
                1 answer
            
        Boost::serialization and boost::mpi to broadcast derived class via base class pointer
I am trying to use boost::mpi::broadcast to send a derived class to all nodes via a base class pointer.  To do this, I am using the boost::serialization library to serialize my classes.  My code, however, does not compile and I get the errors "class…
         
    
    
        user1809481
        
- 81
- 5