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

Bugfix/Catch2 update #348

Merged
merged 6 commits into from
May 17, 2023
Merged

Conversation

rrmeister
Copy link
Contributor

Updates Catch2 to the latest available v2.x (2.13.10) to make the unit tests aware of ARM Macs, fixing #346.
Running unit tests locally on an M1 Mac revealed an integer overflow bug in the tests, which this PR also fixes, along with some required numerical tolerance increases for some tests.

In some unit tests, the number of ranks (int) was set to a value
exceeding INT_MAX. This commit caps the number of qubits the tests are
run with to a number (16 or 32) that avoids this.
@rrmeister
Copy link
Contributor Author

Building tests with distribution and multithreading on, and running them locally with 4 processes on Fritz yields

All tests passed (677564 assertions in 131 test cases)

@fieldofnodes
Copy link

Does this mean that with distributed and multi threading off it fails? Or did I miss that?

@rrmeister
Copy link
Contributor Author

The non-distributed unit tests are run automatically by the the CI, but distributed and GPU need to be tested separately, because github doesn't support them (but we usually only run complete tests with all configurations for merges to the master branch). Since some modifications need to be made to Catch2 to perform the distributed tests properly, I ran them anyway to make sure they work.

@TysonRayJones
Copy link
Member

Looks great, nice work!

@TysonRayJones TysonRayJones merged commit 76f1d56 into QuEST-Kit:develop May 17, 2023
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

Successfully merging this pull request may close these issues.

3 participants