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

Fix hardcoded floats in TreeTraversal #1195

Merged
merged 3 commits into from
Jan 6, 2025

Conversation

aprokop
Copy link
Contributor

@aprokop aprokop commented Dec 3, 2024

I'm not sure whether to classify it as a bug or not. Essentially, we've been using reduced precision inside nearest query when running with double. All distances were calculated and converted to floats. It could lead to wrong results when two different doubles are converted to the same float

Need to figure out how to test it.

@aprokop aprokop added the bug Something isn't working label Dec 3, 2024
@aprokop aprokop force-pushed the fix_hardcoded_floats_tree_traversal branch from 3eded6d to 231a61f Compare January 6, 2025 00:55
@aprokop aprokop force-pushed the fix_hardcoded_floats_tree_traversal branch from 231a61f to 5164118 Compare January 6, 2025 03:02
The status quo resulted in the following error with CUDA 11.5.2:

/var/jenkins/workspace/ArborX_PR-1195/src/spatial/detail/ArborX_TreeTraversal.hpp:157:64: error: '__T288' was not declared in this scope
  157 |       _buffer =
      |                                                                ^
/var/jenkins/workspace/ArborX_PR-1195/src/spatial/detail/ArborX_TreeTraversal.hpp:157:70: error: template argument 2 is invalid
  157 |       _buffer =
      |                                                                      ^
@aprokop aprokop merged commit aefa0f5 into arborx:master Jan 6, 2025
1 of 2 checks passed
@aprokop aprokop deleted the fix_hardcoded_floats_tree_traversal branch January 6, 2025 17:16
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.

1 participant