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