Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using tags? Using MPI_Waitall? #12

Open
natwall27 opened this issue May 30, 2016 · 2 comments
Open

Using tags? Using MPI_Waitall? #12

natwall27 opened this issue May 30, 2016 · 2 comments
Labels

Comments

@natwall27
Copy link

Does it make sense to use tags to make sure data is being sent/received to the appropriate pointers?

Also, could MPI_Wait(all) be useful to distinguish the communications?

@quantheory
Copy link
Member

In this case, it shouldn't be necessary to use tags, since any given task, it is only getting one piece of information from the left, and one piece from the right. There shouldn't be any need to distinguish which pointers are being received, since the rank of the other task should be enough.

Tags are usually only necessary when task A is sending two pieces of information to task B, and at least one of them is asynchronous so that they might be sent/received in any order.

@natwall27
Copy link
Author

Of course! I forgot that the sender is declared in the MPI_Recv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants