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

Tensor Unit tests for runtime errors fail in CI in Build CUDA Quantum assets tasks #2321

Open
4 tasks done
annagrin opened this issue Oct 25, 2024 · 0 comments
Open
4 tasks done

Comments

@annagrin
Copy link
Collaborator

annagrin commented Oct 25, 2024

Required prerequisites

  • Consult the security policy. If reporting a security vulnerability, do not report the bug using this form. Use the process described in the policy to report the issue.
  • Make sure you've read the documentation. Your issue may be addressed there.
  • Search the issue tracker to verify that this hasn't already been reported. +1 or comment there if it has.
  • If possible, make a PR with a failing test to give us a starting point to work on!

Describe the bug

The test throws an Unknown c++ exception instead of the runtime error. The test works in all Build and Test tasks so we suspect libc++/libstdc++ library mismatch.

#70 50.12 Note: Google Test filter = Tensor.initialization
#70 50.12 [==========] Running 1 test from 1 test suite.
#70 50.12 [----------] Global test environment set-up.
#70 50.12 [----------] 1 test from Tensor
#70 50.12 [ RUN      ] Tensor.initialization
#70 50.12 /cuda-quantum/unittests/utils/Tensor.cpp:28: Failure
#70 50.12 Expected: cudaq::matrix_2 m1({1., 2., 3., 4., 5.}, {2, 3}) throws an exception of type std::runtime_error.
#70 50.12   Actual: it throws a different type.

Steps to reproduce the bug

PR: #2324
CI task with errors: https://github.com/NVIDIA/cuda-quantum/actions/runs/11584133910/job/32252965042?pr=2324#logs

Expected behavior

Test succeeds in all CI tasks

Is this a regression? If it is, put the last known working version (or commit) here.

Not a regression

Environment

  • CUDA Quantum version:
  • Python version:
  • C++ compiler:
  • Operating system:

Suggestions

No response

@annagrin annagrin changed the title Unit test TensorTest.InvalidAccessDimensions fails in CI only in Create CUDA Quantum installer (xxx) / Build CUDA Quantum assets tasks Tensor Unit tests for runtime errors fail in CI in Build CUDA Quantum assets tasks Oct 30, 2024
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

1 participant