MPI communication question

This is a discussion on MPI communication question within the Tech Board forums, part of the Community Boards category; I am having trouble finding a way to implement communication between processes using MPI. I have a cube split up ...

  1. #1
    Registered User
    Join Date
    Dec 2009
    Location
    Colorado
    Posts
    41

    MPI communication question

    I am having trouble finding a way to implement communication between processes using MPI. I have a cube split up into sub-cubes and each process is in charge of calculations over a certain subset of these sub-cubes. Inside the sub-cubes are particles that are moved around during the simulation. My question is this:

    How can I implement a communication routine so that if a particle moves outside a process' subset of sub-cubes it will send the data of that particle to another process.

    The send part is easy, my trouble is I don't know how to get the other process to receive the data. Any help is greatly appreciated.

  2. #2
    Registered User jeffcobb's Avatar
    Join Date
    Dec 2009
    Location
    Henderson, NV
    Posts
    875
    I am writing my own IPC system ATM. Has more to do with needing fewer dependencies in a variety of environments than anything specifically wrong with the existing libs.
    C/C++ Environment: GNU CC/Emacs
    Make system: CMake
    Debuggers: Valgrind/GDB

  3. #3
    Registered User
    Join Date
    Dec 2009
    Location
    Colorado
    Posts
    41
    I don't understand what you said. Is that a comment or advice? This isn't a question on which function I should use but more of a best approach to this problem. Right now my solution is to have all processes communicate after each calculation; however, this is extremely inefficient.

  4. #4
    Registered User
    Join Date
    Jun 2010
    Posts
    1

    One-Sided Communications.

    I think "One-Sided Communications" is what you're looking for.

    http://www.mpi-forum.org/docs/mpi-2.2/mpi22-report.pdf
    Chapter 11

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A question about a question
    By hausburn in forum C++ Programming
    Replies: 3
    Last Post: 04-25-2010, 06:24 AM
  2. SDL buffer channels question
    By TriKri in forum Game Programming
    Replies: 3
    Last Post: 12-09-2009, 05:52 PM
  3. Newbie question, C #
    By mate222 in forum C# Programming
    Replies: 4
    Last Post: 12-01-2009, 06:24 AM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 10:47 PM
  5. Serial communication packets
    By Roaring_Tiger in forum C Programming
    Replies: 3
    Last Post: 04-26-2003, 09:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21