ArmNN
 25.11
Loading...
Searching...
No Matches
NeonRegistryInitializer.cpp
Go to the documentation of this file.
1//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#include "NeonBackend.hpp"
7
9#include <armnn/Utils.hpp>
10
11namespace
12{
13
14using namespace armnn;
15
17{
20 []()
21 {
22 // Check if device supports Neon.
23 if (NeonDetected())
24 {
26 }
27
28 // If device does not support Neon throw exception so the Backend is not added to supportedBackends
29 ARMNN_LOG(info) << "Neon support not found on device, could not register CpuAcc Backend.";
31 "Neon support not found on device, could not register CpuAcc Backend.\n");
32 }
33};
34
35} // Anonymous namespace
#define ARMNN_LOG(severity)
Definition Logging.hpp:212
Class for non-fatal exceptions raised while initialising a backend.
static const BackendId & GetIdStatic()
Copyright (c) 2021 ARM Limited and Contributors.
std::unique_ptr< IBackendInternal > IBackendInternalUniquePtr
BackendRegistry & BackendRegistryInstance()
bool NeonDetected()
Definition Utils.cpp:39