blob: e5fafa319f70bcd48d1cf5127af45d446836f3c2 [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 \
Nikhil Raj9b461482019-07-03 15:58:31 +010045 workloads/NeonPreluWorkload.cpp \
Sadik Armaganfabc2892019-05-31 09:05:11 +010046 workloads/NeonQuantizeWorkload.cpp \
Nattapat Chaimanowongcce11fc2018-10-12 16:30:56 +010047 workloads/NeonReshapeWorkload.cpp \
Sadik Armaganc625f002018-12-17 11:32:16 +000048 workloads/NeonResizeBilinearWorkload.cpp \
David Beck0dbe0ee2018-09-24 15:59:27 +010049 workloads/NeonSoftmaxBaseWorkload.cpp \
50 workloads/NeonSoftmaxFloatWorkload.cpp \
51 workloads/NeonSoftmaxUint8Workload.cpp \
Narumol Prangnawarat15eb5832019-05-20 15:31:05 +010052 workloads/NeonSplitterWorkload.cpp \
Conor Kennedyb99480b2019-03-08 08:24:41 +000053 workloads/NeonSubtractionWorkload.cpp
Aron Virginas-Tarceae3aa2018-10-18 10:39:38 +010054
Matteo Martincighd95e9062019-01-31 15:35:59 +000055else
56
57# ARMNN_COMPUTE_NEON_ENABLED == 0
58# No source file will be compiled for the NEON backend
59
60BACKEND_SOURCES :=
61
62endif
63
Aron Virginas-Tarceae3aa2018-10-18 10:39:38 +010064# BACKEND_TEST_SOURCES contains the list of files to be included
65# in the Android unit test build (armnn-tests) and it is picked
66# up by the Android.mk file in the root of ArmNN
67
Matteo Martincighd95e9062019-01-31 15:35:59 +000068# The variable to enable/disable the NEON backend (ARMNN_COMPUTE_NEON_ENABLED) is declared in android-nn-driver/Android.mk
69ifeq ($(ARMNN_COMPUTE_NEON_ENABLED),1)
70
71# ARMNN_COMPUTE_NEON_ENABLED == 1
72# Include the source files for the NEON backend tests
73
Aron Virginas-Tarceae3aa2018-10-18 10:39:38 +010074BACKEND_TEST_SOURCES := \
75 test/NeonCreateWorkloadTests.cpp \
Aron Virginas-Tar70104002018-10-24 15:33:28 +010076 test/NeonEndToEndTests.cpp \
77 test/NeonJsonPrinterTests.cpp \
Aron Virginas-Tarceae3aa2018-10-18 10:39:38 +010078 test/NeonLayerSupportTests.cpp \
79 test/NeonLayerTests.cpp \
80 test/NeonMemCopyTests.cpp \
Aron Virginas-Tar70104002018-10-24 15:33:28 +010081 test/NeonOptimizedNetworkTests.cpp \
Aron Virginas-Tarc26ba752018-10-22 13:32:01 +010082 test/NeonRuntimeTests.cpp \
Aron Virginas-Tarceae3aa2018-10-18 10:39:38 +010083 test/NeonTimerTest.cpp
Matteo Martincighd95e9062019-01-31 15:35:59 +000084
85else
86
87# ARMNN_COMPUTE_NEON_ENABLED == 0
88# No source file will be compiled for the NEON backend tests
89
90BACKEND_TEST_SOURCES :=
91
92endif