Skip to content

Commit 2eb2276

Browse files
Warn macOS Arm users who install the Intel package (#39872)
### Description of work Warn macOS users who install an Intel build on an Arm machine. Closes #39763 ### To test: Install the package from this build: x86: [![Build Status](https://builds.mantidproject.org/job/build_packages_from_branch/1329/badge/icon)](https://builds.mantidproject.org/job/build_packages_from_branch/1329/) ARM: [![Build Status](https://builds.mantidproject.org/job/build_packages_from_branch/1331/badge/icon)](https://builds.mantidproject.org/job/build_packages_from_branch/1331/) - on Arm macOS machine - check there is a warning - on Intel macOS machine - check there is **no** warning. --------- Co-authored-by: Caila Finn <47181718+cailafinn@users.noreply.github.com>
1 parent 7a7e5f8 commit 2eb2276

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Framework/Kernel/src/ConfigService.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,9 @@ std::string ConfigServiceImpl::getOSArchitecture() {
10261026
size_t size = sizeof(ret);
10271027
if (sysctlbyname("sysctl.proc_translated", &ret, &size, nullptr, 0) != -1 && ret == 1) {
10281028
osArch = "arm64_(x86_64)";
1029+
g_log.warning("You are running an Intel build of Mantid on Apple silicon, which will be significantly slower and "
1030+
"use more power. For best performance, install the Arm version of Mantid. This version is "
1031+
"available here: https://downloads.mantidproject.org");
10291032
} else {
10301033
// TODO this can be removed after the v6.14 code freeze because the feature will be dropped
10311034
g_log.warning("Mantid v6.14 is the last version that will support Intel macOS.");
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- macOS users with Apple silicon (Arm-based architecture) are now warned if they have installed the Intel-based Mantid package.

0 commit comments

Comments
 (0)