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

Multithreaded ABT_init and finailize #86

Open
shintaro-iwasaki opened this issue Feb 12, 2019 · 1 comment
Open

Multithreaded ABT_init and finailize #86

shintaro-iwasaki opened this issue Feb 12, 2019 · 1 comment

Comments

@shintaro-iwasaki
Copy link
Collaborator

shintaro-iwasaki commented Feb 12, 2019

The following breaks since ABT_finalize must be executed by a thread that runs ABT_init.

#pragma omp parallel for // pthreads
for (int i = 0; i < N; i++) {
  ABT_init(...);
  ABT_finalize(...);
}

It becomes a problem if multiple entities initialize Argobots (e.g., a user program and Argobots-aware MPICH).
This issue must be fixed to say it is truly thread safe.

I note that, in addition to technical difficulty, there are several things to be taken into account (e.g., number of ESs if multiple threads run ABT_init)

@shintaro-iwasaki
Copy link
Collaborator Author

#136 would be problematic. This solution needs to be aware of the affinity issue as well.

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

No branches or pull requests

1 participant