/* * Author: Sébastien Boisvert * Université Laval * * sample code to make openmpi-1.4.3 hang * * excluding the shared memory solves the problem. * * see Makefile * * */ #include #include #include #include #include #include using namespace std; class Rank{ int m_rank; int m_size; time_t m_startingPoint; int m_messageSize; void run(); void receiveMessages(); void sendMessages(); int getRank(); int getSize(); bool isAlive(); public: Rank(int argc,char**argv); }; int Rank::getSize(){ return m_size; } bool Rank::isAlive(){ int duration=30; return time(NULL)-m_startingPoint