blob: 508d5329baeafc6841102b06f8d5ef1d1719e75a [file] [log] [blame]
David Beckb30c5332018-09-28 16:51:01 +01001#
Tianle Cheng28288182024-02-23 17:56:54 +00002# Copyright © 2017-2024 ARM Ltd and Contributors. All rights reserved.
David Beckb30c5332018-09-28 16:51:01 +01003# SPDX-License-Identifier: MIT
4#
5
6# COMMON_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
10COMMON_SOURCES := \
James Conroy1f58f032021-04-27 17:13:27 +010011 TensorHandle.cpp \
Matteo Martincighe54aa062019-08-05 14:12:11 +010012 DynamicBackend.cpp \
13 DynamicBackendUtils.cpp \
Matteo Martincighd0dc7702019-08-01 17:09:03 +010014 IBackendInternal.cpp \
Derek Lamberti84da38b2019-06-13 11:40:08 +010015 ITensorHandleFactory.cpp \
Matteo Martincigh992d6dc2019-01-10 17:34:20 +000016 LayerSupportBase.cpp \
Jim Flynn68db06f2020-10-06 10:14:50 +010017 MapWorkload.cpp \
David Beckb30c5332018-09-28 16:51:01 +010018 MemCopyWorkload.cpp \
Derek Lambertif674aa02019-08-01 15:56:25 +010019 MemImportWorkload.cpp \
Finn Williamsb1aad422021-10-28 19:07:32 +010020 MemoryManager.cpp \
Derek Lambertif674aa02019-08-01 15:56:25 +010021 MemSyncWorkload.cpp \
Derek Lambertic2fe5fb2019-05-08 10:23:08 +010022 OptimizationViews.cpp \
Derek Lamberti84da38b2019-06-13 11:40:08 +010023 TensorHandleFactoryRegistry.cpp \
Jim Flynn3a40ea52020-10-08 11:42:30 +010024 UnmapWorkload.cpp \
David Beckb30c5332018-09-28 16:51:01 +010025 WorkloadData.cpp \
Matteo Martincigh747ef822018-12-18 09:26:39 +000026 WorkloadFactory.cpp \
Sadik Armagan932cf3f2021-09-15 09:22:11 +010027 WorkloadUtils.cpp \
Jim Flynne1fdd282021-10-26 21:26:10 +010028 memoryOptimizerStrategyLibrary/strategies/ConstantMemoryStrategy.cpp \
Finn Williamsb1aad422021-10-28 19:07:32 +010029 memoryOptimizerStrategyLibrary/strategies/SingleAxisPriorityList.cpp \
30 memoryOptimizerStrategyLibrary/strategies/StrategyValidator.cpp
Jim Flynne1fdd282021-10-26 21:26:10 +010031
Aron Virginas-Tarceae3aa2018-10-18 10:39:38 +010032
33# COMMON_TEST_SOURCES contains the list of files to be included
34# in the Android unit test build (armnn-tests) and it is picked
35# up by the Android.mk file in the root of ArmNN
36
37COMMON_TEST_SOURCES := \
Sadik Armaganb8a26d82021-10-04 15:13:11 +010038 test/CustomMemoryOptimizerStrategyTests.cpp \
Sadik Armagan062e0e92019-10-14 10:31:43 +010039 test/InstanceNormalizationEndToEndTestImpl.cpp \
Aron Virginas-Tar69362cc2018-11-22 15:04:42 +000040 test/JsonPrinterTestImpl.cpp \
Sadik Armagan20bea002019-10-16 09:29:38 +010041 test/LogSoftmaxEndToEndTestImpl.cpp \
James Conroy0800bf52020-05-14 12:46:44 +010042 test/QLstmEndToEndTestImpl.cpp \
Aron Virginas-Tar46ff1ca2019-09-12 11:03:09 +010043 test/QuantizedLstmEndToEndTestImpl.cpp \
Aron Virginas-Tarf97f6da2019-10-01 18:35:44 +010044 test/SpaceToDepthEndToEndTestImpl.cpp \
Sadik Armagan9199e582019-09-05 17:35:31 +010045 test/layerTests/AbsTestImpl.cpp \
Aron Virginas-Tar00d306e2019-08-28 18:08:46 +010046 test/layerTests/ActivationTestImpl.cpp \
Aron Virginas-Tare89ebad2019-08-27 18:14:26 +010047 test/layerTests/AdditionTestImpl.cpp \
Nikhil Raj68c2c902019-09-19 11:21:11 +010048 test/layerTests/ArgMinMaxTestImpl.cpp \
Samuel Yap6b478092022-07-06 15:36:03 +010049 test/layerTests/BatchMatMulTestImpl.cpp \
Aron Virginas-Tar00d306e2019-08-28 18:08:46 +010050 test/layerTests/BatchNormalizationTestImpl.cpp \
Idriss Chaouch98e383e2023-08-28 14:28:31 +010051 test/layerTests/BroadcastToTestImpl.cpp \
mathad01b392e982021-04-07 12:07:30 +010052 test/layerTests/CastTestImpl.cpp \
Simon Obute51f67772021-09-03 15:50:13 +010053 test/layerTests/ChannelShuffleTestImpl.cpp \
Aron Virginas-Tar3bc00ec2019-10-18 15:42:58 +010054 test/layerTests/ComparisonTestImpl.cpp \
Aron Virginas-Tar00d306e2019-08-28 18:08:46 +010055 test/layerTests/ConcatTestImpl.cpp \
56 test/layerTests/ConstantTestImpl.cpp \
57 test/layerTests/Conv2dTestImpl.cpp \
Matthew Sloyanb63a3112021-09-08 13:05:51 +010058 test/layerTests/Conv3dTestImpl.cpp \
Aron Virginas-Tar00d306e2019-08-28 18:08:46 +010059 test/layerTests/ConvertFp16ToFp32TestImpl.cpp \
60 test/layerTests/ConvertFp32ToFp16TestImpl.cpp \
61 test/layerTests/DebugTestImpl.cpp \
Aron Virginas-Tar73f66422019-09-23 19:11:59 +010062 test/layerTests/DepthToSpaceTestImpl.cpp \
Aron Virginas-Tar00d306e2019-08-28 18:08:46 +010063 test/layerTests/DequantizeTestImpl.cpp \
Aron Virginas-Tare89ebad2019-08-27 18:14:26 +010064 test/layerTests/DivisionTestImpl.cpp \
josh minor4a3c6102020-01-06 16:40:46 -060065 test/layerTests/ElementwiseUnaryTestImpl.cpp \
Sadik Armagan9fabf432020-05-27 13:40:58 +010066 test/layerTests/ExpTestImpl.cpp \
Aron Virginas-Tar00d306e2019-08-28 18:08:46 +010067 test/layerTests/FakeQuantizationTestImpl.cpp \
Ryan OSheaf4bfa6a2020-06-10 11:33:37 +010068 test/layerTests/FillTestImpl.cpp \
Aron Virginas-Tar00d306e2019-08-28 18:08:46 +010069 test/layerTests/FloorTestImpl.cpp \
70 test/layerTests/FullyConnectedTestImpl.cpp \
Teresa Charlinb2d3ec52022-04-12 22:07:09 +010071 test/layerTests/GatherNdTestImpl.cpp \
Aron Virginas-Tar00d306e2019-08-28 18:08:46 +010072 test/layerTests/GatherTestImpl.cpp \
Aron Virginas-Tar8168f402019-10-04 13:10:16 +010073 test/layerTests/InstanceNormalizationTestImpl.cpp \
Aron Virginas-Tar00d306e2019-08-28 18:08:46 +010074 test/layerTests/L2NormalizationTestImpl.cpp \
Teresa Charlin50de4fa2021-05-31 18:47:33 +010075 test/layerTests/LogTestImpl.cpp \
James Conroyaba90cd2020-11-06 16:28:18 +000076 test/layerTests/LogicalTestImpl.cpp \
Aron Virginas-Tare662a942019-10-14 15:12:00 +010077 test/layerTests/LogSoftmaxTestImpl.cpp \
Aron Virginas-Tar00d306e2019-08-28 18:08:46 +010078 test/layerTests/LstmTestImpl.cpp \
Aron Virginas-Tare89ebad2019-08-27 18:14:26 +010079 test/layerTests/MaximumTestImpl.cpp \
80 test/layerTests/MinimumTestImpl.cpp \
Matthew Sloyan2e5d0b22021-10-21 14:05:31 +010081 test/layerTests/MirrorPadTestImpl.cpp \
Aron Virginas-Tare89ebad2019-08-27 18:14:26 +010082 test/layerTests/MultiplicationTestImpl.cpp \
Sadik Armaganac472102020-03-24 09:54:36 +000083 test/layerTests/NegTestImpl.cpp \
Aron Virginas-Tar00d306e2019-08-28 18:08:46 +010084 test/layerTests/NormalizationTestImpl.cpp \
85 test/layerTests/PadTestImpl.cpp \
86 test/layerTests/Pooling2dTestImpl.cpp \
Tamás Nyíri7b885b32021-10-26 14:47:57 +010087 test/layerTests/Pooling3dTestImpl.cpp \
John Mcloughlin0ec00872023-05-15 17:03:49 +010088 test/layerTests/PowerTestImpl.cpp \
Finn Williams2605b232020-06-10 15:53:46 +010089 test/layerTests/RankTestImpl.cpp \
Sadik Armagana2747482021-02-09 10:28:54 +000090 test/layerTests/ReductionTestImpl.cpp \
Teresa Charlin4e3e8312021-08-05 12:34:37 +010091 test/layerTests/ReduceProdTestImpl.cpp \
Sadik Armagan0c3ea5b2021-02-03 09:29:30 +000092 test/layerTests/ReduceSumTestImpl.cpp \
Aron Virginas-Tar00d306e2019-08-28 18:08:46 +010093 test/layerTests/ReshapeTestImpl.cpp \
Aron Virginas-Tarb3670b12019-10-28 16:06:50 +000094 test/layerTests/ResizeTestImpl.cpp \
Tianle Cheng988354d2023-06-28 13:20:47 +010095 test/layerTests/ReverseV2TestImpl.cpp \
Aron Virginas-Tar00d306e2019-08-28 18:08:46 +010096 test/layerTests/RsqrtTestImpl.cpp \
Tianle Cheng28288182024-02-23 17:56:54 +000097 test/layerTests/ScatterNdTestImpl.cpp \
Aron Virginas-Tar92b9f872019-09-17 17:27:04 +010098 test/layerTests/SliceTestImpl.cpp \
John Mcloughlin0ec00872023-05-15 17:03:49 +010099 test/layerTests/SquaredDifferenceTestImpl.cpp \
Aron Virginas-Tar00d306e2019-08-28 18:08:46 +0100100 test/layerTests/QuantizeTestImpl.cpp \
Teresa Charlin50de4fa2021-05-31 18:47:33 +0100101 test/layerTests/SinTestImpl.cpp \
Keith Davis3ae3f972021-05-21 16:33:48 +0100102 test/layerTests/ShapeTestImpl.cpp \
Aron Virginas-Tar00d306e2019-08-28 18:08:46 +0100103 test/layerTests/SoftmaxTestImpl.cpp \
104 test/layerTests/SpaceToBatchNdTestImpl.cpp \
105 test/layerTests/SpaceToDepthTestImpl.cpp \
106 test/layerTests/SplitterTestImpl.cpp \
Teresa Charlin03027232022-05-09 17:27:08 +0100107 test/layerTests/SqrtTestImpl.cpp \
Matthew Jacksone69c3992019-09-09 14:31:21 +0100108 test/layerTests/StackTestImpl.cpp \
Aron Virginas-Tar00d306e2019-08-28 18:08:46 +0100109 test/layerTests/StridedSliceTestImpl.cpp \
Aron Virginas-Tar94d3b932019-11-11 12:54:47 +0000110 test/layerTests/SubtractionTestImpl.cpp \
Teresa Charlin79a06a52023-07-13 17:16:45 +0100111 test/layerTests/TileTestImpl.cpp \
Narumol Prangnawarate5339e72021-07-28 17:33:28 +0100112 test/layerTests/TransposeConvolution2dTestImpl.cpp \
Sadik Armagan932cf3f2021-09-15 09:22:11 +0100113 test/layerTests/UnidirectionalSequenceLstmTestImpl.cpp \
Jim Flynne1fdd282021-10-26 21:26:10 +0100114 memoryOptimizerStrategyLibrary/test/ConstMemoryStrategyTests.cpp \
Finn Williamsb1aad422021-10-28 19:07:32 +0100115 memoryOptimizerStrategyLibrary/test/ValidatorStrategyTests.cpp \
116 memoryOptimizerStrategyLibrary/test/SingleAxisPriorityListTests.cpp
Matteo Martincighe67edb22019-08-14 14:05:46 +0100117
Matteo Martincighedd6fdc2019-08-29 18:27:18 +0100118ifeq ($(ARMNN_REF_ENABLED),1)
Matteo Martincighe67edb22019-08-14 14:05:46 +0100119COMMON_TEST_SOURCES += \
Ryan OSheab4c49342023-07-25 14:28:27 +0100120 test/mockBackend/MockImportBackend.cpp \
Aron Virginas-Tar69362cc2018-11-22 15:04:42 +0000121 test/WorkloadDataValidation.cpp
Matteo Martincighedd6fdc2019-08-29 18:27:18 +0100122endif # ARMNN_REF_ENABLED == 1