aboutsummaryrefslogtreecommitdiff
path: root/src/backends/tosaReference/backend.mk
blob: d552a6a39a8b5173a6c8b1046a16b996fcc88781 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
# SPDX-License-Identifier: MIT
#

# BACKEND_SOURCES contains the list of files to be included
# in the Android build and it is picked up by the Android.mk
# file in the root of ArmNN

# The variable to enable/disable the TOSA Reference backend
# (ARMNN_TOSA_REF_ENABLED is declared in android-nn-driver/Android.mk)
ifeq ($(ARMNN_TOSA_REF_ENABLED),1)

# ARMNN_TOSA_REF_ENABLED == 1
# Include the source files for the TOSA reference backend

BACKEND_SOURCES := \
        TosaRefBackend.cpp \
        TosaRefLayerSupport.cpp \
        TosaRefMemoryManager.cpp \
        TosaRefRegistryInitializer.cpp \
        TosaRefTensorHandle.cpp \
        TosaRefTensorHandleFactory.cpp \
        TosaRefWorkloadFactory.cpp \
        workloads/TosaRefPreCompiledWorkload.cpp
else

# ARMNN_TOSA_REF_ENABLED == 0
# No source file will be compiled for the reference backend

BACKEND_SOURCES :=

endif

# BACKEND_TEST_SOURCES contains the list of files to be included
# in the Android unit test build (armnn-tests) and it is picked
# up by the Android.mk file in the root of ArmNN

# The variable to enable/disable the TOSA Reference backend
# (ARMNN_TOSA_REF_ENABLED is declared in android-nn-driver/Android.mk)
ifeq ($(ARMNN_TOSA_REF_ENABLED),1)

# ARMNN_TOSA_REF_ENABLED == 1
# Include the source files for the TOSA Reference backend tests

BACKEND_TEST_SOURCES := \
        test/TosaRefLayerSupportTests.cpp \
        test/TosaRefLayerTests.cpp
else

# ARMNN_TOSA_REF_ENABLED == 0
# No source file will be compiled for the TOSA reference backend tests

BACKEND_TEST_SOURCES :=

endif