-
Notifications
You must be signed in to change notification settings - Fork 137
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
NNsearch returns neighbors in different order on MacOS - M1 #153
Comments
May come to float to int conversions, handled differently on M1 silicon, more information here |
Another hypothesis: ANN has its own boolean type, it may be the culprit (M1 has different int<->bool conversion rules). |
Tryed to define ANN_DLB_MAX as 1e300 (instead of using value from limits.h), did not work either. |
Tryed to compile ANN with all warnings activated -> did not see anything. |
So next thing to do is to determine which one of ANN or Geogram is right (and there is also the option that both are wrong !!). Let us output the IDs of the NNs when they differ, and compare with a "ground truth" obtained on an Intel... |
|
The problem (nearly) systematically happens when a pair of points is swapped in the two lists. |
On MacOS-M1 (macos-14 runner on github), some nearest neighbor search test fail (ANN and geogram return different results).
Debugging strategy:
The text was updated successfully, but these errors were encountered: