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

ROMIO: avoid using global variables, as not thread-safe #6972

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wkliao
Copy link
Contributor

@wkliao wkliao commented Apr 7, 2024

move the following global variables defined in ad_tuning.c into ADIOI_FileD struct as members of a file handle.
int romio_write_aggmethod;
int romio_read_aggmethod;
int romio_onesided_no_rmw;
int romio_onesided_always_rmw;
int romio_onesided_inform_rmw;
int romio_tunegather;

move the following global variables defined in ad_tuning.c into
ADIOI_FileD struct as members of a file handle.
    int romio_write_aggmethod;
    int romio_read_aggmethod;
    int romio_onesided_no_rmw;
    int romio_onesided_always_rmw;
    int romio_onesided_inform_rmw;
    int romio_tunegather;
wkliao added a commit to wkliao/mpich that referenced this pull request Apr 8, 2024
wkliao added a commit to wkliao/mpich that referenced this pull request Apr 9, 2024
wkliao added a commit to wkliao/mpich that referenced this pull request Apr 9, 2024
wkliao added a commit to wkliao/mpich that referenced this pull request Apr 16, 2024
wkliao added a commit to wkliao/mpich that referenced this pull request Apr 17, 2024
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.

None yet

1 participant