-
Notifications
You must be signed in to change notification settings - Fork 156
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
[FEA]: Create CUPROJ_EXPECT_VECTORS_EQUIVALENT
for cuproj testing
#1510
Comments
Hi @wblangdon! Thanks for submitting this issue - our team has been notified and we'll get back to you as soon as we can! |
This is because cuspatial's test suite does not yet work with |
Yip that has worked.-) New code T tolerance = std::is_same_v<T, double> ? T{1e-6} : T{10}; expect_vector_equivalent.bat -rw------- 1 ucacbbl crest 916112 Dec 31 11:36 expect_vector_equivalent.o end main(). BTW despite the use of thrust::device_vector CUSPATIAL_EXPECT_VECTORS_EQUIVALENT is much slower than doing the proj->transform ps: I have put my code on GitHub https://github.com/wblangdon/cuproj_example |
@wblangdon can this be closed now? |
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT contains multiple type checks. Thanks |
I think it's ok for cuspatial-testutils to depend on cuproj. It's just not the other way around, cuproj be an independent header only library. For which I updated the name of the issue as a feature request. |
cuproj::vec_2d<T>
I think there is use for cuProj outside of cuSpatial so we should actually prepare it to be separated (as time permits). So really it should have its own test utilities (e.g. |
cuproj::vec_2d<T>
CUPROJ_EXPECT_VECTORS_EQUIVALENT
for cuproj testing
Agreed - updated title. |
Version
cuspatial-branch-24.12
On which installation method(s) does this occur?
Source
Describe the issue
CUSPATIAL_EXPECT_VECTORS_EQUIVALENT reports vectors are different
even when difference is smaller than tolerance (3rd argument).
In the example the differences are 0.1 and the tolerance is 10.0
Minimum reproducible example
Relevant log output
Environment details
Other/Misc.
bug_expect_vector_equivalent.zip
Anticipate problem is in nested if constexpr in inline void expect_vector_equivalent(Vector1 const& lhs, Vector2 const& rhs, U abs_error) in vector_equality.hpp
The text was updated successfully, but these errors were encountered: