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

rfc: proposal to support deterministic primitive execution #1772

Open
wants to merge 1 commit into
base: rfcs
Choose a base branch
from

Conversation

mgouicem
Copy link
Contributor

@mgouicem mgouicem added the RFC A design document label Dec 14, 2023
We are not proposing a global settting for deterministic behavior as
those can typically cause unwanted global synchronizations, and do not
seem to be needed. This can be revised if there is a usage scenario
for global setting.
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you saying that there's no sense in same calls as we have for fpmath: get_default_fpmath_mode() and set_default_fpmath_mode?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. For fpmath, we have a global state (default_fpmath_mode) because of the environment variable controls.

For this feature though, there is no request to enable it though an environment variable, so we get to enable it without introducing a global state to the library. I checked with FWK contacts and it seems that passing an attribute is aligned with current FWK implementation (+ @jgong5)

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

Successfully merging this pull request may close these issues.

None yet

3 participants