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

Adds proper float comparison for axpy test. #539

Merged
merged 1 commit into from
Jun 20, 2018

Conversation

tdd11235813
Copy link
Contributor

Fixes axpy test (refers to #537 )

  • adds proper floating point comparison by using Boost's relative difference

There is a ViewTest.hpp file, where float-equal warnings shall be ignored.
For the bytes comparison the warning pragmas will be removed (no floats compared here).
There is another line BOOST_VERIFY(*beginA == *beginB);, which indeed compares floats again.
It is possible to branch by value type for doing exact and floating-point comparison respectively. If you want me to do that in this PR, let me know.

@BenjaminW3 BenjaminW3 merged commit ccb6e00 into alpaka-group:develop Jun 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants