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

Set vector length to 1 for DEBUG mode #16

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Conversation

sjsprecious
Copy link
Collaborator

@sjsprecious sjsprecious commented Feb 4, 2025

As discussed in this issue #15 , when vectorization is enabled for Kokkos functions on CPU, there can be a spurious floating point exception if the array can not be divided evenly by the vector length and there is a padding with some garbage data.

To be consistent with E3SM, we set HOMMEXX_VECTOR_SIZE=1 explicitly when DEBUG mode is turned on and checking floating point exception is desired.

fix #15

@sjsprecious sjsprecious requested a review from jtruesdal February 4, 2025 16:59
@sjsprecious sjsprecious self-assigned this Feb 4, 2025
@sjsprecious sjsprecious added the bug Something isn't working label Feb 4, 2025
Copy link
Collaborator

@jtruesdal jtruesdal left a comment

Choose a reason for hiding this comment

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

Great. Thanks.

@jtruesdal jtruesdal merged commit 8d85308 into stormspeed Feb 4, 2025
1 check passed
@sjsprecious sjsprecious deleted the fix_debug_issue branch February 4, 2025 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Runtime error when using theta-l_kokkos dycore with DEBUG mode turned on
2 participants