Advertisement
Guest User

Untitled

a guest
Jul 24th, 2012
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. Boost.MPI on Ubuntu 12.04
  2. g++ test.cpp -I/usr/include/mpich2 -L/usr/lib -lboost_mpi -lboost_serialization
  3.  
  4. mpiexec -n 2 ./a.out
  5.  
  6. g++ test.cpp -L/usr/lib -lboost_mpi -lboost_serialization -lmpi -I/usr/include/openmpi
  7.  
  8. /usr/bin/ld: /tmp/ccJ5ezv7.o: undefined reference to symbol 'ompi_op_set_cxx_callback'
  9. /usr/bin/ld: note: 'ompi_op_set_cxx_callback' is defined in DSO /usr/lib/libmpi.so.0 so try adding it to the linker command line
  10. /usr/lib/libmpi.so.0: could not read symbols: Invalid operation
  11.  
  12. mpic++ test.cpp -lboost_mpi -lboost_serialization
  13.  
  14. /usr/lib/libmpich.so: undefined reference to `MPL_trid'
  15.  
  16. mpic++ test.cpp -lboost_mpi -lboost_serialization -lmpi
  17.  
  18. Fatal error in PMPI_Errhandler_set: Invalid communicator, error stack:
  19. PMPI_Errhandler_set(118): MPI_Errhandler_set(comm=0x370500, errh=0x370be0) failed
  20. PMPI_Errhandler_set(70).: Invalid communicator
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement