blob: f2ed0f603389f327308d9b80ace3f10bc76e8544 [file] [log] [blame]
Narumol Prangnawarat60a20fb2019-12-09 17:24:41 +00001//
2// Copyright © 2019 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#include "RefDynamicBackend.hpp"
7
8#include <reference/RefBackend.hpp>
9
10using namespace armnn;
11
12const char* GetBackendId()
13{
14 return RefBackend::GetIdStatic().Get().c_str();
15}
16
17void GetVersion(uint32_t* outMajor, uint32_t* outMinor)
18{
19 if (!outMajor || !outMinor)
20 {
21 return;
22 }
23
24 BackendVersion apiVersion = IBackendInternal::GetApiVersion();
25
26 *outMajor = apiVersion.m_Major;
27 *outMinor = apiVersion.m_Minor;
28}
29
30void* BackendFactory()
31{
32 return new RefBackend();
33}