Skip to content

Commit 27f3687

Browse files
authored
Merge pull request #173 from mrava87/patch-neg
bug: pass base_comm_nccl to __neg__
2 parents 5362ed2 + 23a400d commit 27f3687

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, macos-latest]
17-
python-version: ['3.10', '3.11', '3.12', '3.13']
17+
python-version: ['3.11', '3.12', '3.13']
1818
mpi: ['mpich', 'openmpi', 'intelmpi']
1919
rank: ['2', '4', '9']
2020
exclude:

pylops_mpi/DistributedArray.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ def _nccl_local_shapes(self, masked: bool):
502502
def __neg__(self):
503503
arr = DistributedArray(global_shape=self.global_shape,
504504
base_comm=self.base_comm,
505+
base_comm_nccl=self.base_comm_nccl,
505506
partition=self.partition,
506507
axis=self.axis,
507508
local_shapes=self.local_shapes,

0 commit comments

Comments
 (0)