Aron Virginas-Tar | 29fe58b | 2018-10-26 15:37:23 +0100 | [diff] [blame] | 1 | # |
Teresa Charlin | c17a35f | 2023-01-12 14:13:09 +0000 | [diff] [blame] | 2 | # Copyright © 2017-2023 Arm Ltd and Contributors. All rights reserved. |
Aron Virginas-Tar | 29fe58b | 2018-10-26 15:37:23 +0100 | [diff] [blame] | 3 | # SPDX-License-Identifier: MIT |
| 4 | # |
| 5 | |
| 6 | list(APPEND armnnBackendsCommonUnitTests_sources |
| 7 | ActivationFixture.hpp |
Teresa Charlin | 4408850 | 2020-07-27 11:27:19 +0100 | [diff] [blame] | 8 | ActivationEndToEndTestImpl.hpp |
Narumol Prangnawarat | d1f5773 | 2019-10-31 14:24:02 +0000 | [diff] [blame] | 9 | ArgMinMaxEndToEndTestImpl.hpp |
Aron Virginas-Tar | 29fe58b | 2018-10-26 15:37:23 +0100 | [diff] [blame] | 10 | BackendIdTests.cpp |
David Monahan | c1536d6 | 2020-02-12 15:52:35 +0000 | [diff] [blame] | 11 | BackendProfilingTests.cpp |
Aron Virginas-Tar | 29fe58b | 2018-10-26 15:37:23 +0100 | [diff] [blame] | 12 | BackendRegistryTests.cpp |
Teresa Charlin | 43baf50 | 2021-09-27 10:10:39 +0100 | [diff] [blame] | 13 | ChannelShuffleEndToEndTestImpl.hpp |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 14 | ComparisonEndToEndTestImpl.hpp |
Finn Williams | b9af86e | 2021-05-26 18:38:12 +0100 | [diff] [blame] | 15 | CompatibilityTests.cpp |
Teresa Charlin | ca58839 | 2021-10-01 11:29:08 +0100 | [diff] [blame] | 16 | ConcatEndToEndTestImpl.hpp |
Matthew Sloyan | c5fe6e7 | 2022-11-25 16:10:00 +0000 | [diff] [blame] | 17 | Convolution2dEndToEndTestImpl.hpp |
Matthew Sloyan | 5d7b0a3 | 2021-10-18 13:07:49 +0100 | [diff] [blame] | 18 | Convolution3dEndToEndTestImpl.hpp |
Finn Williams | b76eaed | 2021-03-31 16:22:40 +0100 | [diff] [blame] | 19 | DefaultAsyncExecuteTest.cpp |
Aron Virginas-Tar | f97f6da | 2019-10-01 18:35:44 +0100 | [diff] [blame] | 20 | DepthToSpaceEndToEndTestImpl.hpp |
Cathal Corbett | 0690265 | 2022-04-14 17:55:11 +0100 | [diff] [blame] | 21 | DepthwiseConvolution2dEndToEndTests.hpp |
Narumol Prangnawarat | 8c7324d | 2019-05-31 16:42:11 +0100 | [diff] [blame] | 22 | DequantizeEndToEndTestImpl.hpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 23 | DetectionPostProcessEndToEndTestImpl.hpp |
Matteo Martincigh | ac60d28 | 2019-07-25 15:25:44 +0100 | [diff] [blame] | 24 | DynamicBackendTests.cpp |
| 25 | DynamicBackendTests.hpp |
Mike Kelly | 3ec3077 | 2023-03-08 13:47:17 +0000 | [diff] [blame] | 26 | ElementwiseBinaryEndToEndTestImpl.hpp |
josh minor | 4a3c610 | 2020-01-06 16:40:46 -0600 | [diff] [blame] | 27 | ElementwiseUnaryEndToEndTestImpl.hpp |
Aron Virginas-Tar | 29fe58b | 2018-10-26 15:37:23 +0100 | [diff] [blame] | 28 | EndToEndTestImpl.hpp |
Teresa Charlin | 4408850 | 2020-07-27 11:27:19 +0100 | [diff] [blame] | 29 | FillEndToEndTestImpl.hpp |
Sadik Armagan | f0a6dec | 2021-03-25 07:46:55 +0000 | [diff] [blame] | 30 | FullyConnectedEndToEndTestImpl.hpp |
narpra01 | db2b160 | 2019-01-23 15:23:11 +0000 | [diff] [blame] | 31 | GatherEndToEndTestImpl.hpp |
Teresa Charlin | b2d3ec5 | 2022-04-12 22:07:09 +0100 | [diff] [blame] | 32 | GatherNdEndToEndTestImpl.hpp |
Sadik Armagan | 062e0e9 | 2019-10-14 10:31:43 +0100 | [diff] [blame] | 33 | InstanceNormalizationEndToEndTestImpl.cpp |
| 34 | InstanceNormalizationEndToEndTestImpl.hpp |
Aron Virginas-Tar | 29fe58b | 2018-10-26 15:37:23 +0100 | [diff] [blame] | 35 | IsLayerSupportedTestImpl.hpp |
Aron Virginas-Tar | 69362cc | 2018-11-22 15:04:42 +0000 | [diff] [blame] | 36 | JsonPrinterTestImpl.cpp |
Aron Virginas-Tar | 29fe58b | 2018-10-26 15:37:23 +0100 | [diff] [blame] | 37 | JsonPrinterTestImpl.hpp |
| 38 | LayerReleaseConstantDataTest.cpp |
Aron Virginas-Tar | 29fe58b | 2018-10-26 15:37:23 +0100 | [diff] [blame] | 39 | LayerTests.hpp |
Sadik Armagan | 20bea00 | 2019-10-16 09:29:38 +0100 | [diff] [blame] | 40 | LogSoftmaxEndToEndTestImpl.cpp |
| 41 | LogSoftmaxEndToEndTestImpl.hpp |
Teresa Charlin | ca58839 | 2021-10-01 11:29:08 +0100 | [diff] [blame] | 42 | MemoryManagerTests.cpp |
Matteo Martincigh | 88054f8 | 2019-05-17 12:15:30 +0100 | [diff] [blame] | 43 | MockBackendId.hpp |
Nikhil Raj | 9a33946 | 2022-12-05 11:24:35 +0000 | [diff] [blame] | 44 | MultiplicationEndToEndTestImpl.hpp |
Matteo Martincigh | f02e6cd | 2019-05-17 12:15:30 +0100 | [diff] [blame] | 45 | OptimizeSubgraphViewTests.cpp |
David Monahan | 005288d | 2019-05-14 10:42:38 +0100 | [diff] [blame] | 46 | OptimizationViewsTests.cpp |
Nikhil Raj | 747f586 | 2019-07-19 15:15:23 +0100 | [diff] [blame] | 47 | PreluEndToEndTestImpl.hpp |
James Conroy | 0800bf5 | 2020-05-14 12:46:44 +0100 | [diff] [blame] | 48 | QLstmEndToEndTestImpl.cpp |
| 49 | QLstmEndToEndTestImpl.hpp |
Aron Virginas-Tar | 46ff1ca | 2019-09-12 11:03:09 +0100 | [diff] [blame] | 50 | QuantizedLstmEndToEndTestImpl.cpp |
Francis Murtagh | b3fc252 | 2019-08-09 13:20:50 +0100 | [diff] [blame] | 51 | QuantizedLstmEndToEndTestImpl.hpp |
Teresa Charlin | 2e3f4d2 | 2020-07-29 14:29:20 +0100 | [diff] [blame] | 52 | RankEndToEndTestImpl.hpp |
Teresa Charlin | c17a35f | 2023-01-12 14:13:09 +0000 | [diff] [blame] | 53 | ReduceEndToEndTestImpl.hpp |
Cathal Corbett | b30e655 | 2022-12-07 11:50:50 +0000 | [diff] [blame] | 54 | ReshapeEndToEndTestImpl.hpp |
Aron Virginas-Tar | fe15eff | 2019-07-01 16:12:58 +0100 | [diff] [blame] | 55 | ResizeEndToEndTestImpl.hpp |
Aron Virginas-Tar | 29fe58b | 2018-10-26 15:37:23 +0100 | [diff] [blame] | 56 | RuntimeTestImpl.hpp |
Cathal Corbett | 3b9acd5 | 2022-12-09 12:17:27 +0000 | [diff] [blame] | 57 | SliceEndToEndTestImpl.hpp |
Aron Virginas-Tar | f97f6da | 2019-10-01 18:35:44 +0100 | [diff] [blame] | 58 | SpaceToDepthEndToEndTestImpl.cpp |
Keith Davis | 9515c7e | 2019-06-21 09:33:59 +0100 | [diff] [blame] | 59 | SpaceToDepthEndToEndTestImpl.hpp |
Narumol Prangnawarat | 0be4338 | 2019-05-27 11:29:59 +0100 | [diff] [blame] | 60 | SplitterEndToEndTestImpl.hpp |
Mike Kelly | 386ff1a | 2021-03-29 15:04:50 +0100 | [diff] [blame] | 61 | StridedSliceAsyncEndToEndTest.hpp |
Nikhil Raj | 9a33946 | 2022-12-05 11:24:35 +0000 | [diff] [blame] | 62 | SubtractionEndToEndTestImpl.hpp |
Teresa Charlin | 6bc8525 | 2022-12-06 20:43:06 +0000 | [diff] [blame] | 63 | TransposeEndToEndTestImpl.hpp |
Sadik Armagan | a097d2a | 2021-11-24 15:47:28 +0000 | [diff] [blame] | 64 | TensorCopyUtils.hpp |
Aron Virginas-Tar | 5605519 | 2018-11-12 18:10:43 +0000 | [diff] [blame] | 65 | WorkloadFactoryHelper.hpp |
Colm Donelan | a9bea1a | 2023-04-24 21:51:44 +0100 | [diff] [blame] | 66 | WorkloadUtilsTest.cpp |
Sadik Armagan | 9199e58 | 2019-09-05 17:35:31 +0100 | [diff] [blame] | 67 | layerTests/AbsTestImpl.cpp |
| 68 | layerTests/AbsTestImpl.hpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 69 | layerTests/ActivationTestImpl.cpp |
| 70 | layerTests/ActivationTestImpl.hpp |
Aron Virginas-Tar | e89ebad | 2019-08-27 18:14:26 +0100 | [diff] [blame] | 71 | layerTests/AdditionTestImpl.cpp |
| 72 | layerTests/AdditionTestImpl.hpp |
Nikhil Raj | 68c2c90 | 2019-09-19 11:21:11 +0100 | [diff] [blame] | 73 | layerTests/ArgMinMaxTestImpl.cpp |
| 74 | layerTests/ArgMinMaxTestImpl.hpp |
Samuel Yap | 6b47809 | 2022-07-06 15:36:03 +0100 | [diff] [blame] | 75 | layerTests/BatchMatMulTestImpl.cpp |
| 76 | layerTests/BatchMatMulTestImpl.hpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 77 | layerTests/BatchNormalizationTestImpl.cpp |
| 78 | layerTests/BatchNormalizationTestImpl.hpp |
| 79 | layerTests/BatchToSpaceNdTestImpl.hpp |
mathad01 | b392e98 | 2021-04-07 12:07:30 +0100 | [diff] [blame] | 80 | layerTests/CastTestImpl.cpp |
| 81 | layerTests/CastTestImpl.hpp |
Simon Obute | 51f6777 | 2021-09-03 15:50:13 +0100 | [diff] [blame] | 82 | layerTests/ChannelShuffleTestImpl.cpp |
| 83 | layerTests/ChannelShuffleTestImpl.hpp |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 84 | layerTests/ComparisonTestImpl.cpp |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 85 | layerTests/ComparisonTestImpl.hpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 86 | layerTests/ConcatTestImpl.cpp |
| 87 | layerTests/ConcatTestImpl.hpp |
| 88 | layerTests/ConstantTestImpl.cpp |
| 89 | layerTests/ConstantTestImpl.hpp |
| 90 | layerTests/Conv2dTestImpl.cpp |
| 91 | layerTests/Conv2dTestImpl.hpp |
Matthew Sloyan | b63a311 | 2021-09-08 13:05:51 +0100 | [diff] [blame] | 92 | layerTests/Conv3dTestImpl.cpp |
| 93 | layerTests/Conv3dTestImpl.hpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 94 | layerTests/ConvertFp16ToFp32TestImpl.cpp |
| 95 | layerTests/ConvertFp16ToFp32TestImpl.hpp |
| 96 | layerTests/ConvertFp32ToFp16TestImpl.cpp |
| 97 | layerTests/ConvertFp32ToFp16TestImpl.hpp |
| 98 | layerTests/DebugTestImpl.cpp |
| 99 | layerTests/DebugTestImpl.hpp |
Aron Virginas-Tar | 73f6642 | 2019-09-23 19:11:59 +0100 | [diff] [blame] | 100 | layerTests/DepthToSpaceTestImpl.cpp |
| 101 | layerTests/DepthToSpaceTestImpl.hpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 102 | layerTests/DequantizeTestImpl.cpp |
| 103 | layerTests/DequantizeTestImpl.hpp |
| 104 | layerTests/DetectionPostProcessTestImpl.hpp |
Aron Virginas-Tar | e89ebad | 2019-08-27 18:14:26 +0100 | [diff] [blame] | 105 | layerTests/DivisionTestImpl.cpp |
| 106 | layerTests/DivisionTestImpl.hpp |
| 107 | layerTests/ElementwiseTestImpl.hpp |
josh minor | 4a3c610 | 2020-01-06 16:40:46 -0600 | [diff] [blame] | 108 | layerTests/ElementwiseUnaryTestImpl.cpp |
| 109 | layerTests/ElementwiseUnaryTestImpl.hpp |
Sadik Armagan | 9fabf43 | 2020-05-27 13:40:58 +0100 | [diff] [blame] | 110 | layerTests/ExpTestImpl.cpp |
| 111 | layerTests/ExpTestImpl.hpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 112 | layerTests/FakeQuantizationTestImpl.cpp |
| 113 | layerTests/FakeQuantizationTestImpl.hpp |
Ryan OShea | f4bfa6a | 2020-06-10 11:33:37 +0100 | [diff] [blame] | 114 | layerTests/FillTestImpl.cpp |
| 115 | layerTests/FillTestImpl.hpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 116 | layerTests/FloorTestImpl.cpp |
| 117 | layerTests/FloorTestImpl.hpp |
| 118 | layerTests/FullyConnectedTestImpl.cpp |
| 119 | layerTests/FullyConnectedTestImpl.hpp |
Teresa Charlin | b2d3ec5 | 2022-04-12 22:07:09 +0100 | [diff] [blame] | 120 | layerTests/GatherNdTestImpl.cpp |
| 121 | layerTests/GatherNdTestImpl.hpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 122 | layerTests/GatherTestImpl.cpp |
| 123 | layerTests/GatherTestImpl.hpp |
Aron Virginas-Tar | 8168f40 | 2019-10-04 13:10:16 +0100 | [diff] [blame] | 124 | layerTests/InstanceNormalizationTestImpl.cpp |
| 125 | layerTests/InstanceNormalizationTestImpl.hpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 126 | layerTests/L2NormalizationTestImpl.cpp |
| 127 | layerTests/L2NormalizationTestImpl.hpp |
Teresa Charlin | 50de4fa | 2021-05-31 18:47:33 +0100 | [diff] [blame] | 128 | layerTests/LogTestImpl.cpp |
| 129 | layerTests/LogTestImpl.hpp |
James Conroy | aba90cd | 2020-11-06 16:28:18 +0000 | [diff] [blame] | 130 | layerTests/LogicalTestImpl.cpp |
| 131 | layerTests/LogicalTestImpl.hpp |
Aron Virginas-Tar | e662a94 | 2019-10-14 15:12:00 +0100 | [diff] [blame] | 132 | layerTests/LogSoftmaxTestImpl.cpp |
| 133 | layerTests/LogSoftmaxTestImpl.hpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 134 | layerTests/LstmTestImpl.cpp |
| 135 | layerTests/LstmTestImpl.hpp |
Aron Virginas-Tar | e89ebad | 2019-08-27 18:14:26 +0100 | [diff] [blame] | 136 | layerTests/MaximumTestImpl.cpp |
| 137 | layerTests/MaximumTestImpl.hpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 138 | layerTests/MeanTestImpl.hpp |
Aron Virginas-Tar | e89ebad | 2019-08-27 18:14:26 +0100 | [diff] [blame] | 139 | layerTests/MinimumTestImpl.cpp |
| 140 | layerTests/MinimumTestImpl.hpp |
Matthew Sloyan | 2e5d0b2 | 2021-10-21 14:05:31 +0100 | [diff] [blame] | 141 | layerTests/MirrorPadTestImpl.cpp |
| 142 | layerTests/MirrorPadTestImpl.hpp |
Aron Virginas-Tar | e89ebad | 2019-08-27 18:14:26 +0100 | [diff] [blame] | 143 | layerTests/MultiplicationTestImpl.cpp |
| 144 | layerTests/MultiplicationTestImpl.hpp |
Sadik Armagan | ac47210 | 2020-03-24 09:54:36 +0000 | [diff] [blame] | 145 | layerTests/NegTestImpl.cpp |
| 146 | layerTests/NegTestImpl.hpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 147 | layerTests/NormalizationTestImpl.cpp |
| 148 | layerTests/NormalizationTestImpl.hpp |
| 149 | layerTests/PadTestImpl.cpp |
| 150 | layerTests/PadTestImpl.hpp |
| 151 | layerTests/PermuteTestImpl.hpp |
| 152 | layerTests/Pooling2dTestImpl.cpp |
| 153 | layerTests/Pooling2dTestImpl.hpp |
Tamás Nyíri | 7b885b3 | 2021-10-26 14:47:57 +0100 | [diff] [blame] | 154 | layerTests/Pooling3dTestImpl.cpp |
| 155 | layerTests/Pooling3dTestImpl.hpp |
John Mcloughlin | 0ec0087 | 2023-05-15 17:03:49 +0100 | [diff] [blame] | 156 | layerTests/PowerTestImpl.cpp |
| 157 | layerTests/PowerTestImpl.hpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 158 | layerTests/PreluTestImpl.hpp |
| 159 | layerTests/QuantizeTestImpl.cpp |
| 160 | layerTests/QuantizeTestImpl.hpp |
Finn Williams | 2605b23 | 2020-06-10 15:53:46 +0100 | [diff] [blame] | 161 | layerTests/RankTestImpl.cpp |
| 162 | layerTests/RankTestImpl.hpp |
Sadik Armagan | a274748 | 2021-02-09 10:28:54 +0000 | [diff] [blame] | 163 | layerTests/ReductionTestImpl.cpp |
| 164 | layerTests/ReductionTestImpl.hpp |
Teresa Charlin | 4e3e831 | 2021-08-05 12:34:37 +0100 | [diff] [blame] | 165 | layerTests/ReduceProdTestImpl.cpp |
| 166 | layerTests/ReduceProdTestImpl.hpp |
Sadik Armagan | 0c3ea5b | 2021-02-03 09:29:30 +0000 | [diff] [blame] | 167 | layerTests/ReduceSumTestImpl.cpp |
| 168 | layerTests/ReduceSumTestImpl.hpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 169 | layerTests/ReshapeTestImpl.cpp |
| 170 | layerTests/ReshapeTestImpl.hpp |
Aron Virginas-Tar | b3670b1 | 2019-10-28 16:06:50 +0000 | [diff] [blame] | 171 | layerTests/ResizeTestImpl.cpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 172 | layerTests/ResizeTestImpl.hpp |
| 173 | layerTests/RsqrtTestImpl.cpp |
| 174 | layerTests/RsqrtTestImpl.hpp |
Teresa Charlin | 50de4fa | 2021-05-31 18:47:33 +0100 | [diff] [blame] | 175 | layerTests/SinTestImpl.cpp |
| 176 | layerTests/SinTestImpl.hpp |
Keith Davis | 3ae3f97 | 2021-05-21 16:33:48 +0100 | [diff] [blame] | 177 | layerTests/ShapeTestImpl.cpp |
| 178 | layerTests/ShapeTestImpl.cpp |
Aron Virginas-Tar | 92b9f87 | 2019-09-17 17:27:04 +0100 | [diff] [blame] | 179 | layerTests/SliceTestImpl.cpp |
| 180 | layerTests/SliceTestImpl.hpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 181 | layerTests/SoftmaxTestImpl.cpp |
| 182 | layerTests/SoftmaxTestImpl.hpp |
| 183 | layerTests/SpaceToBatchNdTestImpl.cpp |
| 184 | layerTests/SpaceToBatchNdTestImpl.hpp |
| 185 | layerTests/SpaceToDepthTestImpl.cpp |
| 186 | layerTests/SpaceToDepthTestImpl.hpp |
| 187 | layerTests/SplitterTestImpl.cpp |
| 188 | layerTests/SplitterTestImpl.hpp |
Teresa Charlin | 0302723 | 2022-05-09 17:27:08 +0100 | [diff] [blame] | 189 | layerTests/SqrtTestImpl.cpp |
| 190 | layerTests/SqrtTestImpl.hpp |
John Mcloughlin | 0ec0087 | 2023-05-15 17:03:49 +0100 | [diff] [blame] | 191 | layerTests/SquaredDifferenceTestImpl.cpp |
| 192 | layerTests/SquaredDifferenceTestImpl.hpp |
Matthew Jackson | e69c399 | 2019-09-09 14:31:21 +0100 | [diff] [blame] | 193 | layerTests/StackTestImpl.cpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 194 | layerTests/StackTestImpl.hpp |
| 195 | layerTests/StridedSliceTestImpl.cpp |
| 196 | layerTests/StridedSliceTestImpl.hpp |
Aron Virginas-Tar | e89ebad | 2019-08-27 18:14:26 +0100 | [diff] [blame] | 197 | layerTests/SubtractionTestImpl.cpp |
| 198 | layerTests/SubtractionTestImpl.hpp |
Aron Virginas-Tar | 94d3b93 | 2019-11-11 12:54:47 +0000 | [diff] [blame] | 199 | layerTests/TransposeConvolution2dTestImpl.cpp |
Aron Virginas-Tar | 00d306e | 2019-08-28 18:08:46 +0100 | [diff] [blame] | 200 | layerTests/TransposeConvolution2dTestImpl.hpp |
Narumol Prangnawarat | e5339e7 | 2021-07-28 17:33:28 +0100 | [diff] [blame] | 201 | layerTests/UnidirectionalSequenceLstmTestImpl.cpp |
| 202 | layerTests/UnidirectionalSequenceLstmTestImpl.hpp |
Aron Virginas-Tar | 29fe58b | 2018-10-26 15:37:23 +0100 | [diff] [blame] | 203 | ) |
| 204 | |
Mike Kelly | 6fe9ef9 | 2023-03-24 19:21:25 +0000 | [diff] [blame] | 205 | if(ARMCOMPUTENEON OR ARMNNREF) |
| 206 | list(APPEND armnnBackendsCommonUnitTests_sources |
| 207 | CustomMemoryOptimizerStrategyTests.cpp |
| 208 | ) |
| 209 | endif() |
| 210 | |
Matteo Martincigh | db16dd3 | 2019-08-27 16:41:11 +0100 | [diff] [blame] | 211 | if (ARMNNREF) |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 212 | list(APPEND armnnBackendsCommonUnitTests_sources |
Narumol Prangnawarat | c53ceec | 2020-08-17 11:42:20 +0100 | [diff] [blame] | 213 | mockBackend/MockImportBackend.cpp |
| 214 | mockBackend/MockImportBackend.hpp |
| 215 | mockBackend/MockImportLayerSupport.hpp |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 216 | OptimizedNetworkTests.cpp |
| 217 | WorkloadDataValidation.cpp |
| 218 | ) |
| 219 | endif() |
| 220 | |
Aron Virginas-Tar | 29fe58b | 2018-10-26 15:37:23 +0100 | [diff] [blame] | 221 | add_library(armnnBackendsCommonUnitTests OBJECT ${armnnBackendsCommonUnitTests_sources}) |
Aron Virginas-Tar | 29fe58b | 2018-10-26 15:37:23 +0100 | [diff] [blame] | 222 | target_include_directories(armnnBackendsCommonUnitTests PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
Aron Virginas-Tar | c9cc804 | 2018-11-01 16:15:57 +0000 | [diff] [blame] | 223 | target_include_directories(armnnBackendsCommonUnitTests PRIVATE ${PROJECT_SOURCE_DIR}/src/armnnUtils) |
Sadik Armagan | a097d2a | 2021-11-24 15:47:28 +0000 | [diff] [blame] | 224 | target_include_directories(armnnBackendsCommonUnitTests PRIVATE ${PROJECT_SOURCE_DIR}/src/armnnTestUtils) |
Nattapat Chaimanowong | 1216b58 | 2018-11-23 15:33:41 +0000 | [diff] [blame] | 225 | target_include_directories(armnnBackendsCommonUnitTests PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 226 | target_include_directories(armnnBackendsCommonUnitTests PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 227 | target_include_directories(armnnBackendsCommonUnitTests PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 228 | target_include_directories(armnnBackendsCommonUnitTests PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Sadik Armagan | 1625efc | 2021-06-10 18:24:34 +0100 | [diff] [blame] | 229 | target_include_directories(armnnBackendsCommonUnitTests PRIVATE ${PROJECT_SOURCE_DIR}/third-party) |
Matteo Martincigh | 986c186 | 2019-07-26 15:12:47 +0100 | [diff] [blame] | 230 | |
| 231 | # Dummy shared object for testing. |
| 232 | # This is a simple library used to test the utility functions that will be used to handle the shared objects. |
| 233 | |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 234 | list(APPEND testSharedObject_sources |
Matteo Martincigh | 986c186 | 2019-07-26 15:12:47 +0100 | [diff] [blame] | 235 | TestSharedObject.cpp |
| 236 | TestSharedObject.hpp |
| 237 | ) |
| 238 | |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 239 | add_library_ex(TestSharedObject MODULE ${testSharedObject_sources}) |
| 240 | set_target_properties(TestSharedObject PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testSharedObject) |
| 241 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/testSharedObject/libNoSharedObject.txt "This is not a shared object") |
Matteo Martincigh | bc2e210 | 2019-07-24 14:56:13 +0100 | [diff] [blame] | 242 | |
| 243 | # Dummy dynamic backends for testing. |
| 244 | # Both a valid and a number of invalid dummy dynamic backends (covering various use cases) share the |
| 245 | # same source code. The various test cases are put together in the code using compiler directives. |
| 246 | |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 247 | list(APPEND testDynamicBackend_sources |
Matteo Martincigh | bc2e210 | 2019-07-24 14:56:13 +0100 | [diff] [blame] | 248 | TestDynamicBackend.cpp |
| 249 | TestDynamicBackend.hpp |
| 250 | ) |
| 251 | |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 252 | add_library_ex(ValidTestDynamicBackend MODULE ${testDynamicBackend_sources}) |
Matteo Martincigh | e54aa06 | 2019-08-05 14:12:11 +0100 | [diff] [blame] | 253 | target_compile_definitions(ValidTestDynamicBackend PRIVATE -DVALID_TEST_DYNAMIC_BACKEND_1) |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 254 | target_include_directories(ValidTestDynamicBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 255 | target_include_directories(ValidTestDynamicBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 256 | target_include_directories(ValidTestDynamicBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 257 | target_include_directories(ValidTestDynamicBackend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 258 | target_include_directories(ValidTestDynamicBackend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 259 | target_link_libraries(ValidTestDynamicBackend armnn) |
| 260 | set_target_properties(ValidTestDynamicBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testDynamicBackend) |
Matteo Martincigh | bc2e210 | 2019-07-24 14:56:13 +0100 | [diff] [blame] | 261 | |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 262 | add_library_ex(InvalidTestDynamicBackend1 MODULE ${testDynamicBackend_sources}) |
| 263 | target_compile_definitions(InvalidTestDynamicBackend1 PRIVATE -DINVALID_TEST_DYNAMIC_BACKEND_1) |
| 264 | target_include_directories(InvalidTestDynamicBackend1 PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 265 | target_include_directories(InvalidTestDynamicBackend1 PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 266 | target_include_directories(InvalidTestDynamicBackend1 PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 267 | target_include_directories(InvalidTestDynamicBackend1 PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 268 | target_include_directories(InvalidTestDynamicBackend1 PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 269 | target_link_libraries(InvalidTestDynamicBackend1 armnn) |
| 270 | set_target_properties(InvalidTestDynamicBackend1 PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testDynamicBackend) |
Matteo Martincigh | bc2e210 | 2019-07-24 14:56:13 +0100 | [diff] [blame] | 271 | |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 272 | add_library_ex(InvalidTestDynamicBackend2 MODULE ${testDynamicBackend_sources}) |
| 273 | target_compile_definitions(InvalidTestDynamicBackend2 PRIVATE -DINVALID_TEST_DYNAMIC_BACKEND_2) |
| 274 | target_include_directories(InvalidTestDynamicBackend2 PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 275 | target_include_directories(InvalidTestDynamicBackend2 PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 276 | target_include_directories(InvalidTestDynamicBackend2 PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 277 | target_include_directories(InvalidTestDynamicBackend2 PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 278 | target_include_directories(InvalidTestDynamicBackend2 PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 279 | target_link_libraries(InvalidTestDynamicBackend2 armnn) |
| 280 | set_target_properties(InvalidTestDynamicBackend2 PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testDynamicBackend) |
Matteo Martincigh | bc2e210 | 2019-07-24 14:56:13 +0100 | [diff] [blame] | 281 | |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 282 | add_library_ex(InvalidTestDynamicBackend3 MODULE ${testDynamicBackend_sources}) |
| 283 | target_compile_definitions(InvalidTestDynamicBackend3 PRIVATE -DINVALID_TEST_DYNAMIC_BACKEND_3) |
| 284 | target_include_directories(InvalidTestDynamicBackend3 PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 285 | target_include_directories(InvalidTestDynamicBackend3 PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 286 | target_include_directories(InvalidTestDynamicBackend3 PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 287 | target_include_directories(InvalidTestDynamicBackend3 PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 288 | target_include_directories(InvalidTestDynamicBackend3 PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 289 | target_link_libraries(InvalidTestDynamicBackend3 armnn) |
| 290 | set_target_properties(InvalidTestDynamicBackend3 PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testDynamicBackend) |
Matteo Martincigh | bc2e210 | 2019-07-24 14:56:13 +0100 | [diff] [blame] | 291 | |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 292 | add_library_ex(InvalidTestDynamicBackend4 MODULE ${testDynamicBackend_sources}) |
| 293 | target_compile_definitions(InvalidTestDynamicBackend4 PRIVATE -DINVALID_TEST_DYNAMIC_BACKEND_4) |
| 294 | target_include_directories(InvalidTestDynamicBackend4 PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 295 | target_include_directories(InvalidTestDynamicBackend4 PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 296 | target_include_directories(InvalidTestDynamicBackend4 PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 297 | target_include_directories(InvalidTestDynamicBackend4 PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 298 | target_include_directories(InvalidTestDynamicBackend4 PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 299 | target_link_libraries(InvalidTestDynamicBackend4 armnn) |
| 300 | set_target_properties(InvalidTestDynamicBackend4 PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testDynamicBackend) |
Matteo Martincigh | bc2e210 | 2019-07-24 14:56:13 +0100 | [diff] [blame] | 301 | |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 302 | add_library_ex(InvalidTestDynamicBackend5 MODULE ${testDynamicBackend_sources}) |
| 303 | target_compile_definitions(InvalidTestDynamicBackend5 PRIVATE -DINVALID_TEST_DYNAMIC_BACKEND_5) |
| 304 | target_include_directories(InvalidTestDynamicBackend5 PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 305 | target_include_directories(InvalidTestDynamicBackend5 PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 306 | target_include_directories(InvalidTestDynamicBackend5 PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 307 | target_include_directories(InvalidTestDynamicBackend5 PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 308 | target_include_directories(InvalidTestDynamicBackend5 PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 309 | target_link_libraries(InvalidTestDynamicBackend5 armnn) |
| 310 | set_target_properties(InvalidTestDynamicBackend5 PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testDynamicBackend) |
Matteo Martincigh | bc2e210 | 2019-07-24 14:56:13 +0100 | [diff] [blame] | 311 | |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 312 | add_library_ex(InvalidTestDynamicBackend6 MODULE ${testDynamicBackend_sources}) |
| 313 | target_compile_definitions(InvalidTestDynamicBackend6 PRIVATE -DINVALID_TEST_DYNAMIC_BACKEND_6) |
| 314 | target_include_directories(InvalidTestDynamicBackend6 PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 315 | target_include_directories(InvalidTestDynamicBackend6 PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 316 | target_include_directories(InvalidTestDynamicBackend6 PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 317 | target_include_directories(InvalidTestDynamicBackend6 PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 318 | target_include_directories(InvalidTestDynamicBackend6 PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 319 | target_link_libraries(InvalidTestDynamicBackend6 armnn) |
| 320 | set_target_properties(InvalidTestDynamicBackend6 PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testDynamicBackend) |
Matteo Martincigh | bc2e210 | 2019-07-24 14:56:13 +0100 | [diff] [blame] | 321 | |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 322 | add_library_ex(InvalidTestDynamicBackend7 MODULE ${testDynamicBackend_sources}) |
| 323 | target_compile_definitions(InvalidTestDynamicBackend7 PRIVATE -DINVALID_TEST_DYNAMIC_BACKEND_7) |
| 324 | target_include_directories(InvalidTestDynamicBackend7 PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 325 | target_include_directories(InvalidTestDynamicBackend7 PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 326 | target_include_directories(InvalidTestDynamicBackend7 PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 327 | target_include_directories(InvalidTestDynamicBackend7 PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 328 | target_include_directories(InvalidTestDynamicBackend6 PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Matteo Martincigh | d0dc770 | 2019-08-01 17:09:03 +0100 | [diff] [blame] | 329 | target_link_libraries(InvalidTestDynamicBackend7 armnn) |
| 330 | set_target_properties(InvalidTestDynamicBackend7 PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testDynamicBackend) |
Matteo Martincigh | f0a0a9e | 2019-08-05 15:27:55 +0100 | [diff] [blame] | 331 | |
| 332 | # Dummy files and directories for testing the dynamic backend file parsing. |
| 333 | |
| 334 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/Arm_GpuAcc_backend.so "Test file for dynamic backend file parsing") |
| 335 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/Arm_GpuAcc_backend.so.1 "Test file for dynamic backend file parsing") |
| 336 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/Arm_GpuAcc_backend.so.1.2 "Test file for dynamic backend file parsing") |
| 337 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/Arm_GpuAcc_backend.so.1.2.3 "Test file for dynamic backend file parsing") |
| 338 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/Arm_GpuAcc_backend.so.10.1.27 "Test file for dynamic backend file parsing") |
| 339 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/Arm_GpuAcc_backend.so.10.1.33. "Test file for dynamic backend file parsing") |
| 340 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/Arm_GpuAcc_backend.so.3.4..5 "Test file for dynamic backend file parsing") |
| 341 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/Arm_GpuAcc_backend.so.1,1.1 "Test file for dynamic backend file parsing") |
| 342 | |
| 343 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/Arm123_GpuAcc_backend.so "Test file for dynamic backend file parsing") |
| 344 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/Arm_GpuAcc456_backend.so "Test file for dynamic backend file parsing") |
| 345 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/Arm%Co_GpuAcc_backend.so "Test file for dynamic backend file parsing") |
| 346 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/Arm_Gpu.Acc_backend.so "Test file for dynamic backend file parsing") |
| 347 | |
| 348 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/GpuAcc_backend.so "Test file for dynamic backend file parsing") |
| 349 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/_GpuAcc_backend.so "Test file for dynamic backend file parsing") |
| 350 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/Arm__backend.so "Test file for dynamic backend file parsing") |
| 351 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/Arm_GpuAcc.so "Test file for dynamic backend file parsing") |
| 352 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/__backend.so "Test file for dynamic backend file parsing") |
| 353 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/__.so "Test file for dynamic backend file parsing") |
| 354 | |
| 355 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/Arm_GpuAcc_backend "Test file for dynamic backend file parsing") |
| 356 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath1/Arm_GpuAcc_backend_v1.2.so "Test file for dynamic backend file parsing") |
| 357 | |
| 358 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath2/Arm_CpuAcc_backend.so "Test file for dynamic backend file parsing") |
| 359 | add_custom_target(link_dummy_dynamic_backend ALL |
| 360 | COMMAND ${CMAKE_COMMAND} -E create_symlink Arm_CpuAcc_backend.so backendsTestPath2/Arm_CpuAcc_backend.so.1 |
| 361 | COMMAND ${CMAKE_COMMAND} -E create_symlink Arm_CpuAcc_backend.so.1 backendsTestPath2/Arm_CpuAcc_backend.so.1.2 |
| 362 | COMMAND ${CMAKE_COMMAND} -E create_symlink Arm_CpuAcc_backend.so.1.2 backendsTestPath2/Arm_CpuAcc_backend.so.1.2.3 |
| 363 | COMMAND ${CMAKE_COMMAND} -E create_symlink nothing backendsTestPath2/Arm_no_backend.so) |
| 364 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath2/Arm_GpuAcc_backend.so "Test file for dynamic backend file parsing") |
| 365 | |
| 366 | file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath3) |
Matteo Martincigh | e54aa06 | 2019-08-05 14:12:11 +0100 | [diff] [blame] | 367 | |
| 368 | # Dummy dynamic backends for testing. |
| 369 | # These shared objects are used to test the creation of dynamic backend instances in ArmNN. |
| 370 | |
| 371 | add_library_ex(Arm_TestValid2_backend MODULE ${testDynamicBackend_sources}) |
| 372 | target_compile_definitions(Arm_TestValid2_backend PRIVATE -DVALID_TEST_DYNAMIC_BACKEND_2) |
| 373 | target_include_directories(Arm_TestValid2_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 374 | target_include_directories(Arm_TestValid2_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 375 | target_include_directories(Arm_TestValid2_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 376 | target_include_directories(Arm_TestValid2_backend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 377 | target_include_directories(Arm_TestValid2_backend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Matteo Martincigh | e54aa06 | 2019-08-05 14:12:11 +0100 | [diff] [blame] | 378 | target_link_libraries(Arm_TestValid2_backend armnn) |
| 379 | set_target_properties(Arm_TestValid2_backend PROPERTIES PREFIX "") |
| 380 | set_target_properties(Arm_TestValid2_backend PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath5) |
| 381 | add_custom_command(TARGET Arm_TestValid2_backend POST_BUILD |
| 382 | COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:Arm_TestValid2_backend> ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath6) |
| 383 | |
| 384 | add_library_ex(Arm_TestValid3_backend MODULE ${testDynamicBackend_sources}) |
| 385 | target_compile_definitions(Arm_TestValid3_backend PRIVATE -DVALID_TEST_DYNAMIC_BACKEND_3) |
| 386 | target_include_directories(Arm_TestValid3_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 387 | target_include_directories(Arm_TestValid3_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 388 | target_include_directories(Arm_TestValid3_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 389 | target_include_directories(Arm_TestValid3_backend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 390 | target_include_directories(Arm_TestValid3_backend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Matteo Martincigh | e54aa06 | 2019-08-05 14:12:11 +0100 | [diff] [blame] | 391 | target_link_libraries(Arm_TestValid3_backend armnn) |
| 392 | set_target_properties(Arm_TestValid3_backend PROPERTIES PREFIX "") |
| 393 | set_target_properties(Arm_TestValid3_backend PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath5) |
| 394 | |
| 395 | add_library_ex(Arm_TestInvalid8_backend MODULE ${testDynamicBackend_sources}) |
| 396 | target_compile_definitions(Arm_TestInvalid8_backend PRIVATE -DINVALID_TEST_DYNAMIC_BACKEND_8) |
| 397 | target_include_directories(Arm_TestInvalid8_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 398 | target_include_directories(Arm_TestInvalid8_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 399 | target_include_directories(Arm_TestInvalid8_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 400 | target_include_directories(Arm_TestInvalid8_backend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 401 | target_include_directories(Arm_TestInvalid8_backend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Matteo Martincigh | e54aa06 | 2019-08-05 14:12:11 +0100 | [diff] [blame] | 402 | target_link_libraries(Arm_TestInvalid8_backend armnn) |
| 403 | set_target_properties(Arm_TestInvalid8_backend PROPERTIES PREFIX "") |
| 404 | set_target_properties(Arm_TestInvalid8_backend PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath5) |
| 405 | |
| 406 | add_library_ex(Arm_TestValid4_backend MODULE ${testDynamicBackend_sources}) |
| 407 | target_compile_definitions(Arm_TestValid4_backend PRIVATE -DVALID_TEST_DYNAMIC_BACKEND_4) |
| 408 | target_include_directories(Arm_TestValid4_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 409 | target_include_directories(Arm_TestValid4_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 410 | target_include_directories(Arm_TestValid4_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 411 | target_include_directories(Arm_TestValid4_backend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 412 | target_include_directories(Arm_TestValid4_backend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Matteo Martincigh | e54aa06 | 2019-08-05 14:12:11 +0100 | [diff] [blame] | 413 | target_link_libraries(Arm_TestValid4_backend armnn) |
| 414 | set_target_properties(Arm_TestValid4_backend PROPERTIES PREFIX "") |
| 415 | set_target_properties(Arm_TestValid4_backend PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath6) |
| 416 | |
Matteo Martincigh | 0c2b289 | 2019-08-05 14:12:11 +0100 | [diff] [blame] | 417 | add_library_ex(Arm_TestValid5_backend MODULE ${testDynamicBackend_sources}) |
| 418 | target_compile_definitions(Arm_TestValid5_backend PRIVATE -DVALID_TEST_DYNAMIC_BACKEND_5) |
| 419 | target_include_directories(Arm_TestValid5_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 420 | target_include_directories(Arm_TestValid5_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 421 | target_include_directories(Arm_TestValid5_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 422 | target_include_directories(Arm_TestValid5_backend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 423 | target_include_directories(Arm_TestValid5_backend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Matteo Martincigh | 0c2b289 | 2019-08-05 14:12:11 +0100 | [diff] [blame] | 424 | target_link_libraries(Arm_TestValid5_backend armnn) |
| 425 | set_target_properties(Arm_TestValid5_backend PROPERTIES PREFIX "") |
| 426 | set_target_properties(Arm_TestValid5_backend PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath6) |
| 427 | |
Matteo Martincigh | e54aa06 | 2019-08-05 14:12:11 +0100 | [diff] [blame] | 428 | add_library_ex(Arm_TestInvalid9_backend MODULE ${testDynamicBackend_sources}) |
| 429 | target_compile_definitions(Arm_TestInvalid9_backend PRIVATE -DINVALID_TEST_DYNAMIC_BACKEND_9) |
| 430 | target_include_directories(Arm_TestInvalid9_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 431 | target_include_directories(Arm_TestInvalid9_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 432 | target_include_directories(Arm_TestInvalid9_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 433 | target_include_directories(Arm_TestInvalid9_backend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 434 | target_include_directories(Arm_TestInvalid9_backend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Matteo Martincigh | e54aa06 | 2019-08-05 14:12:11 +0100 | [diff] [blame] | 435 | target_link_libraries(Arm_TestInvalid9_backend armnn) |
| 436 | set_target_properties(Arm_TestInvalid9_backend PROPERTIES PREFIX "") |
| 437 | set_target_properties(Arm_TestInvalid9_backend PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath6) |
| 438 | |
Matteo Martincigh | 0c2b289 | 2019-08-05 14:12:11 +0100 | [diff] [blame] | 439 | add_library_ex(Arm_TestInvalid10_backend MODULE ${testDynamicBackend_sources}) |
| 440 | target_compile_definitions(Arm_TestInvalid10_backend PRIVATE -DINVALID_TEST_DYNAMIC_BACKEND_10) |
| 441 | target_include_directories(Arm_TestInvalid10_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 442 | target_include_directories(Arm_TestInvalid10_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 443 | target_include_directories(Arm_TestInvalid10_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 444 | target_include_directories(Arm_TestInvalid10_backend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 445 | target_include_directories(Arm_TestInvalid10_backend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Matteo Martincigh | 0c2b289 | 2019-08-05 14:12:11 +0100 | [diff] [blame] | 446 | target_link_libraries(Arm_TestInvalid10_backend armnn) |
| 447 | set_target_properties(Arm_TestInvalid10_backend PROPERTIES PREFIX "") |
| 448 | set_target_properties(Arm_TestInvalid10_backend PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath9) |
| 449 | |
| 450 | add_library_ex(Arm_TestInvalid11_backend MODULE ${testDynamicBackend_sources}) |
| 451 | target_compile_definitions(Arm_TestInvalid11_backend PRIVATE -DINVALID_TEST_DYNAMIC_BACKEND_11) |
| 452 | target_include_directories(Arm_TestInvalid11_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 453 | target_include_directories(Arm_TestInvalid11_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
Narumol Prangnawarat | 85ad78c | 2019-11-18 15:34:23 +0000 | [diff] [blame] | 454 | target_include_directories(Arm_TestInvalid11_backend PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling) |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 455 | target_include_directories(Arm_TestInvalid11_backend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include) |
Jim Flynn | 2776183 | 2022-03-20 21:52:17 +0000 | [diff] [blame] | 456 | target_include_directories(Arm_TestInvalid11_backend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/client/include) |
Matteo Martincigh | 0c2b289 | 2019-08-05 14:12:11 +0100 | [diff] [blame] | 457 | target_link_libraries(Arm_TestInvalid11_backend armnn) |
| 458 | set_target_properties(Arm_TestInvalid11_backend PROPERTIES PREFIX "") |
| 459 | set_target_properties(Arm_TestInvalid11_backend PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath9) |
| 460 | |
Matteo Martincigh | e54aa06 | 2019-08-05 14:12:11 +0100 | [diff] [blame] | 461 | file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/backendsTestPath7) |