blob: 7b037d27d62c7ffb60832f764ae02ec27767edce [file] [log] [blame]
David Beck0dbe0ee2018-09-24 15:59:27 +01001#
2# Copyright © 2017 ARM Ltd. All rights reserved.
3# SPDX-License-Identifier: MIT
4#
5
6# BACKEND_SOURCES contains the list of files to be included
7# in the Android build and it is picked up by the Android.mk
8# file in the root of ArmNN
9
Matteo Martincighd95e9062019-01-31 15:35:59 +000010# The variable to enable/disable the NEON backend (ARMNN_COMPUTE_NEON_ENABLED) is declared in android-nn-driver/Android.mk
11ifeq ($(ARMNN_COMPUTE_NEON_ENABLED),1)
12
13# ARMNN_COMPUTE_NEON_ENABLED == 1
14# Include the source files for the NEON backend
15
David Beck0dbe0ee2018-09-24 15:59:27 +010016BACKEND_SOURCES := \
arovir014424b0a2018-10-04 10:46:04 +010017 NeonBackend.cpp \
Aron Virginas-Tar3b278e92018-10-12 13:00:55 +010018 NeonInterceptorScheduler.cpp \
David Beck0dbe0ee2018-09-24 15:59:27 +010019 NeonLayerSupport.cpp \
Aron Virginas-Tar3b278e92018-10-12 13:00:55 +010020 NeonTimer.cpp \
David Beck0dbe0ee2018-09-24 15:59:27 +010021 NeonWorkloadFactory.cpp \
Nattapat Chaimanowongd4b70592018-10-12 11:21:49 +010022 workloads/NeonActivationWorkload.cpp \
Matthew Bentham955258d2018-12-10 10:48:52 +000023 workloads/NeonAdditionWorkload.cpp \
Matthew Benthamc48ac8c2018-12-12 16:15:59 +000024 workloads/NeonBatchNormalizationWorkload.cpp \
Jim Flynn39d487d2019-05-17 15:44:36 +010025 workloads/NeonConcatWorkload.cpp \
Nattapat Chaimanowong233b3d62018-10-12 12:02:18 +010026 workloads/NeonConstantWorkload.cpp \
David Beck0dbe0ee2018-09-24 15:59:27 +010027 workloads/NeonConvertFp16ToFp32Workload.cpp \
28 workloads/NeonConvertFp32ToFp16Workload.cpp \
Nattapat Chaimanowong974b65f2018-10-15 15:07:34 +010029 workloads/NeonConvolution2dWorkload.cpp \
Nattapat Chaimanowong77140882018-10-17 11:12:19 +010030 workloads/NeonDepthwiseConvolutionWorkload.cpp \
Narumol Prangnawarat01961a72019-05-30 16:47:12 +010031 workloads/NeonDequantizeWorkload.cpp \
David Beck0dbe0ee2018-09-24 15:59:27 +010032 workloads/NeonFloorFloatWorkload.cpp \
33 workloads/NeonFullyConnectedWorkload.cpp \
kevmay01eed85922019-01-28 08:37:25 +000034 workloads/NeonGreaterWorkload.cpp \
David Beck0dbe0ee2018-09-24 15:59:27 +010035 workloads/NeonL2NormalizationFloatWorkload.cpp \
36 workloads/NeonLstmFloatWorkload.cpp \
Nattapat Chaimanowong4e6597a2018-12-20 14:14:06 +000037 workloads/NeonMaximumWorkload.cpp \
Matthew Benthamfd899962018-12-31 15:49:42 +000038 workloads/NeonMeanWorkload.cpp \
Conor Kennedy54b21692019-01-09 07:57:38 +000039 workloads/NeonMinimumWorkload.cpp \
Conor Kennedyb99480b2019-03-08 08:24:41 +000040 workloads/NeonMultiplicationWorkload.cpp \
David Beck0dbe0ee2018-09-24 15:59:27 +010041 workloads/NeonNormalizationFloatWorkload.cpp \
Éanna Ó Catháin12055742019-01-25 10:01:40 +000042 workloads/NeonPadWorkload.cpp \
David Beck0dbe0ee2018-09-24 15:59:27 +010043 workloads/NeonPermuteWorkload.cpp \
Nattapat Chaimanowong5d2e7002018-10-12 16:03:56 +010044 workloads/NeonPooling2dWorkload.cpp \
Sadik Armaganfabc2892019-05-31 09:05:11 +010045 workloads/NeonQuantizeWorkload.cpp \
Nattapat Chaimanowongcce11fc2018-10-12 16:30:56 +010046 workloads/NeonReshapeWorkload.cpp \
Sadik Armaganc625f002018-12-17 11:32:16 +000047 workloads/NeonResizeBilinearWorkload.cpp \
David Beck0dbe0ee2018-09-24 15:59:27 +010048 workloads/NeonSoftmaxBaseWorkload.cpp \
49 workloads/NeonSoftmaxFloatWorkload.cpp \
50 workloads/NeonSoftmaxUint8Workload.cpp \
Narumol Prangnawarat15eb5832019-05-20 15:31:05 +010051 workloads/NeonSplitterWorkload.cpp \
Conor Kennedyb99480b2019-03-08 08:24:41 +000052 workloads/NeonSubtractionWorkload.cpp
Aron Virginas-Tarceae3aa2018-10-18 10:39:38 +010053
Matteo Martincighd95e9062019-01-31 15:35:59 +000054else
55
56# ARMNN_COMPUTE_NEON_ENABLED == 0
57# No source file will be compiled for the NEON backend
58
59BACKEND_SOURCES :=
60
61endif
62
Aron Virginas-Tarceae3aa2018-10-18 10:39:38 +010063# BACKEND_TEST_SOURCES contains the list of files to be included
64# in the Android unit test build (armnn-tests) and it is picked
65# up by the Android.mk file in the root of ArmNN
66
Matteo Martincighd95e9062019-01-31 15:35:59 +000067# The variable to enable/disable the NEON backend (ARMNN_COMPUTE_NEON_ENABLED) is declared in android-nn-driver/Android.mk
68ifeq ($(ARMNN_COMPUTE_NEON_ENABLED),1)
69
70# ARMNN_COMPUTE_NEON_ENABLED == 1
71# Include the source files for the NEON backend tests
72
Aron Virginas-Tarceae3aa2018-10-18 10:39:38 +010073BACKEND_TEST_SOURCES := \
74 test/NeonCreateWorkloadTests.cpp \
Aron Virginas-Tar70104002018-10-24 15:33:28 +010075 test/NeonEndToEndTests.cpp \
76 test/NeonJsonPrinterTests.cpp \
Aron Virginas-Tarceae3aa2018-10-18 10:39:38 +010077 test/NeonLayerSupportTests.cpp \
78 test/NeonLayerTests.cpp \
79 test/NeonMemCopyTests.cpp \
Aron Virginas-Tar70104002018-10-24 15:33:28 +010080 test/NeonOptimizedNetworkTests.cpp \
Aron Virginas-Tarc26ba752018-10-22 13:32:01 +010081 test/NeonRuntimeTests.cpp \
Aron Virginas-Tarceae3aa2018-10-18 10:39:38 +010082 test/NeonTimerTest.cpp
Matteo Martincighd95e9062019-01-31 15:35:59 +000083
84else
85
86# ARMNN_COMPUTE_NEON_ENABLED == 0
87# No source file will be compiled for the NEON backend tests
88
89BACKEND_TEST_SOURCES :=
90
91endif