Skip to content

Commit 92be799

Browse files
authored
Merge pull request #106 from computational-cell-analytics/adapt-mps-tiling
changed tiling for mps
2 parents 8cc71f1 + 169ddd4 commit 92be799

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

synapse_net/inference/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,8 @@ def get_default_tiling(is_2d: bool = False) -> Dict[str, Dict[str, int]]:
452452
print(f"Determined tile size for CUDA: {tiling}")
453453

454454
elif torch.backends.mps.is_available(): # Check for Apple Silicon (MPS)
455-
tile = {"x": 512, "y": 512, "z": 64}
456-
halo = {"x": 64, "y": 64, "z": 16}
455+
tile = {"x": 256, "y": 256, "z": 16}
456+
halo = {"x": 16, "y": 16, "z": 4}
457457
tiling = {"tile": tile, "halo": halo}
458458
print(f"Determined tile size for MPS: {tiling}")
459459

0 commit comments

Comments
 (0)