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

Fixup silent pointless comparison with zero in checked_narrow_cast #3566

Conversation

dalg24
Copy link
Member

@dalg24 dalg24 commented Nov 4, 2020

Copy link
Contributor

@masterleinad masterleinad left a comment

Choose a reason for hiding this comment

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

https://godbolt.org/z/5T9sv1 would be an alternative (as proposed in #3527 (comment))

core/src/KokkosExp_MDRangePolicy.hpp Outdated Show resolved Hide resolved
Co-authored-by: Daniel Arndt <arndtd@ornl.gov>
Copy link
Contributor

@ndellingwood ndellingwood left a comment

Choose a reason for hiding this comment

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

I confirm this resolved the intel compilation failures reported

@dalg24 dalg24 merged commit adfc8f5 into kokkos:develop Nov 4, 2020
@dalg24 dalg24 deleted the checked_narrow_cast_pointless_comparison_with_zero_issue_3554 branch November 4, 2020 17:41
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

4 participants