diff options
author | Tracy Narine <tracy.narine@arm.com> | 2024-02-26 15:05:11 +0000 |
---|---|---|
committer | Tracy Narine <tracy.narine@arm.com> | 2024-02-28 14:17:52 +0000 |
commit | 2883a86c5a167aea3c736529bff5921ab6cbc99c (patch) | |
tree | d9e000d96246c622d82e185af186a0bf64b2896c /src/armnn/Utils.cpp | |
parent | c24577b21f4e8f4a1253632e31dea5d39a17ca26 (diff) | |
download | armnn-2883a86c5a167aea3c736529bff5921ab6cbc99c.tar.gz |
IVGCVSW-8172 Add macOS support to build tool setup
* Updates build rules for platform
* Failing unit tests excluded (dynamic backends, profiling)
* install-packages.sh generates manual setup information
Signed-off-by: Tracy Narine <tracy.narine@arm.com>
Change-Id: I2d3d434aa615a8796c0cb94cd5b9c35a5acfd148
Diffstat (limited to 'src/armnn/Utils.cpp')
-rw-r--r-- | src/armnn/Utils.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/armnn/Utils.cpp b/src/armnn/Utils.cpp index 33d654f484..38732b3530 100644 --- a/src/armnn/Utils.cpp +++ b/src/armnn/Utils.cpp @@ -1,17 +1,19 @@ // -// Copyright © 2017 Arm Ltd. All rights reserved. +// Copyright © 2017, 2024 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #include "armnn/Logging.hpp" #include "armnn/Utils.hpp" #include "armnn/Version.hpp" +#if !defined(__APPLE__) #if !defined(ARMNN_BUILD_BARE_METAL) && (defined(__arm__) || defined(__aarch64__)) #include <sys/auxv.h> #include <asm/hwcap.h> #endif +#endif namespace armnn { @@ -36,6 +38,7 @@ static DefaultLoggingConfiguration g_DefaultLoggingConfiguration; // Detect the presence of Neon on Linux bool NeonDetected() { +#if !defined(__APPLE__) #if !defined(ARMNN_BUILD_BARE_METAL) && (defined(__arm__) || defined(__aarch64__)) auto hwcaps= getauxval(AT_HWCAP); #endif @@ -68,6 +71,7 @@ bool NeonDetected() } #endif +#endif // This method of Neon detection is only supported on Linux so in order to prevent a false negative // we will return true in cases where detection did not run. |