David Beck | 10b4dfd | 2018-09-19 12:03:20 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | # |
Jim Flynn | 3091b06 | 2019-02-15 14:45:04 +0000 | [diff] [blame] | 5 | cmake_minimum_required (VERSION 3.0.2) # 3.0.2 required for return() statement used in AddDllCopyCommands.cmake |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 6 | project(armnn) |
| 7 | |
| 8 | set(additional_cmake_files) |
| 9 | list(APPEND additional_cmake_files |
Guillaume Gardet | 5ae7829 | 2019-10-15 08:47:26 +0200 | [diff] [blame] | 10 | cmake/ArmnnVersion.cmake |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 11 | cmake/Utils.cmake |
| 12 | cmake/GlobalConfig.cmake |
| 13 | cmake/AddDllCopyCommands.cmake) |
| 14 | |
| 15 | foreach(cmake_file ${additional_cmake_files}) |
| 16 | include(${cmake_file}) |
| 17 | endforeach() |
| 18 | |
Matteo Martincigh | e7d4498 | 2019-08-05 12:16:47 +0100 | [diff] [blame] | 19 | if (DYNAMIC_BACKEND_PATHS) |
| 20 | # It's expected to have the format: DYNAMIC_BACKEND_PATHS="PATH_1:PATH_2...:PATH_N" |
| 21 | add_definitions('-DDYNAMIC_BACKEND_PATHS="${DYNAMIC_BACKEND_PATHS}"') |
| 22 | endif() |
| 23 | |
Matthew Bentham | a7b7928 | 2019-06-03 13:00:50 +0100 | [diff] [blame] | 24 | include(GNUInstallDirs) |
| 25 | |
Ruomei Yan | db7c391 | 2019-03-08 17:50:25 +0000 | [diff] [blame] | 26 | add_subdirectory(samples) |
| 27 | add_subdirectory(src/armnnTfLiteParser) |
| 28 | add_subdirectory(src/armnnSerializer) |
| 29 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 30 | if (BUILD_TESTS) |
| 31 | add_subdirectory(tests) |
| 32 | endif() |
| 33 | |
| 34 | # Include the additional cmake files in their own target so that they will appear nicely in IDEs |
| 35 | add_custom_target(AdditionalCMakeFiles SOURCES ${additional_cmake_files}) |
| 36 | |
| 37 | set(armnnUtils_sources) |
| 38 | list(APPEND armnnUtils_sources |
Matteo Martincigh | e011d20 | 2019-11-28 11:35:47 +0000 | [diff] [blame] | 39 | include/armnnUtils/DataLayoutIndexed.hpp |
| 40 | include/armnnUtils/Permute.hpp |
| 41 | include/armnnUtils/FloatingPointConverter.hpp |
| 42 | include/armnnUtils/TensorUtils.hpp |
Rob Hughes | bdee426 | 2020-01-07 17:05:24 +0000 | [diff] [blame] | 43 | src/armnnUtils/Filesystem.hpp |
| 44 | src/armnnUtils/Filesystem.cpp |
| 45 | src/armnnUtils/Processes.hpp |
| 46 | src/armnnUtils/Processes.cpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 47 | src/armnnUtils/GraphTopologicalSort.hpp |
arovir01 | 616e775 | 2018-10-01 17:08:59 +0100 | [diff] [blame] | 48 | src/armnnUtils/Half.hpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 49 | src/armnnUtils/Permute.cpp |
Matteo Martincigh | 2135015 | 2018-11-28 16:22:22 +0000 | [diff] [blame] | 50 | src/armnnUtils/DataLayoutIndexed.cpp |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 51 | src/armnnUtils/DotSerializer.cpp |
| 52 | src/armnnUtils/DotSerializer.hpp |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 53 | src/armnnUtils/HeapProfiling.cpp |
| 54 | src/armnnUtils/HeapProfiling.hpp |
| 55 | src/armnnUtils/LeakChecking.cpp |
| 56 | src/armnnUtils/LeakChecking.hpp |
Éanna Ó Catháin | a4247d5 | 2019-05-08 14:00:45 +0100 | [diff] [blame] | 57 | src/armnnUtils/ModelAccuracyChecker.cpp |
| 58 | src/armnnUtils/ModelAccuracyChecker.hpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 59 | src/armnnUtils/CsvReader.cpp |
| 60 | src/armnnUtils/CsvReader.hpp |
| 61 | src/armnnUtils/FloatingPointConverter.cpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 62 | src/armnnUtils/VerificationHelpers.hpp |
| 63 | src/armnnUtils/VerificationHelpers.cpp |
Sadik Armagan | 479045b | 2018-10-01 11:51:37 +0100 | [diff] [blame] | 64 | src/armnnUtils/ParserHelper.hpp |
| 65 | src/armnnUtils/ParserHelper.cpp |
Matthew Bentham | 4057d91 | 2019-01-21 15:45:51 +0000 | [diff] [blame] | 66 | src/armnnUtils/ParserPrototxtFixture.hpp |
| 67 | src/armnnUtils/PrototxtConversions.hpp |
| 68 | src/armnnUtils/PrototxtConversions.cpp |
Aron Virginas-Tar | 48623a0 | 2019-10-22 10:00:28 +0100 | [diff] [blame] | 69 | src/armnnUtils/QuantizeHelper.hpp |
Jim Flynn | 2fd6100 | 2019-05-03 12:54:26 +0100 | [diff] [blame] | 70 | src/armnnUtils/TensorIOUtils.hpp |
Nina Drozd | d41b259 | 2018-11-19 13:03:36 +0000 | [diff] [blame] | 71 | src/armnnUtils/TensorUtils.cpp |
Rob Hughes | 25b7436 | 2020-01-13 11:14:59 +0000 | [diff] [blame] | 72 | src/armnnUtils/NetworkSockets.hpp |
| 73 | src/armnnUtils/NetworkSockets.cpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 74 | ) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 75 | |
| 76 | add_library_ex(armnnUtils STATIC ${armnnUtils_sources}) |
Jim Flynn | f92dfce | 2019-05-02 11:33:25 +0100 | [diff] [blame] | 77 | target_include_directories(armnnUtils PRIVATE src/backends) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 78 | |
| 79 | if(BUILD_CAFFE_PARSER) |
| 80 | # ArmNN Parser source files required for all build options |
| 81 | set(armnn_caffe_parser_sources) |
| 82 | list(APPEND armnn_caffe_parser_sources |
| 83 | include/armnnCaffeParser/ICaffeParser.hpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 84 | src/armnnCaffeParser/RecordByRecordCaffeParser.hpp |
| 85 | src/armnnCaffeParser/RecordByRecordCaffeParser.cpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 86 | src/armnnCaffeParser/CaffeParser.hpp |
| 87 | src/armnnCaffeParser/CaffeParser.cpp |
| 88 | ${CAFFE_GENERATED_SOURCES}/caffe/proto/caffe.pb.cc |
| 89 | ) |
| 90 | # The generated Caffe protobuf .cc file is not warning clean and we can't fix them. |
| 91 | if(COMPILER_IS_GNU_LIKE) |
| 92 | set_source_files_properties(${CAFFE_GENERATED_SOURCES}/caffe/proto/caffe.pb.cc PROPERTIES COMPILE_FLAGS "-Wno-conversion -Wno-sign-conversion") |
| 93 | endif() |
| 94 | |
| 95 | add_library_ex(armnnCaffeParser SHARED ${armnn_caffe_parser_sources}) |
| 96 | set_target_properties(armnnCaffeParser PROPERTIES COMPILE_FLAGS "${CAFFE_PARSER_ADDITIONAL_COMPILE_FLAGS}") |
| 97 | |
| 98 | target_include_directories(armnnCaffeParser PRIVATE src/armnnUtils) |
| 99 | |
Derek Lamberti | 0844697 | 2019-11-26 16:38:31 +0000 | [diff] [blame] | 100 | target_link_libraries(armnnCaffeParser ${Boost_THREAD_LIBRARY} ${Boost_SYSTEM_LIBRARY}) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 101 | |
| 102 | target_link_libraries(armnnCaffeParser armnn) |
| 103 | target_link_libraries(armnnCaffeParser ${PROTOBUF_LIBRARIES}) |
Matteo Martincigh | bccc345 | 2019-10-18 14:59:19 +0100 | [diff] [blame] | 104 | set_target_properties(armnnCaffeParser PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION}) |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 105 | |
| 106 | endif() |
| 107 | |
| 108 | if(BUILD_ONNX_PARSER) |
| 109 | set(armnn_onnx_parser_sources) |
| 110 | list(APPEND armnn_onnx_parser_sources |
| 111 | include/armnnOnnxParser/IOnnxParser.hpp |
| 112 | src/armnnOnnxParser/OnnxParser.hpp |
| 113 | src/armnnOnnxParser/OnnxParser.cpp |
| 114 | ${ONNX_GENERATED_SOURCES}/onnx/onnx.pb.cc |
| 115 | ) |
| 116 | # The generated onnx protobuf .cc files are not warning clean and we can't fix them. |
| 117 | if(COMPILER_IS_GNU_LIKE) |
| 118 | set_source_files_properties(${ONNX_GENERATED_SOURCES}/onnx/onnx.pb.cc PROPERTIES COMPILE_FLAGS "-Wno-conversion -Wno-sign-conversion") |
| 119 | endif() |
| 120 | |
| 121 | add_library_ex(armnnOnnxParser SHARED ${armnn_onnx_parser_sources}) |
| 122 | |
| 123 | target_include_directories(armnnOnnxParser PRIVATE src/armnnUtils) |
| 124 | |
| 125 | target_link_libraries(armnnOnnxParser armnn) |
| 126 | |
| 127 | # Protobuf |
| 128 | target_link_libraries(armnnOnnxParser ${PROTOBUF_LIBRARIES}) |
Matteo Martincigh | bccc345 | 2019-10-18 14:59:19 +0100 | [diff] [blame] | 129 | set_target_properties(armnnOnnxParser PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION}) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 130 | endif() |
| 131 | |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 132 | if(BUILD_TF_PARSER) |
| 133 | set(armnn_tf_parser_sources) |
| 134 | list(APPEND armnn_tf_parser_sources |
| 135 | include/armnnTfParser/ITfParser.hpp |
| 136 | src/armnnTfParser/TfParser.hpp |
| 137 | src/armnnTfParser/TfParser.cpp |
| 138 | ${TF_PROTOBUFS} |
| 139 | ) |
| 140 | # The generated tensorflow protobuf .cc files are not warning clean and we can't fix them. |
| 141 | if(COMPILER_IS_GNU_LIKE) |
Derek Lamberti | ba25aee | 2019-12-10 22:20:54 +0000 | [diff] [blame] | 142 | set_source_files_properties(${TF_PROTOBUFS} PROPERTIES COMPILE_FLAGS "-Wno-unused-variable -Wno-unused-parameter -Wno-conversion -Wno-sign-conversion") |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 143 | endif() |
| 144 | |
| 145 | add_library_ex(armnnTfParser SHARED ${armnn_tf_parser_sources}) |
| 146 | |
| 147 | target_include_directories(armnnTfParser PRIVATE src/armnnUtils) |
| 148 | |
| 149 | target_link_libraries(armnnTfParser armnn) |
| 150 | |
| 151 | # Protobuf (use the specific version tensorflow wants) |
| 152 | target_link_libraries(armnnTfParser ${PROTOBUF_LIBRARIES}) |
Matteo Martincigh | bccc345 | 2019-10-18 14:59:19 +0100 | [diff] [blame] | 153 | set_target_properties(armnnTfParser PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION}) |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 154 | endif() |
| 155 | |
Matteo Martincigh | db16dd3 | 2019-08-27 16:41:11 +0100 | [diff] [blame] | 156 | if(BUILD_ARMNN_QUANTIZER AND ARMNNREF) |
Jim Flynn | 3091b06 | 2019-02-15 14:45:04 +0000 | [diff] [blame] | 157 | if(NOT BUILD_ARMNN_SERIALIZER) |
Ruomei Yan | db7c391 | 2019-03-08 17:50:25 +0000 | [diff] [blame] | 158 | message(ERROR, "In order to build the ArmNN Quantization Tool you must set BUILD_ARMNN_SERIALIZER = YES") |
Jim Flynn | 3091b06 | 2019-02-15 14:45:04 +0000 | [diff] [blame] | 159 | endif() |
| 160 | |
Nina Drozd | 59e15b0 | 2019-04-25 15:45:20 +0100 | [diff] [blame] | 161 | set(armnn_quantizer_sources) |
| 162 | list(APPEND armnn_quantizer_sources |
| 163 | src/armnnQuantizer/QuantizationDataSet.hpp |
| 164 | src/armnnQuantizer/QuantizationDataSet.cpp |
| 165 | src/armnnQuantizer/QuantizationInput.hpp |
| 166 | src/armnnQuantizer/QuantizationInput.cpp |
Jim Flynn | 3091b06 | 2019-02-15 14:45:04 +0000 | [diff] [blame] | 167 | src/armnnQuantizer/CommandLineProcessor.hpp |
| 168 | src/armnnQuantizer/CommandLineProcessor.cpp |
Nina Drozd | 59e15b0 | 2019-04-25 15:45:20 +0100 | [diff] [blame] | 169 | ) |
| 170 | |
| 171 | add_library_ex(armnnQuantizer SHARED ${armnn_quantizer_sources}) |
| 172 | |
| 173 | target_include_directories(armnnQuantizer PRIVATE include/armnnDeserializer) |
| 174 | target_include_directories(armnnQuantizer PRIVATE src/armnnUtils) |
| 175 | target_include_directories(armnnQuantizer PRIVATE src/armnn) |
| 176 | |
| 177 | include_directories(SYSTEM "${FLATBUFFERS_INCLUDE_PATH}") |
| 178 | set_target_properties(armnnQuantizer PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) |
| 179 | |
| 180 | target_link_libraries(armnnQuantizer |
Guillaume GARDET | e315c8f | 2019-06-05 10:58:47 +0200 | [diff] [blame] | 181 | armnn |
Nina Drozd | 59e15b0 | 2019-04-25 15:45:20 +0100 | [diff] [blame] | 182 | ${Boost_SYSTEM_LIBRARY} |
| 183 | ${Boost_PROGRAM_OPTIONS_LIBRARY} |
| 184 | ${Boost_FILESYSTEM_LIBRARY} |
Nina Drozd | 59e15b0 | 2019-04-25 15:45:20 +0100 | [diff] [blame] | 185 | ${Boost_THREAD_LIBRARY} ) |
| 186 | |
| 187 | add_executable_ex(ArmnnQuantizer |
Jim Flynn | 3091b06 | 2019-02-15 14:45:04 +0000 | [diff] [blame] | 188 | src/armnnQuantizer/ArmNNQuantizerMain.cpp) |
| 189 | |
Ruomei Yan | db7c391 | 2019-03-08 17:50:25 +0000 | [diff] [blame] | 190 | target_include_directories(ArmnnQuantizer PRIVATE include/armnnDeserializer) |
Nina Drozd | 59e15b0 | 2019-04-25 15:45:20 +0100 | [diff] [blame] | 191 | target_include_directories(ArmnnQuantizer PRIVATE src/armnn) |
Jim Flynn | 3091b06 | 2019-02-15 14:45:04 +0000 | [diff] [blame] | 192 | |
| 193 | target_link_libraries(ArmnnQuantizer |
| 194 | ${Boost_SYSTEM_LIBRARY} |
| 195 | ${Boost_PROGRAM_OPTIONS_LIBRARY} |
| 196 | ${Boost_FILESYSTEM_LIBRARY} |
Jim Flynn | 3091b06 | 2019-02-15 14:45:04 +0000 | [diff] [blame] | 197 | ${Boost_THREAD_LIBRARY} ) |
| 198 | |
| 199 | target_link_libraries(ArmnnQuantizer |
Nina Drozd | 59e15b0 | 2019-04-25 15:45:20 +0100 | [diff] [blame] | 200 | armnnQuantizer |
Jim Flynn | 3091b06 | 2019-02-15 14:45:04 +0000 | [diff] [blame] | 201 | armnnSerializer |
| 202 | armnn |
Nina Drozd | 59e15b0 | 2019-04-25 15:45:20 +0100 | [diff] [blame] | 203 | armnnUtils |
Jim Flynn | 3091b06 | 2019-02-15 14:45:04 +0000 | [diff] [blame] | 204 | ${FLATBUFFERS_LIBRARY}) |
| 205 | |
| 206 | if(Threads_FOUND AND (NOT ("${CMAKE_SYSTEM_NAME}" STREQUAL Android))) |
| 207 | target_link_libraries(ArmnnQuantizer pthread) |
| 208 | endif() |
| 209 | |
Matteo Martincigh | 7be81f6 | 2019-10-21 11:33:50 +0100 | [diff] [blame] | 210 | set_target_properties(armnnQuantizer PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION}) |
Matteo Martincigh | bccc345 | 2019-10-18 14:59:19 +0100 | [diff] [blame] | 211 | |
Jim Flynn | 3091b06 | 2019-02-15 14:45:04 +0000 | [diff] [blame] | 212 | endif() |
| 213 | |
| 214 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 215 | list(APPEND armnn_sources |
| 216 | include/armnn/ArmNN.hpp |
Matteo Martincigh | 6db5f20 | 2019-09-05 12:02:04 +0100 | [diff] [blame] | 217 | include/armnn/BackendHelper.hpp |
David Beck | 9df2d95 | 2018-10-10 15:11:44 +0100 | [diff] [blame] | 218 | include/armnn/BackendId.hpp |
Derek Lamberti | 836b27b | 2019-11-20 10:51:57 +0000 | [diff] [blame] | 219 | include/armnn/BackendOptions.hpp |
Matteo Martincigh | c601aa6 | 2019-10-29 15:03:22 +0000 | [diff] [blame] | 220 | include/armnn/BackendRegistry.hpp |
Matteo Martincigh | 6db5f20 | 2019-09-05 12:02:04 +0100 | [diff] [blame] | 221 | include/armnn/Conversion.hpp |
| 222 | include/armnn/Deprecated.hpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 223 | include/armnn/Descriptors.hpp |
| 224 | include/armnn/DescriptorsFwd.hpp |
David Beck | 9df2d95 | 2018-10-10 15:11:44 +0100 | [diff] [blame] | 225 | include/armnn/Exceptions.hpp |
David Beck | e97c6e0 | 2018-10-03 13:09:28 +0100 | [diff] [blame] | 226 | include/armnn/ILayerSupport.hpp |
jimfly01 | 5f4e41f | 2019-01-23 16:10:17 +0000 | [diff] [blame] | 227 | include/armnn/ILayerVisitor.hpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 228 | include/armnn/INetwork.hpp |
David Beck | 9df2d95 | 2018-10-10 15:11:44 +0100 | [diff] [blame] | 229 | include/armnn/IProfiler.hpp |
| 230 | include/armnn/IRuntime.hpp |
| 231 | include/armnn/LayerSupport.hpp |
Mike Kelly | 8c1701a | 2019-02-11 17:01:27 +0000 | [diff] [blame] | 232 | include/armnn/LayerVisitorBase.hpp |
Derek Lamberti | 0844697 | 2019-11-26 16:38:31 +0000 | [diff] [blame] | 233 | include/armnn/Logging.hpp |
David Beck | 9df2d95 | 2018-10-10 15:11:44 +0100 | [diff] [blame] | 234 | include/armnn/LstmParams.hpp |
Derek Lamberti | f674aa0 | 2019-08-01 15:56:25 +0100 | [diff] [blame] | 235 | include/armnn/MemorySources.hpp |
David Beck | 9df2d95 | 2018-10-10 15:11:44 +0100 | [diff] [blame] | 236 | include/armnn/NetworkFwd.hpp |
David Beck | 5eec11d | 2018-10-04 15:43:17 +0100 | [diff] [blame] | 237 | include/armnn/Optional.hpp |
James Conroy | ee18dc8 | 2019-07-17 11:27:46 +0100 | [diff] [blame] | 238 | include/armnn/QuantizedLstmParams.hpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 239 | include/armnn/Tensor.hpp |
| 240 | include/armnn/TensorFwd.hpp |
| 241 | include/armnn/Types.hpp |
| 242 | include/armnn/TypesUtils.hpp |
| 243 | include/armnn/Utils.hpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 244 | include/armnn/Version.hpp |
Colm Donelan | 5ccb33d | 2020-01-24 16:27:02 +0000 | [diff] [blame] | 245 | include/armnn/profiling/IProfilingGuidGenerator.hpp |
| 246 | include/armnn/profiling/ISendTimelinePacket.hpp |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 247 | src/armnn/layers/LayerCloneBase.hpp |
| 248 | src/armnn/layers/LayerWithParameters.hpp |
| 249 | src/armnn/layers/ActivationLayer.hpp |
| 250 | src/armnn/layers/ActivationLayer.cpp |
| 251 | src/armnn/layers/AdditionLayer.hpp |
| 252 | src/armnn/layers/AdditionLayer.cpp |
Nikhil Raj | ee391d5 | 2019-09-05 17:50:44 +0100 | [diff] [blame] | 253 | src/armnn/layers/ArgMinMaxLayer.hpp |
| 254 | src/armnn/layers/ArgMinMaxLayer.cpp |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 255 | src/armnn/layers/BatchNormalizationLayer.hpp |
| 256 | src/armnn/layers/BatchNormalizationLayer.cpp |
Éanna Ó Catháin | 4e1e136 | 2018-11-12 11:36:34 +0000 | [diff] [blame] | 257 | src/armnn/layers/BatchToSpaceNdLayer.hpp |
| 258 | src/armnn/layers/BatchToSpaceNdLayer.cpp |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 259 | src/armnn/layers/ComparisonLayer.hpp |
| 260 | src/armnn/layers/ComparisonLayer.cpp |
Jim Flynn | e242f2d | 2019-05-22 14:24:13 +0100 | [diff] [blame] | 261 | src/armnn/layers/ConcatLayer.hpp |
| 262 | src/armnn/layers/ConcatLayer.cpp |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 263 | src/armnn/layers/ConstantLayer.hpp |
| 264 | src/armnn/layers/ConstantLayer.cpp |
| 265 | src/armnn/layers/Convolution2dLayer.hpp |
| 266 | src/armnn/layers/Convolution2dLayer.cpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 267 | src/armnn/layers/ConvertFp16ToFp32Layer.hpp |
| 268 | src/armnn/layers/ConvertFp16ToFp32Layer.cpp |
| 269 | src/armnn/layers/ConvertFp32ToFp16Layer.hpp |
| 270 | src/armnn/layers/ConvertFp32ToFp16Layer.cpp |
Nattapat Chaimanowong | a9a1cf1 | 2018-12-03 16:06:49 +0000 | [diff] [blame] | 271 | src/armnn/layers/DebugLayer.hpp |
| 272 | src/armnn/layers/DebugLayer.cpp |
Aron Virginas-Tar | dd6247f | 2019-09-19 14:31:17 +0100 | [diff] [blame] | 273 | src/armnn/layers/DepthToSpaceLayer.hpp |
| 274 | src/armnn/layers/DepthToSpaceLayer.cpp |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 275 | src/armnn/layers/DepthwiseConvolution2dLayer.hpp |
| 276 | src/armnn/layers/DepthwiseConvolution2dLayer.cpp |
Nattapat Chaimanowong | e4294fd | 2019-03-28 09:56:53 +0000 | [diff] [blame] | 277 | src/armnn/layers/DequantizeLayer.hpp |
| 278 | src/armnn/layers/DequantizeLayer.cpp |
Narumol Prangnawarat | 94dd5d8 | 2019-01-23 18:06:26 +0000 | [diff] [blame] | 279 | src/armnn/layers/DetectionPostProcessLayer.hpp |
| 280 | src/armnn/layers/DetectionPostProcessLayer.cpp |
Matteo Martincigh | 59a950c | 2018-12-13 12:48:25 +0000 | [diff] [blame] | 281 | src/armnn/layers/ElementwiseBaseLayer.hpp |
| 282 | src/armnn/layers/ElementwiseBaseLayer.cpp |
josh minor | 4a3c610 | 2020-01-06 16:40:46 -0600 | [diff] [blame] | 283 | src/armnn/layers/ElementwiseUnaryLayer.hpp |
| 284 | src/armnn/layers/ElementwiseUnaryLayer.cpp |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 285 | src/armnn/layers/FakeQuantizationLayer.hpp |
| 286 | src/armnn/layers/FakeQuantizationLayer.cpp |
| 287 | src/armnn/layers/FloorLayer.hpp |
| 288 | src/armnn/layers/FloorLayer.cpp |
| 289 | src/armnn/layers/FullyConnectedLayer.hpp |
| 290 | src/armnn/layers/FullyConnectedLayer.cpp |
narpra01 | b89b05f | 2019-01-16 09:53:09 +0000 | [diff] [blame] | 291 | src/armnn/layers/GatherLayer.cpp |
| 292 | src/armnn/layers/GatherLayer.hpp |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 293 | src/armnn/layers/InputLayer.hpp |
| 294 | src/armnn/layers/InputLayer.cpp |
Kevin May | ce5045a | 2019-10-02 14:07:47 +0100 | [diff] [blame] | 295 | src/armnn/layers/InstanceNormalizationLayer.hpp |
| 296 | src/armnn/layers/InstanceNormalizationLayer.cpp |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 297 | src/armnn/layers/L2NormalizationLayer.hpp |
| 298 | src/armnn/layers/L2NormalizationLayer.cpp |
Aron Virginas-Tar | f982dea | 2019-10-11 14:07:53 +0100 | [diff] [blame] | 299 | src/armnn/layers/LogSoftmaxLayer.hpp |
| 300 | src/armnn/layers/LogSoftmaxLayer.cpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 301 | src/armnn/layers/LstmLayer.cpp |
| 302 | src/armnn/layers/LstmLayer.hpp |
Nattapat Chaimanowong | 5a4304a | 2018-11-28 10:44:37 +0000 | [diff] [blame] | 303 | src/armnn/layers/MaximumLayer.cpp |
| 304 | src/armnn/layers/MaximumLayer.hpp |
narpra01 | 32b9046 | 2018-09-13 11:07:48 +0100 | [diff] [blame] | 305 | src/armnn/layers/MeanLayer.hpp |
| 306 | src/armnn/layers/MeanLayer.cpp |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 307 | src/armnn/layers/MemCopyLayer.hpp |
| 308 | src/armnn/layers/MemCopyLayer.cpp |
Derek Lamberti | f674aa0 | 2019-08-01 15:56:25 +0100 | [diff] [blame] | 309 | src/armnn/layers/MemImportLayer.hpp |
| 310 | src/armnn/layers/MemImportLayer.cpp |
Nattapat Chaimanowong | 1f88630 | 2019-04-05 13:37:19 +0100 | [diff] [blame] | 311 | src/armnn/layers/MergeLayer.hpp |
| 312 | src/armnn/layers/MergeLayer.cpp |
kevmay01 | 9053969 | 2018-11-29 08:40:19 +0000 | [diff] [blame] | 313 | src/armnn/layers/MinimumLayer.cpp |
| 314 | src/armnn/layers/MinimumLayer.hpp |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 315 | src/armnn/layers/MultiplicationLayer.hpp |
| 316 | src/armnn/layers/MultiplicationLayer.cpp |
| 317 | src/armnn/layers/NormalizationLayer.hpp |
| 318 | src/armnn/layers/NormalizationLayer.cpp |
| 319 | src/armnn/layers/OutputLayer.hpp |
| 320 | src/armnn/layers/OutputLayer.cpp |
Mohamed Nour Abouelseoud | 5662c20 | 2018-09-24 13:30:09 +0100 | [diff] [blame] | 321 | src/armnn/layers/PadLayer.hpp |
| 322 | src/armnn/layers/PadLayer.cpp |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 323 | src/armnn/layers/PermuteLayer.hpp |
| 324 | src/armnn/layers/PermuteLayer.cpp |
| 325 | src/armnn/layers/Pooling2dLayer.hpp |
| 326 | src/armnn/layers/Pooling2dLayer.cpp |
Derek Lamberti | a9cca6a | 2019-03-25 15:41:58 +0000 | [diff] [blame] | 327 | src/armnn/layers/QuantizeLayer.cpp |
| 328 | src/armnn/layers/QuantizeLayer.hpp |
James Conroy | ee18dc8 | 2019-07-17 11:27:46 +0100 | [diff] [blame] | 329 | src/armnn/layers/QuantizedLstmLayer.hpp |
| 330 | src/armnn/layers/QuantizedLstmLayer.cpp |
Francis Murtagh | e7a86a4 | 2018-08-29 12:42:10 +0100 | [diff] [blame] | 331 | src/armnn/layers/DivisionLayer.cpp |
| 332 | src/armnn/layers/DivisionLayer.hpp |
Matteo Martincigh | 4912402 | 2019-01-11 13:25:59 +0000 | [diff] [blame] | 333 | src/armnn/layers/PreCompiledLayer.hpp |
| 334 | src/armnn/layers/PreCompiledLayer.cpp |
Matteo Martincigh | 0e406ee | 2019-06-12 15:42:18 +0100 | [diff] [blame] | 335 | src/armnn/layers/PreluLayer.hpp |
| 336 | src/armnn/layers/PreluLayer.cpp |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 337 | src/armnn/layers/ReshapeLayer.hpp |
| 338 | src/armnn/layers/ReshapeLayer.cpp |
Teresa Charlin | a9075df | 2019-06-27 15:41:57 +0100 | [diff] [blame] | 339 | src/armnn/layers/ResizeLayer.hpp |
| 340 | src/armnn/layers/ResizeLayer.cpp |
Aron Virginas-Tar | 636ab40 | 2019-09-16 14:27:45 +0100 | [diff] [blame] | 341 | src/armnn/layers/SliceLayer.cpp |
| 342 | src/armnn/layers/SliceLayer.hpp |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 343 | src/armnn/layers/SoftmaxLayer.hpp |
| 344 | src/armnn/layers/SoftmaxLayer.cpp |
Matteo Martincigh | 0e406ee | 2019-06-12 15:42:18 +0100 | [diff] [blame] | 345 | src/armnn/layers/SpaceToBatchNdLayer.hpp |
| 346 | src/armnn/layers/SpaceToBatchNdLayer.cpp |
| 347 | src/armnn/layers/SpaceToDepthLayer.hpp |
| 348 | src/armnn/layers/SpaceToDepthLayer.cpp |
surmeh01 | 3537c2c | 2018-05-18 16:31:43 +0100 | [diff] [blame] | 349 | src/armnn/layers/SplitterLayer.hpp |
| 350 | src/armnn/layers/SplitterLayer.cpp |
Matthew Jackson | 2b8c1da | 2019-07-04 14:59:16 +0100 | [diff] [blame] | 351 | src/armnn/layers/StackLayer.hpp |
| 352 | src/armnn/layers/StackLayer.cpp |
Derek Lamberti | 013c390 | 2019-10-21 10:46:16 +0100 | [diff] [blame] | 353 | src/armnn/layers/StandInLayer.cpp |
| 354 | src/armnn/layers/StandInLayer.hpp |
Conor Kennedy | 430b5d8 | 2018-11-14 15:28:28 +0000 | [diff] [blame] | 355 | src/armnn/layers/StridedSliceLayer.cpp |
| 356 | src/armnn/layers/StridedSliceLayer.hpp |
David Beck | c2044fe | 2018-09-05 15:00:38 +0100 | [diff] [blame] | 357 | src/armnn/layers/SubtractionLayer.cpp |
| 358 | src/armnn/layers/SubtractionLayer.hpp |
Sadik Armagan | eff363d | 2019-04-05 15:25:46 +0100 | [diff] [blame] | 359 | src/armnn/layers/SwitchLayer.cpp |
| 360 | src/armnn/layers/SwitchLayer.hpp |
Aron Virginas-Tar | 639fb04 | 2019-06-20 14:28:19 +0100 | [diff] [blame] | 361 | src/armnn/layers/TransposeConvolution2dLayer.cpp |
| 362 | src/armnn/layers/TransposeConvolution2dLayer.hpp |
Matteo Martincigh | c601aa6 | 2019-10-29 15:03:22 +0000 | [diff] [blame] | 363 | src/armnn/BackendRegistry.cpp |
Matteo Martincigh | 4912402 | 2019-01-11 13:25:59 +0000 | [diff] [blame] | 364 | src/armnn/BackendSettings.hpp |
Ferran Balaguer | f54c946 | 2019-07-10 12:43:58 +0100 | [diff] [blame] | 365 | src/armnn/BackendHelper.cpp |
Nattapat Chaimanowong | 649dd95 | 2019-01-22 16:10:44 +0000 | [diff] [blame] | 366 | src/armnn/CompatibleTypes.hpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 367 | src/armnn/Descriptors.cpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 368 | src/armnn/DeviceSpec.hpp |
Rob Hughes | a91479c | 2020-01-07 09:40:12 +0000 | [diff] [blame] | 369 | src/armnn/DllExport.hpp |
Jim Flynn | f92dfce | 2019-05-02 11:33:25 +0100 | [diff] [blame] | 370 | src/armnn/DynamicQuantizationVisitor.cpp |
| 371 | src/armnn/DynamicQuantizationVisitor.hpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 372 | src/armnn/Exceptions.cpp |
Teresa Charlin | 4de9f67 | 2019-04-10 13:59:49 +0100 | [diff] [blame] | 373 | src/armnn/ExecutionFrame.cpp |
| 374 | src/armnn/ExecutionFrame.hpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 375 | src/armnn/Graph.cpp |
David Beck | f98d21a | 2018-10-26 16:03:03 +0100 | [diff] [blame] | 376 | src/armnn/Graph.hpp |
| 377 | src/armnn/IGraphObservable.hpp |
| 378 | src/armnn/Instrument.hpp |
| 379 | src/armnn/InternalTypes.cpp |
| 380 | src/armnn/InternalTypes.hpp |
Derek Lamberti | ff05cc5 | 2019-04-26 13:05:17 +0100 | [diff] [blame] | 381 | src/armnn/ISubgraphViewConverter.hpp |
David Beck | f98d21a | 2018-10-26 16:03:03 +0100 | [diff] [blame] | 382 | src/armnn/JsonPrinter.cpp |
| 383 | src/armnn/JsonPrinter.hpp |
| 384 | src/armnn/Layer.cpp |
| 385 | src/armnn/LayerFwd.hpp |
| 386 | src/armnn/Layer.hpp |
| 387 | src/armnn/LayersFwd.hpp |
| 388 | src/armnn/LayerSupportCommon.hpp |
| 389 | src/armnn/LayerSupport.cpp |
| 390 | src/armnn/LoadedNetwork.cpp |
| 391 | src/armnn/LoadedNetwork.hpp |
Matthew Bentham | d3a0783 | 2020-01-15 17:21:38 +0000 | [diff] [blame] | 392 | src/armnn/Logging.cpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 393 | src/armnn/Network.cpp |
David Beck | f98d21a | 2018-10-26 16:03:03 +0100 | [diff] [blame] | 394 | src/armnn/Network.hpp |
Nattapat Chaimanowong | 7ac07f3 | 2019-03-20 11:51:14 +0000 | [diff] [blame] | 395 | src/armnn/NetworkQuantizationScheme.hpp |
Derek Lamberti | 27d8307 | 2019-02-05 16:00:08 +0000 | [diff] [blame] | 396 | src/armnn/NetworkQuantizer.cpp |
| 397 | src/armnn/NetworkQuantizer.hpp |
Matteo Martincigh | a8d572d | 2019-02-07 17:51:09 +0000 | [diff] [blame] | 398 | src/armnn/NetworkQuantizerUtils.cpp |
| 399 | src/armnn/NetworkQuantizerUtils.hpp |
Aron Virginas-Tar | 5fdfe82 | 2018-11-21 13:14:42 +0000 | [diff] [blame] | 400 | src/armnn/NetworkUtils.cpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 401 | src/armnn/NetworkUtils.hpp |
David Beck | f98d21a | 2018-10-26 16:03:03 +0100 | [diff] [blame] | 402 | src/armnn/Observable.cpp |
| 403 | src/armnn/Observable.hpp |
| 404 | src/armnn/Optimizer.cpp |
| 405 | src/armnn/Optimizer.hpp |
Matteo Martincigh | e5b8eb9 | 2019-11-28 15:45:42 +0000 | [diff] [blame] | 406 | src/armnn/OutputHandler.cpp |
| 407 | src/armnn/OutputHandler.hpp |
Matteo Martincigh | a8d572d | 2019-02-07 17:51:09 +0000 | [diff] [blame] | 408 | src/armnn/OverrideInputRangeVisitor.cpp |
| 409 | src/armnn/OverrideInputRangeVisitor.hpp |
David Beck | f98d21a | 2018-10-26 16:03:03 +0100 | [diff] [blame] | 410 | src/armnn/Profiling.cpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 411 | src/armnn/ProfilingEvent.cpp |
| 412 | src/armnn/ProfilingEvent.hpp |
David Beck | f98d21a | 2018-10-26 16:03:03 +0100 | [diff] [blame] | 413 | src/armnn/Profiling.hpp |
Derek Lamberti | 27d8307 | 2019-02-05 16:00:08 +0000 | [diff] [blame] | 414 | src/armnn/QuantizerVisitor.cpp |
| 415 | src/armnn/QuantizerVisitor.hpp |
David Beck | f98d21a | 2018-10-26 16:03:03 +0100 | [diff] [blame] | 416 | src/armnn/Runtime.cpp |
| 417 | src/armnn/Runtime.hpp |
Derek Lamberti | 8a4ca10 | 2019-02-08 17:54:20 +0000 | [diff] [blame] | 418 | src/armnn/RangeTracker.cpp |
| 419 | src/armnn/RangeTracker.hpp |
Aron Virginas-Tar | d4f0fea | 2019-04-09 14:08:06 +0100 | [diff] [blame] | 420 | src/armnn/ResolveType.hpp |
David Beck | f98d21a | 2018-10-26 16:03:03 +0100 | [diff] [blame] | 421 | src/armnn/SerializeLayerParameters.cpp |
| 422 | src/armnn/SerializeLayerParameters.hpp |
Derek Lamberti | 27d8307 | 2019-02-05 16:00:08 +0000 | [diff] [blame] | 423 | src/armnn/StaticRangeVisitor.cpp |
| 424 | src/armnn/StaticRangeVisitor.hpp |
Derek Lamberti | ff05cc5 | 2019-04-26 13:05:17 +0100 | [diff] [blame] | 425 | src/armnn/SubgraphView.cpp |
| 426 | src/armnn/SubgraphView.hpp |
| 427 | src/armnn/SubgraphViewSelector.cpp |
| 428 | src/armnn/SubgraphViewSelector.hpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 429 | src/armnn/Tensor.cpp |
Aron Virginas-Tar | d4f0fea | 2019-04-09 14:08:06 +0100 | [diff] [blame] | 430 | src/armnn/TypesUtils.cpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 431 | src/armnn/Utils.cpp |
David Beck | f98d21a | 2018-10-26 16:03:03 +0100 | [diff] [blame] | 432 | src/armnn/WallClockTimer.cpp |
| 433 | src/armnn/WallClockTimer.hpp |
Nina Drozd | 861985f | 2019-04-18 14:48:51 +0100 | [diff] [blame] | 434 | src/armnn/optimizations/AddDebug.hpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 435 | src/armnn/optimizations/All.hpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 436 | src/armnn/optimizations/ConvertConstants.hpp |
Nina Drozd | 861985f | 2019-04-18 14:48:51 +0100 | [diff] [blame] | 437 | src/armnn/optimizations/ConvertFp32NetworkToFp16.hpp |
| 438 | src/armnn/optimizations/FoldPadIntoConvolution2d.hpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 439 | src/armnn/optimizations/MovePermuteUp.hpp |
| 440 | src/armnn/optimizations/Optimization.hpp |
| 441 | src/armnn/optimizations/OptimizeConsecutiveReshapes.hpp |
Nina Drozd | 861985f | 2019-04-18 14:48:51 +0100 | [diff] [blame] | 442 | src/armnn/optimizations/OptimizeInverseConversions.hpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 443 | src/armnn/optimizations/OptimizeInversePermutes.hpp |
Rob Hughes | 3a7d3a7 | 2019-09-24 16:59:56 +0100 | [diff] [blame] | 444 | src/armnn/optimizations/PermuteAndBatchToSpaceAsDepthToSpace.hpp |
| 445 | src/armnn/optimizations/PermuteAndBatchToSpaceAsDepthToSpace.cpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 446 | src/armnn/optimizations/PermuteAsReshape.hpp |
| 447 | src/armnn/optimizations/SquashEqualSiblings.hpp |
Narumol Prangnawarat | 7be47ef | 2019-09-27 18:00:11 +0100 | [diff] [blame] | 448 | src/profiling/BufferManager.cpp |
| 449 | src/profiling/BufferManager.hpp |
Matteo Martincigh | 8a83717 | 2019-10-04 17:01:07 +0100 | [diff] [blame] | 450 | src/profiling/CommandHandler.cpp |
| 451 | src/profiling/CommandHandler.hpp |
Francis Murtagh | 11f99b4 | 2019-08-16 11:28:52 +0100 | [diff] [blame] | 452 | src/profiling/CommandHandlerFunctor.cpp |
| 453 | src/profiling/CommandHandlerFunctor.hpp |
Francis Murtagh | 1f7db45 | 2019-08-14 09:49:34 +0100 | [diff] [blame] | 454 | src/profiling/CommandHandlerKey.cpp |
| 455 | src/profiling/CommandHandlerKey.hpp |
Francis Murtagh | 94d7915 | 2019-08-16 17:45:07 +0100 | [diff] [blame] | 456 | src/profiling/CommandHandlerRegistry.cpp |
| 457 | src/profiling/CommandHandlerRegistry.hpp |
Sadik Armagan | b5f01b2 | 2019-09-18 17:29:00 +0100 | [diff] [blame] | 458 | src/profiling/ConnectionAcknowledgedCommandHandler.cpp |
| 459 | src/profiling/ConnectionAcknowledgedCommandHandler.hpp |
Aron Virginas-Tar | 4e5fc1f | 2019-08-22 18:10:52 +0100 | [diff] [blame] | 460 | src/profiling/CounterDirectory.cpp |
| 461 | src/profiling/CounterDirectory.hpp |
David Monahan | de80307 | 2020-01-30 12:44:23 +0000 | [diff] [blame] | 462 | src/profiling/CounterIdMap.cpp |
| 463 | src/profiling/CounterIdMap.hpp |
Keith Davis | 3201eea | 2019-10-24 17:30:41 +0100 | [diff] [blame] | 464 | src/profiling/DirectoryCaptureCommandHandler.cpp |
| 465 | src/profiling/DirectoryCaptureCommandHandler.hpp |
Nikhil Raj | d88e47c | 2019-08-19 10:04:23 +0100 | [diff] [blame] | 466 | src/profiling/EncodeVersion.hpp |
Keith Davis | 3201eea | 2019-10-24 17:30:41 +0100 | [diff] [blame] | 467 | src/profiling/FileOnlyProfilingConnection.cpp |
| 468 | src/profiling/FileOnlyProfilingConnection.hpp |
Francis Murtagh | 68f78d8 | 2019-09-04 16:42:29 +0100 | [diff] [blame] | 469 | src/profiling/Holder.cpp |
| 470 | src/profiling/Holder.hpp |
Narumol Prangnawarat | 404b275 | 2019-09-24 17:23:16 +0100 | [diff] [blame] | 471 | src/profiling/IBufferManager.hpp |
Matteo Martincigh | 6db5f20 | 2019-09-05 12:02:04 +0100 | [diff] [blame] | 472 | src/profiling/ICounterDirectory.hpp |
Jim Flynn | 9789702 | 2020-02-02 12:52:59 +0000 | [diff] [blame] | 473 | src/profiling/ICounterRegistry.hpp |
Matteo Martincigh | e0e6efc | 2019-10-04 17:17:42 +0100 | [diff] [blame] | 474 | src/profiling/ICounterValues.hpp |
Matteo Martincigh | 6db5f20 | 2019-09-05 12:02:04 +0100 | [diff] [blame] | 475 | src/profiling/ISendCounterPacket.hpp |
Narumol Prangnawarat | 404b275 | 2019-09-24 17:23:16 +0100 | [diff] [blame] | 476 | src/profiling/IPacketBuffer.hpp |
Matteo Martincigh | 6db5f20 | 2019-09-05 12:02:04 +0100 | [diff] [blame] | 477 | src/profiling/IPeriodicCounterCapture.hpp |
Aron Virginas-Tar | 1a0f691 | 2019-08-23 15:18:44 +0100 | [diff] [blame] | 478 | src/profiling/IProfilingConnection.hpp |
Matteo Martincigh | 54fb957 | 2019-10-02 12:50:57 +0100 | [diff] [blame] | 479 | src/profiling/IProfilingConnectionFactory.hpp |
Jim Flynn | ab84575 | 2019-10-25 13:17:30 +0100 | [diff] [blame] | 480 | src/profiling/LabelsAndEventClasses.cpp |
| 481 | src/profiling/LabelsAndEventClasses.hpp |
Nikhil Raj | bc62605 | 2019-08-15 15:49:45 +0100 | [diff] [blame] | 482 | src/profiling/Packet.hpp |
Narumol Prangnawarat | 7be47ef | 2019-09-27 18:00:11 +0100 | [diff] [blame] | 483 | src/profiling/PacketBuffer.cpp |
| 484 | src/profiling/PacketBuffer.hpp |
Aron Virginas-Tar | e898db9 | 2019-08-22 12:56:34 +0100 | [diff] [blame] | 485 | src/profiling/PacketVersionResolver.cpp |
| 486 | src/profiling/PacketVersionResolver.hpp |
Francis Murtagh | fcb8ef6 | 2019-09-20 15:40:09 +0100 | [diff] [blame] | 487 | src/profiling/PeriodicCounterCapture.hpp |
| 488 | src/profiling/PeriodicCounterCapture.cpp |
Ferran Balaguer | 1b94172 | 2019-08-28 16:57:18 +0100 | [diff] [blame] | 489 | src/profiling/PeriodicCounterSelectionCommandHandler.cpp |
| 490 | src/profiling/PeriodicCounterSelectionCommandHandler.hpp |
Matteo Martincigh | 994b534 | 2019-10-11 17:19:56 +0100 | [diff] [blame] | 491 | src/profiling/PerJobCounterSelectionCommandHandler.cpp |
| 492 | src/profiling/PerJobCounterSelectionCommandHandler.hpp |
Aron Virginas-Tar | dfa1477 | 2019-09-24 18:24:47 +0100 | [diff] [blame] | 493 | src/profiling/ProfilingConnectionDumpToFileDecorator.cpp |
| 494 | src/profiling/ProfilingConnectionDumpToFileDecorator.hpp |
Matteo Martincigh | 6db5f20 | 2019-09-05 12:02:04 +0100 | [diff] [blame] | 495 | src/profiling/ProfilingConnectionFactory.cpp |
| 496 | src/profiling/ProfilingConnectionFactory.hpp |
Narumol Prangnawarat | 15effd8 | 2019-10-22 14:17:11 +0100 | [diff] [blame] | 497 | src/profiling/ProfilingGuidGenerator.hpp |
Matteo Martincigh | 6db5f20 | 2019-09-05 12:02:04 +0100 | [diff] [blame] | 498 | src/profiling/ProfilingService.cpp |
| 499 | src/profiling/ProfilingService.hpp |
| 500 | src/profiling/ProfilingStateMachine.cpp |
| 501 | src/profiling/ProfilingStateMachine.hpp |
| 502 | src/profiling/ProfilingUtils.cpp |
| 503 | src/profiling/ProfilingUtils.hpp |
Jim Flynn | 9789702 | 2020-02-02 12:52:59 +0000 | [diff] [blame] | 504 | src/profiling/RegisterBackendCounters.cpp |
| 505 | src/profiling/RegisterBackendCounters.hpp |
Narumol Prangnawarat | 4803369 | 2019-09-20 12:04:55 +0100 | [diff] [blame] | 506 | src/profiling/RequestCounterDirectoryCommandHandler.cpp |
| 507 | src/profiling/RequestCounterDirectoryCommandHandler.hpp |
Matteo Martincigh | 6db5f20 | 2019-09-05 12:02:04 +0100 | [diff] [blame] | 508 | src/profiling/SendCounterPacket.cpp |
| 509 | src/profiling/SendCounterPacket.hpp |
Sadik Armagan | 7bbdf9d | 2019-10-24 10:26:05 +0100 | [diff] [blame] | 510 | src/profiling/SendTimelinePacket.cpp |
| 511 | src/profiling/SendTimelinePacket.hpp |
Matteo Martincigh | 6db5f20 | 2019-09-05 12:02:04 +0100 | [diff] [blame] | 512 | src/profiling/SocketProfilingConnection.cpp |
| 513 | src/profiling/SocketProfilingConnection.hpp |
Sadik Armagan | 7bbdf9d | 2019-10-24 10:26:05 +0100 | [diff] [blame] | 514 | src/profiling/TimelinePacketWriterFactory.cpp |
| 515 | src/profiling/TimelinePacketWriterFactory.hpp |
Matteo Martincigh | 830101c | 2019-10-22 11:07:45 +0100 | [diff] [blame] | 516 | src/profiling/TimelineUtilityMethods.cpp |
| 517 | src/profiling/TimelineUtilityMethods.hpp |
Colm Donelan | 1aff393 | 2020-02-05 17:48:59 +0000 | [diff] [blame^] | 518 | src/profiling/backends/BackendProfiling.cpp |
| 519 | src/profiling/backends/BackendProfiling.hpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 520 | third-party/half/half.hpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 521 | ) |
| 522 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 523 | # Files used for Streamline-based profiling backend |
| 524 | if(PROFILING_BACKEND_STREAMLINE) |
| 525 | list(APPEND armnn_sources |
| 526 | ${GATOR_ROOT}/annotate/streamline_annotate.h |
| 527 | ${GATOR_ROOT}/annotate/streamline_annotate.c) |
| 528 | endif() |
| 529 | |
David Beck | 10b4dfd | 2018-09-19 12:03:20 +0100 | [diff] [blame] | 530 | # the backends under src/backends extend the list of |
David Beck | 3cc9a62 | 2018-10-12 10:38:31 +0100 | [diff] [blame] | 531 | # object libs armnn to include in the build |
David Beck | 10b4dfd | 2018-09-19 12:03:20 +0100 | [diff] [blame] | 532 | include(src/backends/backends.cmake) |
David Beck | 3cc9a62 | 2018-10-12 10:38:31 +0100 | [diff] [blame] | 533 | foreach(lib ${armnnLibraries}) |
Rob Hughes | 721b82f | 2019-11-15 09:04:17 +0000 | [diff] [blame] | 534 | message(STATUS "Adding object library dependency to armnn: ${lib}") |
David Beck | 3cc9a62 | 2018-10-12 10:38:31 +0100 | [diff] [blame] | 535 | list(APPEND armnn_sources $<TARGET_OBJECTS:${lib}>) |
| 536 | endforeach() |
| 537 | |
| 538 | add_library_ex(armnn SHARED ${armnn_sources}) |
David Beck | 10b4dfd | 2018-09-19 12:03:20 +0100 | [diff] [blame] | 539 | |
Rob Hughes | a91479c | 2020-01-07 09:40:12 +0000 | [diff] [blame] | 540 | target_compile_definitions(armnn PRIVATE "ARMNN_COMPILING_DLL") |
| 541 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 542 | target_include_directories(armnn PRIVATE src/armnn) |
| 543 | target_include_directories(armnn PRIVATE src/armnnUtils) |
Aron Virginas-Tar | c9cc804 | 2018-11-01 16:15:57 +0000 | [diff] [blame] | 544 | target_include_directories(armnn PRIVATE src/backends) |
Matteo Martincigh | 6db5f20 | 2019-09-05 12:02:04 +0100 | [diff] [blame] | 545 | target_include_directories(armnn PRIVATE src/profiling) |
David Beck | 3cc9a62 | 2018-10-12 10:38:31 +0100 | [diff] [blame] | 546 | |
| 547 | target_link_libraries(armnn armnnUtils) |
| 548 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 549 | target_link_libraries(armnn ${CMAKE_DL_LIBS}) |
Rob Hughes | 25b7436 | 2020-01-13 11:14:59 +0000 | [diff] [blame] | 550 | if ("${CMAKE_SYSTEM_NAME}" STREQUAL Windows) |
| 551 | target_link_libraries(armnn Ws2_32.lib) |
| 552 | endif() |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 553 | |
Matthew Bentham | a7b7928 | 2019-06-03 13:00:50 +0100 | [diff] [blame] | 554 | install(TARGETS armnn |
Rob Hughes | 91e1d89 | 2019-08-23 10:11:58 +0100 | [diff] [blame] | 555 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 556 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 557 | if(BUILD_CAFFE_PARSER) |
Matthew Bentham | a7b7928 | 2019-06-03 13:00:50 +0100 | [diff] [blame] | 558 | install(TARGETS armnnCaffeParser |
Rob Hughes | 91e1d89 | 2019-08-23 10:11:58 +0100 | [diff] [blame] | 559 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 560 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 561 | endif() |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 562 | if(BUILD_ONNX_PARSER) |
Matthew Bentham | a7b7928 | 2019-06-03 13:00:50 +0100 | [diff] [blame] | 563 | install(TARGETS armnnOnnxParser |
Rob Hughes | 91e1d89 | 2019-08-23 10:11:58 +0100 | [diff] [blame] | 564 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 565 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 566 | endif() |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 567 | if(BUILD_TF_PARSER) |
Matthew Bentham | a7b7928 | 2019-06-03 13:00:50 +0100 | [diff] [blame] | 568 | install(TARGETS armnnTfParser |
Rob Hughes | 91e1d89 | 2019-08-23 10:11:58 +0100 | [diff] [blame] | 569 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 570 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 571 | endif() |
Ruomei Yan | db7c391 | 2019-03-08 17:50:25 +0000 | [diff] [blame] | 572 | |
Matthew Bentham | a7b7928 | 2019-06-03 13:00:50 +0100 | [diff] [blame] | 573 | install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 574 | |
Derek Lamberti | 0844697 | 2019-11-26 16:38:31 +0000 | [diff] [blame] | 575 | target_link_libraries(armnn ${Boost_THREAD_LIBRARY} |
Matteo Martincigh | e7d4498 | 2019-08-05 12:16:47 +0100 | [diff] [blame] | 576 | ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY}) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 577 | |
| 578 | if(ARMCOMPUTENEON OR ARMCOMPUTECL) |
| 579 | target_link_libraries(armnn ${ARMCOMPUTE_LIBRARIES}) |
| 580 | endif() |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 581 | |
Rob Hughes | 199c98e | 2019-11-13 11:41:36 +0000 | [diff] [blame] | 582 | if(PROFILING_BACKEND_STREAMLINE AND (NOT ("${CMAKE_SYSTEM_NAME}" STREQUAL Android))) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 583 | target_link_libraries(armnn pthread) |
| 584 | endif() |
| 585 | |
Matteo Martincigh | bccc345 | 2019-10-18 14:59:19 +0100 | [diff] [blame] | 586 | set_target_properties(armnn PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION}) |
| 587 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 588 | if(BUILD_UNIT_TESTS) |
| 589 | set(unittest_sources) |
| 590 | list(APPEND unittest_sources |
jimfly01 | aebf2e7 | 2019-02-05 09:20:11 +0000 | [diff] [blame] | 591 | src/armnn/test/ConstTensorLayerVisitor.hpp |
| 592 | src/armnn/test/ConstTensorLayerVisitor.cpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 593 | src/armnn/test/CreateWorkload.hpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 594 | src/armnn/test/CsvReaderTest.cpp |
David Beck | f98d21a | 2018-10-26 16:03:03 +0100 | [diff] [blame] | 595 | src/armnn/test/EndToEndTest.cpp |
Teresa Charlin | 4de9f67 | 2019-04-10 13:59:49 +0100 | [diff] [blame] | 596 | src/armnn/test/ExecutionFrameTest.cpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 597 | src/armnn/test/FloatingPointConverterTest.cpp |
Matthew Bentham | d78b891d | 2019-04-30 10:17:40 +0100 | [diff] [blame] | 598 | src/armnn/test/FlowControl.cpp |
David Beck | f98d21a | 2018-10-26 16:03:03 +0100 | [diff] [blame] | 599 | src/armnn/test/GraphTests.cpp |
narpra01 | 6f37f83 | 2018-12-21 18:30:00 +0000 | [diff] [blame] | 600 | src/armnn/test/GraphUtils.cpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 601 | src/armnn/test/GraphUtils.hpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 602 | src/armnn/test/InstrumentTests.cpp |
Matteo Martincigh | bf0e722 | 2019-06-20 17:17:45 +0100 | [diff] [blame] | 603 | src/armnn/test/InferOutputTests.cpp |
| 604 | src/armnn/test/InferOutputTests.hpp |
Éanna Ó Catháin | a4247d5 | 2019-05-08 14:00:45 +0100 | [diff] [blame] | 605 | src/armnn/test/ModelAccuracyCheckerTest.cpp |
David Beck | f98d21a | 2018-10-26 16:03:03 +0100 | [diff] [blame] | 606 | src/armnn/test/NetworkTests.cpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 607 | src/armnn/test/ObservableTest.cpp |
David Beck | f98d21a | 2018-10-26 16:03:03 +0100 | [diff] [blame] | 608 | src/armnn/test/OptimizerTests.cpp |
Rob Hughes | 95e73d7 | 2019-09-24 09:34:53 +0100 | [diff] [blame] | 609 | src/armnn/test/optimizations/ConvertConstantsFloatToHalfTests.cpp |
| 610 | src/armnn/test/optimizations/ConvertConstantsHalfToFloatTests.cpp |
| 611 | src/armnn/test/optimizations/Fp32NetworkToFp16ConverterTests.cpp |
| 612 | src/armnn/test/optimizations/InsertDebugLayerTests.cpp |
| 613 | src/armnn/test/optimizations/MovePermuteUpTests.cpp |
| 614 | src/armnn/test/optimizations/OptimizeConsecutiveReshapesTests.cpp |
| 615 | src/armnn/test/optimizations/OptimizeInverseConversionsTests.cpp |
| 616 | src/armnn/test/optimizations/OptimizeInversePermutesTests.cpp |
Rob Hughes | 3a7d3a7 | 2019-09-24 16:59:56 +0100 | [diff] [blame] | 617 | src/armnn/test/optimizations/PermuteAndBatchToSpaceAsDepthToSpaceTests.cpp |
Rob Hughes | 95e73d7 | 2019-09-24 09:34:53 +0100 | [diff] [blame] | 618 | src/armnn/test/optimizations/PermuteAsReshapeTests.cpp |
| 619 | src/armnn/test/optimizations/SquashEqualSiblingsTests.cpp |
David Beck | f98d21a | 2018-10-26 16:03:03 +0100 | [diff] [blame] | 620 | src/armnn/test/OptionalTest.cpp |
| 621 | src/armnn/test/ProfilerTests.cpp |
| 622 | src/armnn/test/ProfilingEventTest.cpp |
Derek Lamberti | ff05cc5 | 2019-04-26 13:05:17 +0100 | [diff] [blame] | 623 | src/armnn/test/SubgraphViewTests.cpp |
Derek Lamberti | 84da38b | 2019-06-13 11:40:08 +0100 | [diff] [blame] | 624 | src/armnn/test/TensorHandleStrategyTest.cpp |
David Beck | f98d21a | 2018-10-26 16:03:03 +0100 | [diff] [blame] | 625 | src/armnn/test/TensorHelpers.hpp |
| 626 | src/armnn/test/TensorTest.cpp |
FrancisMurtagh | 531ef94 | 2019-02-01 11:48:58 +0000 | [diff] [blame] | 627 | src/armnn/test/TestInputOutputLayerVisitor.cpp |
| 628 | src/armnn/test/TestInputOutputLayerVisitor.hpp |
FrancisMurtagh | 1306b19 | 2019-01-28 14:03:21 +0000 | [diff] [blame] | 629 | src/armnn/test/TestLayerVisitor.cpp |
| 630 | src/armnn/test/TestLayerVisitor.hpp |
FrancisMurtagh | 28d3d63 | 2019-01-29 12:15:23 +0000 | [diff] [blame] | 631 | src/armnn/test/TestNameOnlyLayerVisitor.cpp |
| 632 | src/armnn/test/TestNameOnlyLayerVisitor.hpp |
FrancisMurtagh | f08876f | 2019-02-04 15:41:17 +0000 | [diff] [blame] | 633 | src/armnn/test/TestNameAndDescriptorLayerVisitor.hpp |
| 634 | src/armnn/test/TestNameAndDescriptorLayerVisitor.cpp |
Matteo Martincigh | bf0e722 | 2019-06-20 17:17:45 +0100 | [diff] [blame] | 635 | src/armnn/test/TestUtils.cpp |
| 636 | src/armnn/test/TestUtils.hpp |
David Beck | f98d21a | 2018-10-26 16:03:03 +0100 | [diff] [blame] | 637 | src/armnn/test/UnitTests.cpp |
| 638 | src/armnn/test/UnitTests.hpp |
Ferran Balaguer | 51dd62f | 2019-01-11 19:29:18 +0000 | [diff] [blame] | 639 | src/armnn/test/UtilsTests.cpp |
Aron Virginas-Tar | 48623a0 | 2019-10-22 10:00:28 +0100 | [diff] [blame] | 640 | src/armnnUtils/test/QuantizeHelperTest.cpp |
Matthew Bentham | 4057d91 | 2019-01-21 15:45:51 +0000 | [diff] [blame] | 641 | src/armnnUtils/test/PrototxtConversionsTest.cpp |
Ferran Balaguer | 51dd62f | 2019-01-11 19:29:18 +0000 | [diff] [blame] | 642 | src/armnnUtils/test/ParserHelperTest.cpp |
Narumol Prangnawarat | 0280785 | 2019-09-11 16:43:09 +0100 | [diff] [blame] | 643 | src/armnnUtils/test/TensorUtilsTest.cpp |
Narumol Prangnawarat | 7be47ef | 2019-09-27 18:00:11 +0100 | [diff] [blame] | 644 | src/profiling/test/BufferTests.cpp |
Keith Davis | 3201eea | 2019-10-24 17:30:41 +0100 | [diff] [blame] | 645 | src/profiling/test/FileOnlyProfilingDecoratorTests.cpp |
Aron Virginas-Tar | dfa1477 | 2019-09-24 18:24:47 +0100 | [diff] [blame] | 646 | src/profiling/test/ProfilingConnectionDumpToFileDecoratorTests.cpp |
Narumol Prangnawarat | 15effd8 | 2019-10-22 14:17:11 +0100 | [diff] [blame] | 647 | src/profiling/test/ProfilingGuidTest.cpp |
Francis Murtagh | 1f7db45 | 2019-08-14 09:49:34 +0100 | [diff] [blame] | 648 | src/profiling/test/ProfilingTests.cpp |
Matteo Martincigh | d0613b5 | 2019-10-09 16:47:04 +0100 | [diff] [blame] | 649 | src/profiling/test/ProfilingTests.hpp |
Narumol Prangnawarat | df31cfe | 2019-11-22 11:26:06 +0000 | [diff] [blame] | 650 | src/profiling/test/ProfilingTestUtils.cpp |
| 651 | src/profiling/test/ProfilingTestUtils.hpp |
Ferran Balaguer | af5c46b | 2019-08-30 15:49:15 +0100 | [diff] [blame] | 652 | src/profiling/test/SendCounterPacketTests.cpp |
Matteo Martincigh | d0613b5 | 2019-10-09 16:47:04 +0100 | [diff] [blame] | 653 | src/profiling/test/SendCounterPacketTests.hpp |
Sadik Armagan | 7bbdf9d | 2019-10-24 10:26:05 +0100 | [diff] [blame] | 654 | src/profiling/test/SendTimelinePacketTests.cpp |
Matteo Martincigh | 0aed4f9 | 2019-10-01 14:25:34 +0100 | [diff] [blame] | 655 | src/profiling/test/TimelinePacketTests.cpp |
Matteo Martincigh | 830101c | 2019-10-22 11:07:45 +0100 | [diff] [blame] | 656 | src/profiling/test/TimelineUtilityMethodsTests.cpp |
Ferran Balaguer | 51dd62f | 2019-01-11 19:29:18 +0000 | [diff] [blame] | 657 | ) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 658 | |
Matteo Martincigh | db16dd3 | 2019-08-27 16:41:11 +0100 | [diff] [blame] | 659 | if(ARMNNREF) |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 660 | list(APPEND unittest_sources |
| 661 | src/armnn/test/DebugCallbackTest.cpp |
| 662 | src/armnn/test/QuantizerTest.cpp |
| 663 | src/armnn/test/RuntimeTests.cpp |
| 664 | src/armnn/test/RuntimeTests.hpp |
| 665 | ) |
| 666 | endif() |
| 667 | |
Matteo Martincigh | db16dd3 | 2019-08-27 16:41:11 +0100 | [diff] [blame] | 668 | if(BUILD_TF_PARSER AND ARMNNREF) |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 669 | list(APPEND unittest_sources |
| 670 | src/armnnTfParser/test/Activations.cpp |
| 671 | src/armnnTfParser/test/Addition.cpp |
Ferran Balaguer | fbdad03 | 2018-12-28 18:15:24 +0000 | [diff] [blame] | 672 | src/armnnTfParser/test/AddN.cpp |
narpra01 | 6f37f83 | 2018-12-21 18:30:00 +0000 | [diff] [blame] | 673 | src/armnnTfParser/test/Assert.cpp |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 674 | src/armnnTfParser/test/BiasAdd.cpp |
| 675 | src/armnnTfParser/test/BroadcastForAdd.cpp |
| 676 | src/armnnTfParser/test/Convolution2d.cpp |
| 677 | src/armnnTfParser/test/Concat.cpp |
| 678 | src/armnnTfParser/test/ConcatOfConcats.cpp |
| 679 | src/armnnTfParser/test/DepthwiseConvolution2d.cpp |
jimfly01 | 84c70e6 | 2018-12-19 13:14:46 +0000 | [diff] [blame] | 680 | src/armnnTfParser/test/Equal.cpp |
Conor Kennedy | c2130a0 | 2018-12-05 11:05:54 +0000 | [diff] [blame] | 681 | src/armnnTfParser/test/ExpandDims.cpp |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 682 | src/armnnTfParser/test/FusedBatchNorm.cpp |
FrancisMurtagh | 94412af | 2019-01-24 10:53:39 +0000 | [diff] [blame] | 683 | src/armnnTfParser/test/Gather.cpp |
jimfly01 | a06bf31 | 2018-12-18 16:24:51 +0000 | [diff] [blame] | 684 | src/armnnTfParser/test/Greater.cpp |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 685 | src/armnnTfParser/test/Identity.cpp |
| 686 | src/armnnTfParser/test/LocalResponseNormalization.cpp |
Sadik Armagan | 975c09a | 2018-12-04 10:02:08 +0000 | [diff] [blame] | 687 | src/armnnTfParser/test/Maximum.cpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 688 | src/armnnTfParser/test/MaximumForLeakyRelu.cpp |
Ferran Balaguer | 51dd62f | 2019-01-11 19:29:18 +0000 | [diff] [blame] | 689 | src/armnnTfParser/test/Mean.cpp |
Nattapat Chaimanowong | 24df822 | 2018-12-04 13:47:02 +0000 | [diff] [blame] | 690 | src/armnnTfParser/test/Minimum.cpp |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 691 | src/armnnTfParser/test/Multiplication.cpp |
jimfly01 | f6ba747 | 2018-12-04 10:09:52 +0000 | [diff] [blame] | 692 | src/armnnTfParser/test/Pad.cpp |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 693 | src/armnnTfParser/test/MultiOutput.cpp |
| 694 | src/armnnTfParser/test/PassThru.cpp |
| 695 | src/armnnTfParser/test/Pooling.cpp |
saoste01 | bbd4061 | 2018-08-28 15:41:51 +0100 | [diff] [blame] | 696 | src/armnnTfParser/test/RealDiv.cpp |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 697 | src/armnnTfParser/test/Reshape.cpp |
| 698 | src/armnnTfParser/test/ResizeBilinear.cpp |
Mohamed Nour Abouelseoud | 7a8892f | 2019-01-09 14:19:58 +0000 | [diff] [blame] | 699 | src/armnnTfParser/test/Rsqrt.cpp |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 700 | src/armnnTfParser/test/Shape.cpp |
| 701 | src/armnnTfParser/test/Softmax.cpp |
| 702 | src/armnnTfParser/test/TestDependencies.cpp |
| 703 | src/armnnTfParser/test/FullyConnected.cpp |
| 704 | src/armnnTfParser/test/Constant.cpp |
| 705 | src/armnnTfParser/test/TestMultiInputsOutputs.cpp |
Sadik Armagan | 2ad6cb4 | 2018-12-27 11:23:44 +0000 | [diff] [blame] | 706 | src/armnnTfParser/test/Split.cpp |
jimfly01 | 23be07e | 2018-12-04 17:47:22 +0000 | [diff] [blame] | 707 | src/armnnTfParser/test/Squeeze.cpp |
Ferran Balaguer | 51dd62f | 2019-01-11 19:29:18 +0000 | [diff] [blame] | 708 | src/armnnTfParser/test/Sub.cpp |
| 709 | ) |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 710 | |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 711 | endif() |
| 712 | |
Matteo Martincigh | db16dd3 | 2019-08-27 16:41:11 +0100 | [diff] [blame] | 713 | if(BUILD_TF_LITE_PARSER AND ARMNNREF) |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 714 | list(APPEND unittest_sources |
Sadik Armagan | 479045b | 2018-10-01 11:51:37 +0100 | [diff] [blame] | 715 | src/armnnTfLiteParser/test/Activations.cpp |
Bruno Goncalves | d4ac6a4 | 2018-12-18 12:56:22 -0200 | [diff] [blame] | 716 | src/armnnTfLiteParser/test/Addition.cpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 717 | src/armnnTfLiteParser/test/AvgPool2D.cpp |
Bruno Goncalves | db947e2 | 2019-02-08 18:52:21 -0200 | [diff] [blame] | 718 | src/armnnTfLiteParser/test/BatchToSpaceND.cpp |
Sadik Armagan | 479045b | 2018-10-01 11:51:37 +0100 | [diff] [blame] | 719 | src/armnnTfLiteParser/test/Concatenation.cpp |
Bruno Goncalves | 3d7efe9 | 2018-12-27 14:21:43 -0200 | [diff] [blame] | 720 | src/armnnTfLiteParser/test/Constant.cpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 721 | src/armnnTfLiteParser/test/Conv2D.cpp |
| 722 | src/armnnTfLiteParser/test/DepthwiseConvolution2D.cpp |
Finn Williams | ed66d14 | 2019-12-06 09:55:55 +0000 | [diff] [blame] | 723 | src/armnnTfLiteParser/test/Dequantize.cpp |
keidav01 | 1b3e2ea | 2019-02-21 10:07:37 +0000 | [diff] [blame] | 724 | src/armnnTfLiteParser/test/DetectionPostProcess.cpp |
Sadik Armagan | 8853c1f | 2018-10-22 09:04:18 +0100 | [diff] [blame] | 725 | src/armnnTfLiteParser/test/FullyConnected.cpp |
Matthew Jackson | 28c9457 | 2019-07-18 10:47:03 +0100 | [diff] [blame] | 726 | src/armnnTfLiteParser/test/L2Normalization.cpp |
Bruno Goncalves | b8d805e | 2019-02-12 22:57:13 -0200 | [diff] [blame] | 727 | src/armnnTfLiteParser/test/Maximum.cpp |
Nattapat Chaimanowong | b66504b | 2018-10-17 15:19:14 +0100 | [diff] [blame] | 728 | src/armnnTfLiteParser/test/MaxPool2D.cpp |
Bruno Goncalves | 2235cee | 2018-12-19 12:51:45 -0200 | [diff] [blame] | 729 | src/armnnTfLiteParser/test/Mean.cpp |
Bruno Goncalves | 8f6d7a7 | 2019-02-12 22:58:18 -0200 | [diff] [blame] | 730 | src/armnnTfLiteParser/test/Minimum.cpp |
Bruno Goncalves | f803f78 | 2018-12-18 13:40:30 -0200 | [diff] [blame] | 731 | src/armnnTfLiteParser/test/Multiplication.cpp |
Matthew Jackson | bcca1f4 | 2019-07-16 11:39:21 +0100 | [diff] [blame] | 732 | src/armnnTfLiteParser/test/Pack.cpp |
Bruno Goncalves | 6c2355b | 2018-12-19 12:52:01 -0200 | [diff] [blame] | 733 | src/armnnTfLiteParser/test/Pad.cpp |
Sadik Armagan | 479045b | 2018-10-01 11:51:37 +0100 | [diff] [blame] | 734 | src/armnnTfLiteParser/test/Reshape.cpp |
Bruno Goncalves | 3f58ddb | 2019-02-07 18:40:11 -0200 | [diff] [blame] | 735 | src/armnnTfLiteParser/test/ResizeBilinear.cpp |
Sadik Armagan | a3b31f0 | 2019-12-05 09:08:53 +0000 | [diff] [blame] | 736 | src/armnnTfLiteParser/test/ResizeNearestNeighbor.cpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 737 | src/armnnTfLiteParser/test/Softmax.cpp |
Bruno Goncalves | baded14 | 2019-02-08 19:02:48 -0200 | [diff] [blame] | 738 | src/armnnTfLiteParser/test/SpaceToBatchND.cpp |
josh minor | ba424d2 | 2019-11-13 10:55:17 -0600 | [diff] [blame] | 739 | src/armnnTfLiteParser/test/Slice.cpp |
Nina Drozd | 0324f48 | 2019-04-08 10:52:10 +0100 | [diff] [blame] | 740 | src/armnnTfLiteParser/test/Split.cpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 741 | src/armnnTfLiteParser/test/Squeeze.cpp |
Bruno Goncalves | 451d95b | 2019-02-12 22:59:22 -0200 | [diff] [blame] | 742 | src/armnnTfLiteParser/test/StridedSlice.cpp |
Nina Drozd | 0324f48 | 2019-04-08 10:52:10 +0100 | [diff] [blame] | 743 | src/armnnTfLiteParser/test/Sub.cpp |
Matthew Jackson | 74bf7da | 2019-08-16 16:51:42 +0100 | [diff] [blame] | 744 | src/armnnTfLiteParser/test/TransposeConv.cpp |
Keith Davis | 4cd29a0 | 2019-09-09 14:49:20 +0100 | [diff] [blame] | 745 | src/armnnTfLiteParser/test/Transpose.cpp |
Nina Drozd | 200e380 | 2019-04-15 09:47:39 +0100 | [diff] [blame] | 746 | src/armnnTfLiteParser/test/Unpack.cpp |
Aron Virginas-Tar | c975f92 | 2019-10-23 17:38:17 +0100 | [diff] [blame] | 747 | src/armnnTfLiteParser/test/Unsupported.cpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 748 | src/armnnTfLiteParser/test/LoadModel.cpp |
| 749 | src/armnnTfLiteParser/test/GetBuffer.cpp |
| 750 | src/armnnTfLiteParser/test/OutputShapeOfSqueeze.cpp |
| 751 | src/armnnTfLiteParser/test/InputOutputTensorNames.cpp |
| 752 | src/armnnTfLiteParser/test/GetTensorIds.cpp |
| 753 | src/armnnTfLiteParser/test/GetSubgraphInputsOutputs.cpp |
| 754 | src/armnnTfLiteParser/test/GetInputsOutputs.cpp |
| 755 | ) |
Rob Hughes | a91479c | 2020-01-07 09:40:12 +0000 | [diff] [blame] | 756 | |
| 757 | # Generate SchemaText.cpp file which contains the TfLite schema text as a |
Rob Hughes | ff3c426 | 2019-12-20 17:43:16 +0000 | [diff] [blame] | 758 | # static C-array of bytes. This is needed at runtime for TfLite parser tests. |
| 759 | add_custom_command( |
| 760 | OUTPUT SchemaText.cpp |
| 761 | COMMAND cp ${TF_LITE_SCHEMA_INCLUDE_PATH}/schema.fbs g_TfLiteSchemaText |
| 762 | COMMAND xxd -i g_TfLiteSchemaText SchemaText.cpp |
| 763 | WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} |
Rob Hughes | a91479c | 2020-01-07 09:40:12 +0000 | [diff] [blame] | 764 | DEPENDS ${TF_LITE_SCHEMA_INCLUDE_PATH}/schema.fbs |
Rob Hughes | ff3c426 | 2019-12-20 17:43:16 +0000 | [diff] [blame] | 765 | ) |
| 766 | list(APPEND unittest_sources ${CMAKE_CURRENT_BINARY_DIR}/SchemaText.cpp) |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 767 | endif() |
| 768 | |
Matteo Martincigh | db16dd3 | 2019-08-27 16:41:11 +0100 | [diff] [blame] | 769 | if(BUILD_CAFFE_PARSER AND ARMNNREF) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 770 | list(APPEND unittest_sources |
| 771 | src/armnnCaffeParser/test/TestAdd.cpp |
| 772 | src/armnnCaffeParser/test/TestConcat.cpp |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 773 | src/armnnCaffeParser/test/TestConvolution.cpp |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 774 | src/armnnCaffeParser/test/TestDropout.cpp |
| 775 | src/armnnCaffeParser/test/TestInputs.cpp |
| 776 | src/armnnCaffeParser/test/TestMul.cpp |
| 777 | src/armnnCaffeParser/test/TestPooling2d.cpp |
| 778 | src/armnnCaffeParser/test/TestInPlace.cpp |
| 779 | src/armnnCaffeParser/test/TestMultiInputsOutputs.cpp |
| 780 | src/armnnCaffeParser/test/TestSplit.cpp |
| 781 | ) |
| 782 | endif() |
| 783 | |
Matteo Martincigh | db16dd3 | 2019-08-27 16:41:11 +0100 | [diff] [blame] | 784 | if(BUILD_ONNX_PARSER AND ARMNNREF) |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 785 | list(APPEND unittest_sources |
| 786 | src/armnnOnnxParser/test/Constructor.cpp |
| 787 | src/armnnOnnxParser/test/CreateNetwork.cpp |
| 788 | src/armnnOnnxParser/test/ProtoxtFixture.cpp |
| 789 | src/armnnOnnxParser/test/Const.cpp |
| 790 | src/armnnOnnxParser/test/Pooling.cpp |
| 791 | src/armnnOnnxParser/test/Reshape.cpp |
| 792 | src/armnnOnnxParser/test/Relu.cpp |
| 793 | src/armnnOnnxParser/test/Conv2D.cpp |
| 794 | src/armnnOnnxParser/test/Addition.cpp |
| 795 | src/armnnOnnxParser/test/FullyConnected.cpp |
| 796 | src/armnnOnnxParser/test/GetInputsOutputs.cpp |
| 797 | src/armnnOnnxParser/test/BatchNorm.cpp |
| 798 | src/armnnOnnxParser/test/DepthConv.cpp |
| 799 | ) |
| 800 | endif() |
| 801 | |
Matteo Martincigh | db16dd3 | 2019-08-27 16:41:11 +0100 | [diff] [blame] | 802 | if(BUILD_ARMNN_QUANTIZER AND ARMNNREF) |
Nina Drozd | 59e15b0 | 2019-04-25 15:45:20 +0100 | [diff] [blame] | 803 | list(APPEND unittest_sources |
| 804 | src/armnnQuantizer/test/QuantizationDataSetTests.cpp |
| 805 | ) |
| 806 | endif() |
| 807 | |
Matteo Martincigh | db16dd3 | 2019-08-27 16:41:11 +0100 | [diff] [blame] | 808 | if(BUILD_ARMNN_SERIALIZER AND ARMNNREF) |
Kevin May | 43a799c | 2019-02-08 16:31:42 +0000 | [diff] [blame] | 809 | enable_language(ASM) |
| 810 | list(APPEND unittest_sources |
Ruomei Yan | db7c391 | 2019-03-08 17:50:25 +0000 | [diff] [blame] | 811 | src/armnnSerializer/test/ActivationSerializationTests.cpp |
| 812 | src/armnnSerializer/test/SerializerTests.cpp |
FinnWilliamsArm | 4ffcc8f | 2019-09-05 14:34:20 +0100 | [diff] [blame] | 813 | src/armnnDeserializer/test/DeserializeAbs.cpp |
Ruomei Yan | db7c391 | 2019-03-08 17:50:25 +0000 | [diff] [blame] | 814 | src/armnnDeserializer/test/DeserializeActivation.cpp |
| 815 | src/armnnDeserializer/test/DeserializeAdd.cpp |
| 816 | src/armnnDeserializer/test/DeserializeBatchToSpaceNd.cpp |
| 817 | src/armnnDeserializer/test/DeserializeBatchNormalization.cpp |
Aron Virginas-Tar | 422f2fb | 2019-10-21 14:09:11 +0100 | [diff] [blame] | 818 | src/armnnDeserializer/test/DeserializeComparison.cpp |
Ruomei Yan | db7c391 | 2019-03-08 17:50:25 +0000 | [diff] [blame] | 819 | src/armnnDeserializer/test/DeserializeConstant.cpp |
| 820 | src/armnnDeserializer/test/DeserializeConvolution2d.cpp |
Aron Virginas-Tar | 11b2eca | 2019-09-24 11:01:51 +0100 | [diff] [blame] | 821 | src/armnnDeserializer/test/DeserializeDepthToSpace.cpp |
Ruomei Yan | db7c391 | 2019-03-08 17:50:25 +0000 | [diff] [blame] | 822 | src/armnnDeserializer/test/DeserializeDivision.cpp |
Ruomei Yan | db7c391 | 2019-03-08 17:50:25 +0000 | [diff] [blame] | 823 | src/armnnDeserializer/test/DeserializeFloor.cpp |
| 824 | src/armnnDeserializer/test/DeserializeFullyConnected.cpp |
| 825 | src/armnnDeserializer/test/DeserializeGather.cpp |
Aron Virginas-Tar | 92bbcae | 2019-10-09 10:36:34 +0100 | [diff] [blame] | 826 | src/armnnDeserializer/test/DeserializeInstanceNormalization.cpp |
Ferran Balaguer | 0dcffec | 2019-06-18 16:25:06 +0100 | [diff] [blame] | 827 | src/armnnDeserializer/test/DeserializeL2Normalization.cpp |
Aron Virginas-Tar | c949ab5 | 2019-10-14 16:43:13 +0100 | [diff] [blame] | 828 | src/armnnDeserializer/test/DeserializeLogSoftmax.cpp |
Ruomei Yan | db7c391 | 2019-03-08 17:50:25 +0000 | [diff] [blame] | 829 | src/armnnDeserializer/test/DeserializeMean.cpp |
| 830 | src/armnnDeserializer/test/DeserializeMultiplication.cpp |
| 831 | src/armnnDeserializer/test/DeserializeNormalization.cpp |
| 832 | src/armnnDeserializer/test/DeserializePad.cpp |
| 833 | src/armnnDeserializer/test/DeserializePermute.cpp |
| 834 | src/armnnDeserializer/test/DeserializePooling2d.cpp |
| 835 | src/armnnDeserializer/test/DeserializeReshape.cpp |
| 836 | src/armnnDeserializer/test/DeserializeResizeBilinear.cpp |
| 837 | src/armnnDeserializer/test/DeserializeRsqrt.cpp |
Aron Virginas-Tar | a2f4b4b | 2019-09-20 11:21:14 +0100 | [diff] [blame] | 838 | src/armnnDeserializer/test/DeserializeSlice.cpp |
Ruomei Yan | db7c391 | 2019-03-08 17:50:25 +0000 | [diff] [blame] | 839 | src/armnnDeserializer/test/DeserializeSpaceToBatchNd.cpp |
| 840 | src/armnnDeserializer/test/DeserializeStridedSlice.cpp |
| 841 | src/armnnDeserializer/test/DeserializeSubtraction.cpp |
| 842 | src/armnnDeserializer/test/ParserFlatbuffersSerializeFixture.hpp |
| 843 | src/armnnDeserializer/test/SchemaSerialize.s |
| 844 | ) |
Derek Lamberti | 0028d1b | 2019-02-20 13:57:42 +0000 | [diff] [blame] | 845 | set_source_files_properties(src/armnnDeserializer/test/SchemaSerialize.s PROPERTIES COMPILE_FLAGS "-x assembler-with-cpp") |
Kevin May | 43a799c | 2019-02-08 16:31:42 +0000 | [diff] [blame] | 846 | endif() |
| 847 | |
Colm Donelan | a21620d | 2019-10-11 13:09:49 +0100 | [diff] [blame] | 848 | if(BUILD_GATORD_MOCK) |
| 849 | list(APPEND unittest_sources |
| 850 | tests/profiling/gatordmock/tests/GatordMockTests.cpp |
Finn Williams | e63a026 | 2019-10-22 10:30:49 +0100 | [diff] [blame] | 851 | tests/profiling/timelineDecoder/tests/TimelineTests.cpp |
Colm Donelan | a21620d | 2019-10-11 13:09:49 +0100 | [diff] [blame] | 852 | ) |
| 853 | endif() |
| 854 | |
Matteo Martincigh | 4423ac7 | 2018-10-11 17:39:30 +0100 | [diff] [blame] | 855 | foreach(lib ${armnnUnitTestLibraries}) |
Rob Hughes | 721b82f | 2019-11-15 09:04:17 +0000 | [diff] [blame] | 856 | message(STATUS "Adding object library dependency to UnitTests: ${lib}") |
Matteo Martincigh | 4423ac7 | 2018-10-11 17:39:30 +0100 | [diff] [blame] | 857 | list(APPEND unittest_sources $<TARGET_OBJECTS:${lib}>) |
| 858 | endforeach() |
| 859 | |
| 860 | add_executable(UnitTests ${unittest_sources}) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 861 | target_include_directories(UnitTests PRIVATE src/armnn) |
| 862 | target_include_directories(UnitTests PRIVATE src/armnnUtils) |
Aron Virginas-Tar | c9cc804 | 2018-11-01 16:15:57 +0000 | [diff] [blame] | 863 | target_include_directories(UnitTests PRIVATE src/backends) |
Matteo Martincigh | 6db5f20 | 2019-09-05 12:02:04 +0100 | [diff] [blame] | 864 | target_include_directories(UnitTests PRIVATE src/profiling) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 865 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 866 | if(VALGRIND_FOUND) |
| 867 | if(HEAP_PROFILING OR LEAK_CHECKING) |
Rob Hughes | 721b82f | 2019-11-15 09:04:17 +0000 | [diff] [blame] | 868 | message(STATUS "Valgrind is disabled for heap profiling and leak checking builds.") |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 869 | else() |
| 870 | # Valgrind works with gperftools version number <= 2.4 |
| 871 | target_compile_definitions(UnitTests PRIVATE "WITH_VALGRIND=1") |
| 872 | endif() |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 873 | endif() |
| 874 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 875 | target_link_libraries(UnitTests ${CMAKE_THREAD_LIBS_INIT}) |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 876 | target_link_libraries(UnitTests ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY}) |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 877 | |
Matteo Martincigh | 4423ac7 | 2018-10-11 17:39:30 +0100 | [diff] [blame] | 878 | target_link_libraries(UnitTests armnn) |
| 879 | target_link_libraries(UnitTests armnnUtils) |
| 880 | |
surmeh01 | bceff2f | 2018-03-29 16:29:27 +0100 | [diff] [blame] | 881 | if(BUILD_TF_PARSER) |
| 882 | target_link_libraries(UnitTests armnnTfParser) |
| 883 | endif() |
| 884 | |
Colm Donelan | a21620d | 2019-10-11 13:09:49 +0100 | [diff] [blame] | 885 | if(BUILD_GATORD_MOCK) |
| 886 | target_link_libraries(UnitTests gatordMockService) |
| 887 | endif() |
| 888 | |
Ruomei Yan | db7c391 | 2019-03-08 17:50:25 +0000 | [diff] [blame] | 889 | if(BUILD_TF_LITE_PARSER) |
| 890 | target_include_directories(UnitTests SYSTEM PRIVATE "${TF_LITE_SCHEMA_INCLUDE_PATH}") |
| 891 | target_include_directories(UnitTests SYSTEM PRIVATE "${FLATBUFFERS_INCLUDE_PATH}") |
| 892 | target_link_libraries(UnitTests armnnTfLiteParser) |
| 893 | endif() |
| 894 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 895 | if(BUILD_CAFFE_PARSER) |
| 896 | target_link_libraries(UnitTests armnnCaffeParser) |
| 897 | endif() |
| 898 | |
Matteo Martincigh | db16dd3 | 2019-08-27 16:41:11 +0100 | [diff] [blame] | 899 | if(BUILD_ARMNN_SERIALIZER AND ARMNNREF) |
Mike Kelly | 8c1701a | 2019-02-11 17:01:27 +0000 | [diff] [blame] | 900 | target_include_directories(UnitTests SYSTEM PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/src/armnnSerializer) |
Ruomei Yan | db7c391 | 2019-03-08 17:50:25 +0000 | [diff] [blame] | 901 | target_include_directories(UnitTests SYSTEM PRIVATE "${FLATBUFFERS_INCLUDE_PATH}") |
Kevin May | 43a799c | 2019-02-08 16:31:42 +0000 | [diff] [blame] | 902 | target_link_libraries(UnitTests armnnSerializer) |
| 903 | endif() |
| 904 | |
Matteo Martincigh | db16dd3 | 2019-08-27 16:41:11 +0100 | [diff] [blame] | 905 | if(BUILD_ARMNN_QUANTIZER AND ARMNNREF) |
Nina Drozd | 59e15b0 | 2019-04-25 15:45:20 +0100 | [diff] [blame] | 906 | target_include_directories(UnitTests SYSTEM PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/src/armnnQuantizer) |
| 907 | target_include_directories(UnitTests SYSTEM PRIVATE "${FLATBUFFERS_INCLUDE_PATH}") |
| 908 | target_link_libraries(UnitTests armnnQuantizer armnnSerializer) |
| 909 | endif() |
| 910 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 911 | if(BUILD_ONNX_PARSER) |
| 912 | target_link_libraries(UnitTests armnnOnnxParser) |
| 913 | endif() |
| 914 | |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 915 | addDllCopyCommands(UnitTests) |
| 916 | endif() |
Nattapat Chaimanowong | 4fbae33 | 2019-02-14 15:28:02 +0000 | [diff] [blame] | 917 | |
Matteo Martincigh | db16dd3 | 2019-08-27 16:41:11 +0100 | [diff] [blame] | 918 | if (BUILD_ARMNN_SERIALIZER AND (BUILD_TF_PARSER OR BUILD_TF_LITE_PARSER OR BUILD_ONNX_PARSER OR BUILD_CAFFE_PARSER) AND ARMNNREF) |
Nattapat Chaimanowong | 4fbae33 | 2019-02-14 15:28:02 +0000 | [diff] [blame] | 919 | set(ArmnnConverter_sources |
| 920 | src/armnnConverter/ArmnnConverter.cpp) |
| 921 | |
| 922 | add_executable_ex(ArmnnConverter ${ArmnnConverter_sources}) |
| 923 | target_include_directories(ArmnnConverter PRIVATE src/armnn) |
| 924 | target_include_directories(ArmnnConverter PRIVATE src/armnnUtils) |
| 925 | |
Sadik Armagan | 232cfc2 | 2019-03-13 18:33:10 +0000 | [diff] [blame] | 926 | if(BUILD_CAFFE_PARSER) |
| 927 | target_link_libraries(ArmnnConverter armnnCaffeParser) |
| 928 | endif() |
| 929 | |
| 930 | if(BUILD_ONNX_PARSER) |
| 931 | target_link_libraries(ArmnnConverter armnnOnnxParser) |
| 932 | endif() |
| 933 | |
| 934 | if(BUILD_TF_PARSER) |
| 935 | target_link_libraries(ArmnnConverter armnnTfParser) |
| 936 | endif() |
| 937 | |
| 938 | if(BUILD_TF_LITE_PARSER) |
| 939 | target_link_libraries(ArmnnConverter armnnTfLiteParser) |
| 940 | endif() |
| 941 | |
Nattapat Chaimanowong | 4fbae33 | 2019-02-14 15:28:02 +0000 | [diff] [blame] | 942 | target_link_libraries(ArmnnConverter armnnSerializer) |
| 943 | |
| 944 | target_link_libraries(ArmnnConverter armnn) |
| 945 | target_link_libraries(ArmnnConverter ${CMAKE_THREAD_LIBS_INIT}) |
| 946 | target_link_libraries(ArmnnConverter |
| 947 | ${Boost_SYSTEM_LIBRARY} |
| 948 | ${Boost_FILESYSTEM_LIBRARY} |
| 949 | ${Boost_PROGRAM_OPTIONS_LIBRARY}) |
| 950 | addDllCopyCommands(ArmnnConverter) |
| 951 | endif() |
Colm Donelan | 366023f | 2019-09-05 10:03:56 +0100 | [diff] [blame] | 952 | |
| 953 | if(BUILD_GATORD_MOCK) |
| 954 | set(gatord_mock_sources) |
| 955 | list(APPEND gatord_mock_sources |
Colm Donelan | a21620d | 2019-10-11 13:09:49 +0100 | [diff] [blame] | 956 | tests/profiling/gatordmock/CommandFileParser.hpp |
| 957 | tests/profiling/gatordmock/CommandFileParser.cpp |
| 958 | tests/profiling/gatordmock/CommandLineProcessor.hpp |
| 959 | tests/profiling/gatordmock/CommandLineProcessor.cpp |
| 960 | tests/profiling/gatordmock/GatordMockService.hpp |
| 961 | tests/profiling/gatordmock/GatordMockService.cpp |
Colm Donelan | a21620d | 2019-10-11 13:09:49 +0100 | [diff] [blame] | 962 | tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.cpp |
| 963 | tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.hpp |
Colm Donelan | b682d84 | 2019-10-16 12:24:20 +0100 | [diff] [blame] | 964 | tests/profiling/gatordmock/PeriodicCounterSelectionResponseHandler.cpp |
| 965 | tests/profiling/gatordmock/PeriodicCounterSelectionResponseHandler.hpp |
Matteo Martincigh | cdfb941 | 2019-11-08 11:23:06 +0000 | [diff] [blame] | 966 | tests/profiling/gatordmock/StreamMetadataCommandHandler.cpp |
| 967 | tests/profiling/gatordmock/StreamMetadataCommandHandler.hpp |
Finn Williams | e63a026 | 2019-10-22 10:30:49 +0100 | [diff] [blame] | 968 | tests/profiling/timelineDecoder/ITimelineDecoder.h |
| 969 | tests/profiling/timelineDecoder/TimelineCaptureCommandHandler.cpp |
| 970 | tests/profiling/timelineDecoder/TimelineCaptureCommandHandler.hpp |
| 971 | tests/profiling/timelineDecoder/TimelineDecoder.cpp |
| 972 | tests/profiling/timelineDecoder/TimelineDirectoryCaptureCommandHandler.cpp |
| 973 | tests/profiling/timelineDecoder/TimelineDirectoryCaptureCommandHandler.hpp |
| 974 | tests/profiling/timelineDecoder/tests/TimelineTestFunctions.hpp |
Colm Donelan | 366023f | 2019-09-05 10:03:56 +0100 | [diff] [blame] | 975 | ) |
| 976 | |
Matteo Martincigh | 6598427 | 2019-10-17 13:26:21 +0100 | [diff] [blame] | 977 | include_directories(${Boost_INCLUDE_DIRS} src/profiling) |
Matteo Martincigh | cdfb941 | 2019-11-08 11:23:06 +0000 | [diff] [blame] | 978 | include_directories(${Boost_INCLUDE_DIRS} tests/profiling) |
| 979 | include_directories(${Boost_INCLUDE_DIRS} tests/profiling/gatordmock) |
| 980 | include_directories(${Boost_INCLUDE_DIRS} tests/profiling/timelineDecoder) |
Colm Donelan | 366023f | 2019-09-05 10:03:56 +0100 | [diff] [blame] | 981 | |
Colm Donelan | a21620d | 2019-10-11 13:09:49 +0100 | [diff] [blame] | 982 | add_library_ex(gatordMockService STATIC ${gatord_mock_sources}) |
Rob Hughes | 25b7436 | 2020-01-13 11:14:59 +0000 | [diff] [blame] | 983 | target_include_directories(gatordMockService PRIVATE src/armnnUtils) |
Colm Donelan | 366023f | 2019-09-05 10:03:56 +0100 | [diff] [blame] | 984 | |
Rob Hughes | 5edefa0 | 2020-01-10 09:15:30 +0000 | [diff] [blame] | 985 | add_executable_ex(GatordMock tests/profiling/gatordmock/GatordMockMain.cpp) |
Rob Hughes | 25b7436 | 2020-01-13 11:14:59 +0000 | [diff] [blame] | 986 | target_include_directories(GatordMock PRIVATE src/armnnUtils) |
Colm Donelan | a21620d | 2019-10-11 13:09:49 +0100 | [diff] [blame] | 987 | |
Rob Hughes | 5edefa0 | 2020-01-10 09:15:30 +0000 | [diff] [blame] | 988 | target_link_libraries(GatordMock |
Matteo Martincigh | 6598427 | 2019-10-17 13:26:21 +0100 | [diff] [blame] | 989 | armnn |
| 990 | gatordMockService |
| 991 | ${Boost_PROGRAM_OPTIONS_LIBRARY} |
| 992 | ${Boost_SYSTEM_LIBRARY}) |
Colm Donelan | 366023f | 2019-09-05 10:03:56 +0100 | [diff] [blame] | 993 | |
Rob Hughes | 199c98e | 2019-11-13 11:41:36 +0000 | [diff] [blame] | 994 | if(Threads_FOUND AND (NOT ("${CMAKE_SYSTEM_NAME}" STREQUAL Android))) |
Rob Hughes | 5edefa0 | 2020-01-10 09:15:30 +0000 | [diff] [blame] | 995 | target_link_libraries(GatordMock pthread) |
Rob Hughes | 199c98e | 2019-11-13 11:41:36 +0000 | [diff] [blame] | 996 | endif() |
| 997 | |
Matteo Martincigh | 994b534 | 2019-10-11 17:19:56 +0100 | [diff] [blame] | 998 | endif() |