Skip to content

Commit

Permalink
Enable MPS on Mac always
Browse files Browse the repository at this point in the history
Seems it isn't limited to usefulness on Apple Silicon.
See #118
We can't verify this, but it does improve things substantially when running the Intel build on Apple Silicon (still required for CZI files, for example) - so is beneficial anyway.
  • Loading branch information
petebankhead committed Jan 7, 2025
1 parent 7d03de1 commit ad95caf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static Collection<String> getAvailableDevices() {
availableDevices.add(name);
}
// If we could use MPS, but don't have it already, add it
if (GeneralTools.isMac() && "aarch64".equals(System.getProperty("os.arch"))) {
if (GeneralTools.isMac()) {
availableDevices.add("mps");
}
// CPU should always be available
Expand Down

0 comments on commit ad95caf

Please sign in to comment.