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

changes to pioc.c, pio_lists.c to support async, also some temporary code #67

Merged
merged 2 commits into from
May 5, 2016

Conversation

edhartnett
Copy link
Collaborator

@edhartnett edhartnett commented May 5, 2016

In this pull request there are changed for pioc.c, mostly in the finalize function. The changes to compmaster and iomaster are in accordance with MPI docs and pass all tests.

There is also a change to pio_lists.c, which used to change the ncids when run with async. That doesn't work with the async code I wrote, so I have taken it out and cleaned up the function, as well as addind documentation.

The pull request also includes copies of three code files, which will be used for async development. The original code files are generated by perl scripts. After async development is complete, I will modify the perl scripts to output the async-capable code, and remove these three files. For now I would like to merge them to master before I make async changes, so you can easily see the changes that I make.

@edhartnett edhartnett changed the title changes to pioc.c to support async, also some temporary copies changes to pioc.c, pio_lists.c to support async, also some temporary code May 5, 2016

/* If asynch IO is in use, send the PIO_MSG_EXIT message from the
* comp master to the IO processes. */
if (ios->async_interface && !ios->comp_rank)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find !ios->comp_rank a confusing way to point to comp rank 0. I wonder if we should introduce a constant - say COMP_MASTER_RANK set to 0 so that we have ios->comp_rank == COMP_MASTER_RANK ? Do the same for IO_MASTER_RANK?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have changed it to ios->comp_rank == 0.

@jedwards4b jedwards4b merged commit 3faa0e9 into master May 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants