Sophus icon indicating copy to clipboard operation
Sophus copied to clipboard

test_so3, test_se3, test_velocities fail on PowePC

Open barracuda156 opened this issue 2 years ago • 5 comments

Three tests fail on macOS PPC:

--->  Testing sophus
Executing:  cd "/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_sophus/sophus/work/build" && /usr/bin/make test 
Running tests...
/opt/local/bin/ctest --force-new-ctest-process 
Test project /opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_sophus/sophus/work/build
      Start  1: test_common
 1/13 Test  #1: test_common ......................   Passed    0.09 sec
      Start  2: test_cartesian2
 2/13 Test  #2: test_cartesian2 ..................   Passed    0.09 sec
      Start  3: test_cartesian3
 3/13 Test  #3: test_cartesian3 ..................   Passed    0.11 sec
      Start  4: test_so2
 4/13 Test  #4: test_so2 .........................   Passed    0.09 sec
      Start  5: test_se2
 5/13 Test  #5: test_se2 .........................   Passed    0.13 sec
      Start  6: test_rxso2
 6/13 Test  #6: test_rxso2 .......................   Passed    0.13 sec
      Start  7: test_sim2
 7/13 Test  #7: test_sim2 ........................   Passed    0.23 sec
      Start  8: test_so3
 8/13 Test  #8: test_so3 .........................***Failed    0.28 sec
      Start  9: test_se3
 9/13 Test  #9: test_se3 .........................***Failed    0.33 sec
      Start 10: test_rxso3
10/13 Test #10: test_rxso3 .......................   Passed    0.19 sec
      Start 11: test_sim3
11/13 Test #11: test_sim3 ........................   Passed    0.47 sec
      Start 12: test_velocities
12/13 Test #12: test_velocities ..................***Failed    0.04 sec
      Start 13: test_geometry
13/13 Test #13: test_geometry ....................   Passed    0.04 sec

77% tests passed, 3 tests failed out of 13

Total Test time (real) =   2.32 sec

The following tests FAILED:
	  8 - test_so3 (Failed)
	  9 - test_se3 (Failed)
	 12 - test_velocities (Failed)

Detailed output:

Test SO3

Double tests: 
passed.

Float tests: 
Test failed in function 'bool Sophus::Tests<Scalar>::testRawDataAcces() [with Scalar = float]', file '/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_sophus/sophus/work/Sophus-22.10/test/core/test_so3.cpp', line 129.
const_so3.data()[i] (=1) is not equal to raw2.data()[i] (=1)

Test SE3

Double tests: 
passed.

Float tests: 
Test failed in function 'bool Sophus::Tests<Scalar>::testRawDataAcces() [with Scalar = float]', file '/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_sophus/sophus/work/Sophus-22.10/test/core/test_se3.cpp', line 127.
const_se3.data()[i] (=1) is not equal to raw2.data()[i] (=1)


Test failed in function 'bool Sophus::Tests<Scalar>::testRawDataAcces() [with Scalar = float]', file '/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_sophus/sophus/work/Sophus-22.10/test/core/test_se3.cpp', line 132.
se3.data()[i] (=1) is not equal to raw2.data()[i] (=1)

Test Velocities

Double tests: 
passed.

Float tests: 
Test failed in function 'bool Sophus::experimental::tests_rotational_velocities() [with Scalar = float]', file '/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_sophus/sophus/work/Sophus-22.10/test/core/test_velocities.cpp', line 88.
rotVel_in_frame_bar (=
  0.0100578
0.000100403
1.00643e-06
) is not approx rotVel_in_frame_bar2 (=
   0.0145866
-0.000742918
 0.000964121
); std::sqrt(Constants<Scalar>::epsilon()) is 0.00316228; nrm is 0.00452879

Logs: build_log.txt tests_log.txt

barracuda156 avatar Jan 15 '23 16:01 barracuda156

Also, there is an error on archlinux. test-on-archlinux.log

cybaol avatar May 01 '24 07:05 cybaol

Also, there is an error on archlinux.

test-on-archlinux.log

Which arch is this, ppc?

barracuda156 avatar May 01 '24 10:05 barracuda156

Also, there is an error on archlinux. test-on-archlinux.log

Which arch is this, ppc?

It is x86-64-v3. When I change to x86-64, All tests passed.

cybaol avatar May 01 '24 10:05 cybaol

It is x86-64-v3. When I change to x86-64, All tests passed.

What does x86-64-v3 stand for?

barracuda156 avatar May 01 '24 14:05 barracuda156

#538 removes velocities. If the other failures can be eliminated by slightly tweaking the floating point thresholds in the tests, I will accept a corresponding PR.

strasdat avatar Jun 10 '24 06:06 strasdat