Nixpkgs: python3Packages.qiskit-aer fails if you have too many cores

Created on 15 Aug 2020  路  3Comments  路  Source: NixOS/nixpkgs

The test suite expects you to have 64 or less cores. Fails with my 3990X's 128

>           self.assertEqual(threads, target)
E           AssertionError: {'experiments': 1, 'shots': 1, 'state_update': 64, 'total': 64} != {'experiments': 1, 'shots': 1, 'state_update': 128, 'total': 128}
E           - {'experiments': 1, 'shots': 1, 'state_update': 64, 'total': 64}
E           ?                                                ^^           ^^
E
E           + {'experiments': 1, 'shots': 1, 'state_update': 128, 'total': 128}
E           ?                                                ^^^           ^^^

cc @drewrisinger

Full gist: https://gist.github.com/jonringer/a86a889f2684ee64bb95732f0b065126

bug

All 3 comments

@jonringer forgot to comment earlier, drafted it in my head...

I cross-posted this issue to https://github.com/Qiskit/qiskit-aer/issues/892. I wanted to push #95713 for you to build against to know if the error was still in that version vs trying to fix an older version. From a quick glance it probably is, but just curious.

If it's still erroring, I'll just disable the relevant tests, it should be pretty thoroughly tested without those specific ones.

I dropped my nix.buildCores to 32 on my server. I was also getting build errors with ninja.

I'm closing because the cross-posted issue https://github.com/Qiskit/qiskit-aer/issues/892 was resolved, and I haven't heard any other complaints from @jonringer that this is failing to build when that patch is incorporated. The real test is PR #100007, which has that patch.
See also #102724.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

langston-barrett picture langston-barrett  路  3Comments

yawnt picture yawnt  路  3Comments

lverns picture lverns  路  3Comments

matthiasbeyer picture matthiasbeyer  路  3Comments

ghost picture ghost  路  3Comments