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