aboutsummaryrefslogtreecommitdiff
path: root/src/armnn
diff options
context:
space:
mode:
Diffstat (limited to 'src/armnn')
-rw-r--r--src/armnn/Utils.cpp6
-rw-r--r--src/armnn/test/RuntimeTests.cpp6
2 files changed, 10 insertions, 2 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.
diff --git a/src/armnn/test/RuntimeTests.cpp b/src/armnn/test/RuntimeTests.cpp
index 41a3fe1b64..7079f0e4e8 100644
--- a/src/armnn/test/RuntimeTests.cpp
+++ b/src/armnn/test/RuntimeTests.cpp
@@ -1,5 +1,5 @@
//
-// Copyright © 2017-2023 Arm Ltd and Contributors. All rights reserved.
+// Copyright © 2017-2024 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
@@ -649,6 +649,8 @@ TEST_CASE("ProfilingDisable")
CHECK(!readableBuffer);
}
+#if !defined(__APPLE__)
+
TEST_CASE("ProfilingEnableCpuRef")
{
using namespace armnn;
@@ -1299,6 +1301,8 @@ TEST_CASE("ProfilingPostOptimisationStructureCpuRef")
VerifyPostOptimisationStructureTestImpl(armnn::Compute::CpuRef);
}
+#endif
+
TEST_CASE("RuntimeOptimizeImportOff_LoadNetworkImportOn")
{
// In this test case we'll optimize a network with both import and export disabled. Then we'll attempt to load