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

fix a bug in thread management tests #918

Merged
merged 3 commits into from
Sep 16, 2020

Conversation

hhorii
Copy link
Collaborator

@hhorii hhorii commented Sep 2, 2020

Summary

Change a way to get a number of maximum threads in QasmThreadManagementTests

Details and comments

In some environment, multiprocessing.cpu_count() does not return a number of maximum OMP threads correctly.
Especially if OMP_NUM_THREADS is different from an actual number of hardware threads, tests are failed.

This PR changes a way to get a number of maximum OMP threads by running dummy simulation.

I hope that this PR resolves issues in #892.

@chriseclectic chriseclectic added the Changelog: Bugfix Include in the Fixed section of the changelog label Sep 2, 2020
@chriseclectic chriseclectic added this to the Aer 0.7 milestone Sep 15, 2020
@vvilpas vvilpas merged commit 7856e4b into Qiskit:master Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the Fixed section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants