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

Moving away from static initialization #93

Open
lpottier opened this issue Jan 14, 2025 · 0 comments
Open

Moving away from static initialization #93

lpottier opened this issue Jan 14, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@lpottier
Copy link
Collaborator

lpottier commented Jan 14, 2025

Currently AMS relies on static initialization (cf AMSWrap). Static initialization can lead to tricky situations and SIOF.

Proposition: Remove the static initialization by relying on explicit functions like AMSInit/AMSFinalize (e.g., similar to what MPI is doing).

We could use std::call_once to call AMS initialization routine and make it transparent to the users.

@lpottier lpottier added the enhancement New feature or request label Jan 14, 2025
@lpottier lpottier self-assigned this Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant