aboutsummaryrefslogtreecommitdiff
path: root/src/dynamic/reference/RefDynamicBackend.cpp
blob: f2ed0f603389f327308d9b80ace3f10bc76e8544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// Copyright © 2019 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//

#include "RefDynamicBackend.hpp"

#include <reference/RefBackend.hpp>

using namespace armnn;

const char* GetBackendId()
{
    return RefBackend::GetIdStatic().Get().c_str();
}

void GetVersion(uint32_t* outMajor, uint32_t* outMinor)
{
    if (!outMajor || !outMinor)
    {
        return;
    }

    BackendVersion apiVersion = IBackendInternal::GetApiVersion();

    *outMajor = apiVersion.m_Major;
    *outMinor = apiVersion.m_Minor;
}

void* BackendFactory()
{
    return new RefBackend();
}