Skip to content

Commit

Permalink
Fix Mac tests (need oversubscribe for MPI).
Browse files Browse the repository at this point in the history
  • Loading branch information
sserita committed Jan 22, 2025
1 parent 5979d7e commit d9d517c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pygsti/extras/interpygate/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ def __call__(self, v):

value = _np.zeros(self.qty_shape, dtype='d')
for i, interpolator in enumerate(self.interpolators.flat):
value.flat[i] = interpolator(*v)[0]
value.flat[i] = interpolator(*v)
return value

def write(self, filename):
Expand Down
3 changes: 2 additions & 1 deletion test/unit/mpi/test_mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class MPITester:
def test_all(self, capfd: pytest.LogCaptureFixture):
current_filepath = Path(os.path.abspath(__file__))
to_run = current_filepath.parents[0] / Path('run_me_with_mpiexec.py')
subprocess_args = (f"mpiexec -np 4 python -W ignore {str(to_run)}").split(' ')
# Oversubscribe is needed because latest Mac runners have only 3 cores
subprocess_args = (f"mpiexec -np 4 -oversubscribe python -W ignore {str(to_run)}").split(' ')

result = subprocess.run(subprocess_args, capture_output=False, text=True)
out, err = capfd.readouterr()
Expand Down

0 comments on commit d9d517c

Please sign in to comment.