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

CTest Failed for Clang #116

Open
quazirafi opened this issue Dec 26, 2022 · 1 comment
Open

CTest Failed for Clang #116

quazirafi opened this issue Dec 26, 2022 · 1 comment

Comments

@quazirafi
Copy link
Contributor

There are two tests in sparse_shape.cpp file which fail for Clang Build (but works fine for GCC build)

  1. At line 33
  2. At line 191
    This needs to be fixed.

ERROR MESSAGE*********

test 1
Start 1: test_tensorwrapper

1: Test command: /home/runner/work/TensorWrapper/TensorWrapper/build/test_tensorwrapper
1: Working Directory: /home/runner/work/TensorWrapper/TensorWrapper/build
1: Test timeout computed to be: 1500
1:
1: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1: test_tensorwrapper is a Catch v2.13.10 host application.
1: Run with -? for options
1:
1: -------------------------------------------------------------------------------
1: SparseShapefield::Scalar
1: -------------------------------------------------------------------------------
1: /home/runner/work/TensorWrapper/TensorWrapper/tests/tensor/shapes/sparse_shape.cpp:33
1: ...............................................................................
1:
1: /home/runner/work/TensorWrapper/TensorWrapper/tests/tensor/shapes/sparse_shape.cpp:33: FAILED:
1: due to unexpected exception with message:
1: SparseMap not consistent with idx2mode
1:
1: -------------------------------------------------------------------------------
1: SparseShapefield::Tensor
1: -------------------------------------------------------------------------------
1: /home/runner/work/TensorWrapper/TensorWrapper/tests/tensor/shapes/sparse_shape.cpp:191
1: ...............................................................................
1:
1: /home/runner/work/TensorWrapper/TensorWrapper/tests/tensor/shapes/sparse_shape.cpp:191: FAILED:
1: due to unexpected exception with message:
1: SparseMap not consistent with idx2mode
1:
1: ===============================================================================
1: test cases: 120 | 118 passed | 2 failed
1: assertions: 4332 | 4330 passed | 2 failed
1:
1/1 Test #1: test_tensorwrapper ...............***Failed 1.53 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) = 1.58 sec
Errors while running CTest
Output from these tests are in: /home/runner/work/TensorWrapper/TensorWrapper/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.

The following tests FAILED:
1 - test_tensorwrapper (Failed)
Error: Process completed with exit code 8.

@yzhang-23
Copy link
Contributor

yzhang-23 commented Sep 6, 2023

I have got similar test failures for Clang-11:

    Start 1: test_unit_tensorwrapper

1: Test command: /TensorWrapper/build/test_unit_tensorwrapper
1: Test timeout computed to be: 1500
1: 
1: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1: test_unit_tensorwrapper is a Catch v2.13.8 host application.
1: Run with -? for options
1: 
1: -------------------------------------------------------------------------------
1: TA_vs_TW_ADD
1: -------------------------------------------------------------------------------
1: ../tests/unit/performance_tests/add.cpp:31
1: ...............................................................................
1: 
1: benchmark name                       samples       iterations    estimated
1:                                      mean          low mean      high mean
1:                                      std dev       low std dev   high std dev
1: -------------------------------------------------------------------------------
1: TiledArray_add                                 100             1    132.217 ms 
1:                                         1.43926 ms    1.38556 ms    1.59263 ms 
1:                                         429.278 us    184.205 us    918.929 us 
1:                                                                                
1: TensorWrapper_add                              100             1    820.351 ms 
1:                                         8.37464 ms    8.24425 ms    8.75518 ms 
1:                                         1.04136 ms    409.428 us    2.24371 ms 
1:                                                                                
1: 
1: -------------------------------------------------------------------------------
1: TA_vs_TW_MULT
1: -------------------------------------------------------------------------------
1: ../tests/unit/performance_tests/mult.cpp:31
1: ...............................................................................
1: 
1: benchmark name                       samples       iterations    estimated
1:                                      mean          low mean      high mean
1:                                      std dev       low std dev   high std dev
1: -------------------------------------------------------------------------------
1: TiledArray_mult                                100             1     59.9489 s 
1:                                         599.496 ms    565.804 ms     633.34 ms 
1:                                         172.607 ms    150.424 ms    203.015 ms 
1:                                                                                
1: TensorWrapper_mult                             100             1     1.28496 m 
1:                                         596.333 ms    549.419 ms    644.588 ms 
1:                                          242.63 ms    217.233 ms    275.632 ms 
1:                                                                                
1: 
1: -------------------------------------------------------------------------------
1: TensorWrapperPIMPL<Scalar>
1:   operator==
1:   Different shape
1: -------------------------------------------------------------------------------
1: ../tests/unit/tensor/detail_/scalar_pimpl.cpp:241
1: ...............................................................................
1: 
1: ../tests/unit/tensor/detail_/scalar_pimpl.cpp:241: FAILED:
1: due to unexpected exception with message:
1:   SparseMap not consistent with idx2mode
1: 
1: -------------------------------------------------------------------------------
1: TensorWrapperPIMPL<Scalar>
1:   reshape
1:   Apply sparsity
1:   matrix
1: -------------------------------------------------------------------------------
1: ../tests/unit/tensor/detail_/scalar_pimpl.cpp:364
1: ...............................................................................
1: 
1: ../tests/unit/tensor/detail_/scalar_pimpl.cpp:364: FAILED:
1: due to unexpected exception with message:
1:   SparseMap not consistent with idx2mode
1: 
1: -------------------------------------------------------------------------------
1: TensorWrapperPIMPL<Scalar>
1:   reshape
1:   Apply sparsity
1:   tensor
1:   Rank 1 ind, rank 2 dependent
1: -------------------------------------------------------------------------------
1: ../tests/unit/tensor/detail_/scalar_pimpl.cpp:381
1: ...............................................................................
1: 
1: ../tests/unit/tensor/detail_/scalar_pimpl.cpp:381: FAILED:
1: due to unexpected exception with message:
1:   SparseMap not consistent with idx2mode
1: 
1: -------------------------------------------------------------------------------
1: TensorWrapperPIMPL<Scalar>
1:   reshape
1:   Apply sparsity
1:   tensor
1:   Rank 2 ind, rank 1 dependent
1: -------------------------------------------------------------------------------
1: ../tests/unit/tensor/detail_/scalar_pimpl.cpp:394
1: ...............................................................................
1: 
1: ../tests/unit/tensor/detail_/scalar_pimpl.cpp:394: FAILED:
1: due to unexpected exception with message:
1:   SparseMap not consistent with idx2mode
1: 
1: -------------------------------------------------------------------------------
1: TensorWrapperPIMPL<Tensor>
1:   operator==
1:   Different shape
1: -------------------------------------------------------------------------------
1: ../tests/unit/tensor/detail_/tensor_pimpl.cpp:240
1: ...............................................................................
1: 
1: ../tests/unit/tensor/detail_/tensor_pimpl.cpp:240: FAILED:
1: due to unexpected exception with message:
1:   SparseMap not consistent with idx2mode
1: 
1: -------------------------------------------------------------------------------
1: SparseShape<field::Scalar>
1: -------------------------------------------------------------------------------
1: ../tests/unit/tensor/shapes/sparse_shape.cpp:33
1: ...............................................................................
1: 
1: ../tests/unit/tensor/shapes/sparse_shape.cpp:33: FAILED:
1: due to unexpected exception with message:
1:   SparseMap not consistent with idx2mode
1: 
1: -------------------------------------------------------------------------------
1: SparseShape<field::Tensor>
1: -------------------------------------------------------------------------------
1: ../tests/unit/tensor/shapes/sparse_shape.cpp:168
1: ...............................................................................
1: 
1: ../tests/unit/tensor/shapes/sparse_shape.cpp:168: FAILED:
1: due to unexpected exception with message:
1:   SparseMap not consistent with idx2mode
1: 
1: ===============================================================================
1: test cases:  116 |  112 passed | 4 failed
1: assertions: 3891 | 3884 passed | 7 failed
1: 
1/1 Test #1: test_unit_tensorwrapper ..........***Failed  127.47 sec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants