David Beck | 0dbe0ee | 2018-09-24 15:59:27 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright © 2017 ARM Ltd. All rights reserved. |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | # |
| 5 | |
| 6 | # BACKEND_SOURCES contains the list of files to be included |
| 7 | # in the Android build and it is picked up by the Android.mk |
| 8 | # file in the root of ArmNN |
| 9 | |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 10 | # The variable to enable/disable the NEON backend (ARMNN_COMPUTE_NEON_ENABLED is declared in android-nn-driver/Android.mk) |
Matteo Martincigh | d95e906 | 2019-01-31 15:35:59 +0000 | [diff] [blame] | 11 | ifeq ($(ARMNN_COMPUTE_NEON_ENABLED),1) |
| 12 | |
| 13 | # ARMNN_COMPUTE_NEON_ENABLED == 1 |
| 14 | # Include the source files for the NEON backend |
| 15 | |
David Beck | 0dbe0ee | 2018-09-24 15:59:27 +0100 | [diff] [blame] | 16 | BACKEND_SOURCES := \ |
arovir01 | 4424b0a | 2018-10-04 10:46:04 +0100 | [diff] [blame] | 17 | NeonBackend.cpp \ |
Aron Virginas-Tar | 3b278e9 | 2018-10-12 13:00:55 +0100 | [diff] [blame] | 18 | NeonInterceptorScheduler.cpp \ |
David Beck | 0dbe0ee | 2018-09-24 15:59:27 +0100 | [diff] [blame] | 19 | NeonLayerSupport.cpp \ |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 20 | NeonRegistryInitializer.cpp \ |
Narumol Prangnawarat | 4e3e818 | 2019-08-14 12:25:50 +0100 | [diff] [blame] | 21 | NeonTensorHandleFactory.cpp \ |
Aron Virginas-Tar | 3b278e9 | 2018-10-12 13:00:55 +0100 | [diff] [blame] | 22 | NeonTimer.cpp \ |
David Beck | 0dbe0ee | 2018-09-24 15:59:27 +0100 | [diff] [blame] | 23 | NeonWorkloadFactory.cpp \ |
Aron Virginas-Tar | 914e4db | 2019-09-09 13:36:45 +0100 | [diff] [blame] | 24 | workloads/NeonAbsWorkload.cpp \ |
Nattapat Chaimanowong | d4b7059 | 2018-10-12 11:21:49 +0100 | [diff] [blame] | 25 | workloads/NeonActivationWorkload.cpp \ |
Matthew Bentham | 955258d | 2018-12-10 10:48:52 +0000 | [diff] [blame] | 26 | workloads/NeonAdditionWorkload.cpp \ |
James Conroy | d47a064 | 2019-09-17 14:22:06 +0100 | [diff] [blame] | 27 | workloads/NeonArgMinMaxWorkload.cpp \ |
Matthew Bentham | c48ac8c | 2018-12-12 16:15:59 +0000 | [diff] [blame] | 28 | workloads/NeonBatchNormalizationWorkload.cpp \ |
Mike Kelly | 5685802 | 2020-01-27 12:14:47 +0000 | [diff] [blame] | 29 | workloads/NeonBatchToSpaceNdWorkload.cpp \ |
Teresa Charlin | cedd34f | 2020-03-30 11:17:30 +0100 | [diff] [blame] | 30 | workloads/NeonComparisonWorkload.cpp \ |
Jim Flynn | 39d487d | 2019-05-17 15:44:36 +0100 | [diff] [blame] | 31 | workloads/NeonConcatWorkload.cpp \ |
Nattapat Chaimanowong | 233b3d6 | 2018-10-12 12:02:18 +0100 | [diff] [blame] | 32 | workloads/NeonConstantWorkload.cpp \ |
Narumol Prangnawarat | 250d392 | 2020-03-30 16:11:04 +0100 | [diff] [blame] | 33 | workloads/NeonConvertBf16ToFp32Workload.cpp \ |
| 34 | workloads/NeonConvertFp32ToBf16Workload.cpp \ |
David Beck | 0dbe0ee | 2018-09-24 15:59:27 +0100 | [diff] [blame] | 35 | workloads/NeonConvertFp16ToFp32Workload.cpp \ |
| 36 | workloads/NeonConvertFp32ToFp16Workload.cpp \ |
Nattapat Chaimanowong | 974b65f | 2018-10-15 15:07:34 +0100 | [diff] [blame] | 37 | workloads/NeonConvolution2dWorkload.cpp \ |
Aron Virginas-Tar | 2f00b74 | 2019-09-30 13:28:08 +0100 | [diff] [blame] | 38 | workloads/NeonDepthToSpaceWorkload.cpp \ |
Nattapat Chaimanowong | 7714088 | 2018-10-17 11:12:19 +0100 | [diff] [blame] | 39 | workloads/NeonDepthwiseConvolutionWorkload.cpp \ |
Narumol Prangnawarat | 01961a7 | 2019-05-30 16:47:12 +0100 | [diff] [blame] | 40 | workloads/NeonDequantizeWorkload.cpp \ |
Derek Lamberti | 6a5e5e8 | 2019-12-05 14:41:20 +0000 | [diff] [blame] | 41 | workloads/NeonDetectionPostProcessWorkload.cpp \ |
Derek Lamberti | c77874a | 2020-04-28 13:34:56 +0100 | [diff] [blame] | 42 | workloads/NeonExpWorkload.cpp \ |
David Beck | 0dbe0ee | 2018-09-24 15:59:27 +0100 | [diff] [blame] | 43 | workloads/NeonFloorFloatWorkload.cpp \ |
| 44 | workloads/NeonFullyConnectedWorkload.cpp \ |
Sadik Armagan | 0d4863d | 2019-10-09 14:26:32 +0100 | [diff] [blame] | 45 | workloads/NeonInstanceNormalizationWorkload.cpp \ |
David Beck | 0dbe0ee | 2018-09-24 15:59:27 +0100 | [diff] [blame] | 46 | workloads/NeonL2NormalizationFloatWorkload.cpp \ |
| 47 | workloads/NeonLstmFloatWorkload.cpp \ |
Nattapat Chaimanowong | 4e6597a | 2018-12-20 14:14:06 +0000 | [diff] [blame] | 48 | workloads/NeonMaximumWorkload.cpp \ |
Matthew Bentham | fd89996 | 2018-12-31 15:49:42 +0000 | [diff] [blame] | 49 | workloads/NeonMeanWorkload.cpp \ |
Conor Kennedy | 54b2169 | 2019-01-09 07:57:38 +0000 | [diff] [blame] | 50 | workloads/NeonMinimumWorkload.cpp \ |
Conor Kennedy | b99480b | 2019-03-08 08:24:41 +0000 | [diff] [blame] | 51 | workloads/NeonMultiplicationWorkload.cpp \ |
Pablo Tello | e61f071 | 2020-01-23 10:37:17 +0000 | [diff] [blame] | 52 | workloads/NeonDivisionWorkload.cpp \ |
Sadik Armagan | ac47210 | 2020-03-24 09:54:36 +0000 | [diff] [blame] | 53 | workloads/NeonNegWorkload.cpp \ |
David Beck | 0dbe0ee | 2018-09-24 15:59:27 +0100 | [diff] [blame] | 54 | workloads/NeonNormalizationFloatWorkload.cpp \ |
Éanna Ó Catháin | 1205574 | 2019-01-25 10:01:40 +0000 | [diff] [blame] | 55 | workloads/NeonPadWorkload.cpp \ |
David Beck | 0dbe0ee | 2018-09-24 15:59:27 +0100 | [diff] [blame] | 56 | workloads/NeonPermuteWorkload.cpp \ |
Nattapat Chaimanowong | 5d2e700 | 2018-10-12 16:03:56 +0100 | [diff] [blame] | 57 | workloads/NeonPooling2dWorkload.cpp \ |
Nikhil Raj | 9b46148 | 2019-07-03 15:58:31 +0100 | [diff] [blame] | 58 | workloads/NeonPreluWorkload.cpp \ |
Francis Murtagh | 4fc3c48 | 2019-08-02 13:20:54 +0100 | [diff] [blame] | 59 | workloads/NeonQuantizedLstmWorkload.cpp \ |
Sadik Armagan | fabc289 | 2019-05-31 09:05:11 +0100 | [diff] [blame] | 60 | workloads/NeonQuantizeWorkload.cpp \ |
Nattapat Chaimanowong | cce11fc | 2018-10-12 16:30:56 +0100 | [diff] [blame] | 61 | workloads/NeonReshapeWorkload.cpp \ |
Ellen Norris-Thompson | 37e6868 | 2019-07-15 14:23:30 +0100 | [diff] [blame] | 62 | workloads/NeonResizeWorkload.cpp \ |
Aron Virginas-Tar | 0dd3b43 | 2019-09-10 13:55:09 +0100 | [diff] [blame] | 63 | workloads/NeonRsqrtWorkload.cpp \ |
josh minor | 036f02d | 2019-11-15 14:53:22 -0600 | [diff] [blame] | 64 | workloads/NeonSliceWorkload.cpp \ |
Sadik Armagan | be88a57 | 2020-04-30 11:39:37 +0100 | [diff] [blame] | 65 | workloads/NeonSoftmaxWorkload.cpp \ |
Mike Kelly | 0be3a88 | 2020-01-24 11:27:50 +0000 | [diff] [blame] | 66 | workloads/NeonSpaceToBatchNdWorkload.cpp \ |
Ellen Norris-Thompson | 2979457 | 2019-06-26 16:40:36 +0100 | [diff] [blame] | 67 | workloads/NeonSpaceToDepthWorkload.cpp \ |
Narumol Prangnawarat | 15eb583 | 2019-05-20 15:31:05 +0100 | [diff] [blame] | 68 | workloads/NeonSplitterWorkload.cpp \ |
Matthew Jackson | 87f65ea | 2019-08-01 10:01:34 +0100 | [diff] [blame] | 69 | workloads/NeonStackWorkload.cpp \ |
FinnWilliamsArm | 1fa1919 | 2019-08-02 17:26:31 +0100 | [diff] [blame] | 70 | workloads/NeonStridedSliceWorkload.cpp \ |
Sadik Armagan | 581742d | 2019-08-12 14:11:37 +0100 | [diff] [blame] | 71 | workloads/NeonSubtractionWorkload.cpp \ |
Mike Kelly | c9ea45a | 2020-02-28 18:11:58 +0000 | [diff] [blame] | 72 | workloads/NeonTransposeConvolution2dWorkload.cpp \ |
| 73 | workloads/NeonTransposeWorkload.cpp |
Aron Virginas-Tar | ceae3aa | 2018-10-18 10:39:38 +0100 | [diff] [blame] | 74 | |
Matteo Martincigh | d95e906 | 2019-01-31 15:35:59 +0000 | [diff] [blame] | 75 | else |
| 76 | |
| 77 | # ARMNN_COMPUTE_NEON_ENABLED == 0 |
| 78 | # No source file will be compiled for the NEON backend |
| 79 | |
| 80 | BACKEND_SOURCES := |
| 81 | |
| 82 | endif |
| 83 | |
Aron Virginas-Tar | ceae3aa | 2018-10-18 10:39:38 +0100 | [diff] [blame] | 84 | # BACKEND_TEST_SOURCES contains the list of files to be included |
| 85 | # in the Android unit test build (armnn-tests) and it is picked |
| 86 | # up by the Android.mk file in the root of ArmNN |
| 87 | |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 88 | # The variable to enable/disable the NEON backend (ARMNN_COMPUTE_NEON_ENABLED is declared in android-nn-driver/Android.mk) |
Matteo Martincigh | d95e906 | 2019-01-31 15:35:59 +0000 | [diff] [blame] | 89 | ifeq ($(ARMNN_COMPUTE_NEON_ENABLED),1) |
| 90 | |
| 91 | # ARMNN_COMPUTE_NEON_ENABLED == 1 |
| 92 | # Include the source files for the NEON backend tests |
| 93 | |
Aron Virginas-Tar | ceae3aa | 2018-10-18 10:39:38 +0100 | [diff] [blame] | 94 | BACKEND_TEST_SOURCES := \ |
| 95 | test/NeonCreateWorkloadTests.cpp \ |
Aron Virginas-Tar | 7010400 | 2018-10-24 15:33:28 +0100 | [diff] [blame] | 96 | test/NeonEndToEndTests.cpp \ |
| 97 | test/NeonJsonPrinterTests.cpp \ |
Aron Virginas-Tar | ceae3aa | 2018-10-18 10:39:38 +0100 | [diff] [blame] | 98 | test/NeonLayerSupportTests.cpp \ |
| 99 | test/NeonLayerTests.cpp \ |
Aron Virginas-Tar | 7010400 | 2018-10-24 15:33:28 +0100 | [diff] [blame] | 100 | test/NeonOptimizedNetworkTests.cpp \ |
Aron Virginas-Tar | c26ba75 | 2018-10-22 13:32:01 +0100 | [diff] [blame] | 101 | test/NeonRuntimeTests.cpp \ |
Aron Virginas-Tar | ceae3aa | 2018-10-18 10:39:38 +0100 | [diff] [blame] | 102 | test/NeonTimerTest.cpp |
Matteo Martincigh | d95e906 | 2019-01-31 15:35:59 +0000 | [diff] [blame] | 103 | |
Matteo Martincigh | edd6fdc | 2019-08-29 18:27:18 +0100 | [diff] [blame] | 104 | ifeq ($(ARMNN_REF_ENABLED),1) |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 105 | BACKEND_TEST_SOURCES += \ |
| 106 | test/NeonMemCopyTests.cpp |
Matteo Martincigh | edd6fdc | 2019-08-29 18:27:18 +0100 | [diff] [blame] | 107 | endif # ARMNN_REF_ENABLED == 1 |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 108 | |
Matteo Martincigh | d95e906 | 2019-01-31 15:35:59 +0000 | [diff] [blame] | 109 | else |
| 110 | |
| 111 | # ARMNN_COMPUTE_NEON_ENABLED == 0 |
| 112 | # No source file will be compiled for the NEON backend tests |
| 113 | |
| 114 | BACKEND_TEST_SOURCES := |
| 115 | |
| 116 | endif |