David Beck | b4540be | 2018-09-24 13:18: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 | edd6fdc | 2019-08-29 18:27:18 +0100 | [diff] [blame] | 10 | # The variable to enable/disable the reference backend (ARMNN_REF_ENABLED is declared in android-nn-driver/Android.mk) |
| 11 | ifeq ($(ARMNN_REF_ENABLED),1) |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 12 | |
Matteo Martincigh | edd6fdc | 2019-08-29 18:27:18 +0100 | [diff] [blame] | 13 | # ARMNN_REF_ENABLED == 1 |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 14 | # Include the source files for the reference backend |
| 15 | |
David Beck | b4540be | 2018-09-24 13:18:27 +0100 | [diff] [blame] | 16 | BACKEND_SOURCES := \ |
arovir01 | 4424b0a | 2018-10-04 10:46:04 +0100 | [diff] [blame] | 17 | RefBackend.cpp \ |
David Beck | b4540be | 2018-09-24 13:18:27 +0100 | [diff] [blame] | 18 | RefLayerSupport.cpp \ |
Matthew Bentham | 7c1603a | 2019-06-21 17:22:23 +0100 | [diff] [blame] | 19 | RefMemoryManager.cpp \ |
Matthew Bentham | 4cefc41 | 2019-06-18 16:14:34 +0100 | [diff] [blame] | 20 | RefTensorHandle.cpp \ |
David Beck | b4540be | 2018-09-24 13:18:27 +0100 | [diff] [blame] | 21 | RefWorkloadFactory.cpp \ |
Matteo Martincigh | 4e73b42 | 2019-08-08 13:46:32 +0100 | [diff] [blame] | 22 | RefRegistryInitializer.cpp \ |
Ferran Balaguer | bfeb271 | 2019-08-07 15:14:56 +0100 | [diff] [blame] | 23 | RefTensorHandleFactory.cpp \ |
Sadik Armagan | 9199e58 | 2019-09-05 17:35:31 +0100 | [diff] [blame] | 24 | workloads/Abs.cpp \ |
David Beck | b4540be | 2018-09-24 13:18:27 +0100 | [diff] [blame] | 25 | workloads/Activation.cpp \ |
Matteo Martincigh | 3122bd5 | 2019-06-03 16:54:25 +0100 | [diff] [blame] | 26 | workloads/BatchNormImpl.cpp \ |
Éanna Ó Catháin | 4e1e136 | 2018-11-12 11:36:34 +0000 | [diff] [blame] | 27 | workloads/BatchToSpaceNd.cpp \ |
David Beck | b4540be | 2018-09-24 13:18:27 +0100 | [diff] [blame] | 28 | workloads/Broadcast.cpp \ |
| 29 | workloads/ConvImpl.cpp \ |
Nattapat Chaimanowong | cfdcadf | 2018-12-06 11:54:33 +0000 | [diff] [blame] | 30 | workloads/Debug.cpp \ |
Narumol Prangnawarat | bc67cef | 2019-01-31 15:31:54 +0000 | [diff] [blame] | 31 | workloads/DetectionPostProcess.cpp \ |
Éanna Ó Catháin | d57415d | 2018-11-28 16:24:38 +0000 | [diff] [blame] | 32 | workloads/ElementwiseFunction.cpp \ |
David Beck | b4540be | 2018-09-24 13:18:27 +0100 | [diff] [blame] | 33 | workloads/FullyConnected.cpp \ |
narpra01 | 4951d84 | 2019-01-18 16:53:53 +0000 | [diff] [blame] | 34 | workloads/Gather.cpp \ |
Jan Eilers | 38e05bd | 2019-06-26 13:10:09 +0100 | [diff] [blame] | 35 | workloads/LstmUtils.cpp \ |
narpra01 | 1e4c31d | 2018-09-28 11:07:51 +0100 | [diff] [blame] | 36 | workloads/Mean.cpp \ |
Jim Flynn | e242f2d | 2019-05-22 14:24:13 +0100 | [diff] [blame] | 37 | workloads/Concatenate.cpp \ |
Mohamed Nour Abouelseoud | 7420e55 | 2018-10-12 12:26:24 +0100 | [diff] [blame] | 38 | workloads/Pad.cpp \ |
David Beck | b4540be | 2018-09-24 13:18:27 +0100 | [diff] [blame] | 39 | workloads/Pooling2d.cpp \ |
Matteo Martincigh | ab9e525 | 2019-06-13 17:27:46 +0100 | [diff] [blame] | 40 | workloads/PreluImpl.cpp \ |
Sadik Armagan | 9199e58 | 2019-09-05 17:35:31 +0100 | [diff] [blame] | 41 | workloads/RefAbsWorkload.cpp \ |
Nattapat Chaimanowong | ae2c5f0 | 2019-04-24 16:19:57 +0100 | [diff] [blame] | 42 | workloads/RefActivationWorkload.cpp \ |
Matteo Martincigh | 3122bd5 | 2019-06-03 16:54:25 +0100 | [diff] [blame] | 43 | workloads/RefBatchNormalizationWorkload.cpp \ |
Francis Murtagh | 47ea3c0 | 2019-06-20 12:07:19 +0100 | [diff] [blame] | 44 | workloads/RefBatchToSpaceNdWorkload.cpp \ |
Jim Flynn | 4ed34ed | 2019-05-17 15:32:17 +0100 | [diff] [blame] | 45 | workloads/RefConcatWorkload.cpp \ |
narpra01 | db2b160 | 2019-01-23 15:23:11 +0000 | [diff] [blame] | 46 | workloads/RefConstantWorkload.cpp \ |
David Beck | b4540be | 2018-09-24 13:18:27 +0100 | [diff] [blame] | 47 | workloads/RefConvertFp16ToFp32Workload.cpp \ |
| 48 | workloads/RefConvertFp32ToFp16Workload.cpp \ |
Mike Kelly | 9b39832 | 2019-05-22 17:21:49 +0100 | [diff] [blame] | 49 | workloads/RefConvolution2dWorkload.cpp \ |
Nattapat Chaimanowong | cfdcadf | 2018-12-06 11:54:33 +0000 | [diff] [blame] | 50 | workloads/RefDebugWorkload.cpp \ |
Ruomei Yan | 495852f | 2019-05-23 11:37:33 +0100 | [diff] [blame] | 51 | workloads/RefDepthwiseConvolution2dWorkload.cpp \ |
Nattapat Chaimanowong | 8a54ac0 | 2019-03-29 15:25:04 +0000 | [diff] [blame] | 52 | workloads/RefDequantizeWorkload.cpp \ |
Aron Virginas-Tar | 6331f91 | 2019-06-03 17:10:02 +0100 | [diff] [blame] | 53 | workloads/RefDetectionPostProcessWorkload.cpp \ |
Éanna Ó Catháin | d57415d | 2018-11-28 16:24:38 +0000 | [diff] [blame] | 54 | workloads/RefElementwiseWorkload.cpp \ |
David Beck | b4540be | 2018-09-24 13:18:27 +0100 | [diff] [blame] | 55 | workloads/RefFakeQuantizationFloat32Workload.cpp \ |
James Conroy | 83735b1 | 2019-05-30 16:36:59 +0100 | [diff] [blame] | 56 | workloads/RefFloorWorkload.cpp \ |
Francis Murtagh | 43aec58 | 2019-05-27 12:14:10 +0100 | [diff] [blame] | 57 | workloads/RefFullyConnectedWorkload.cpp \ |
narpra01 | 4951d84 | 2019-01-18 16:53:53 +0000 | [diff] [blame] | 58 | workloads/RefGatherWorkload.cpp \ |
Ferran Balaguer | d73d14f | 2019-06-10 10:29:54 +0100 | [diff] [blame] | 59 | workloads/RefL2NormalizationWorkload.cpp \ |
Nattapat Chaimanowong | eb2b329 | 2019-05-07 12:02:30 +0100 | [diff] [blame] | 60 | workloads/RefLstmWorkload.cpp \ |
James Conroy | 4d1ff58 | 2019-06-10 17:06:39 +0100 | [diff] [blame] | 61 | workloads/RefMeanWorkload.cpp \ |
Matteo Martincigh | 2fc70c5 | 2019-06-05 14:12:48 +0100 | [diff] [blame] | 62 | workloads/RefNormalizationWorkload.cpp \ |
Mohamed Nour Abouelseoud | 7420e55 | 2018-10-12 12:26:24 +0100 | [diff] [blame] | 63 | workloads/RefPadWorkload.cpp \ |
David Beck | b4540be | 2018-09-24 13:18:27 +0100 | [diff] [blame] | 64 | workloads/RefPermuteWorkload.cpp \ |
Teresa Charlin | a3b2047 | 2019-06-06 11:12:32 +0100 | [diff] [blame] | 65 | workloads/RefPooling2dWorkload.cpp \ |
Matteo Martincigh | ab9e525 | 2019-06-13 17:27:46 +0100 | [diff] [blame] | 66 | workloads/RefPreluWorkload.cpp \ |
Derek Lamberti | 5f400d6 | 2019-03-25 15:41:58 +0000 | [diff] [blame] | 67 | workloads/RefQuantizeWorkload.cpp \ |
Nina Drozd | 2f2778f | 2019-05-27 10:37:05 +0100 | [diff] [blame] | 68 | workloads/RefReshapeWorkload.cpp \ |
Ellen Norris-Thompson | 719d2a9 | 2019-06-12 10:23:57 +0100 | [diff] [blame] | 69 | workloads/RefResizeBilinearWorkload.cpp \ |
Teresa Charlin | 970f43b | 2019-07-01 13:51:07 +0100 | [diff] [blame] | 70 | workloads/RefResizeWorkload.cpp \ |
nikraj01 | 99a6631 | 2019-06-06 10:31:27 +0100 | [diff] [blame] | 71 | workloads/RefRsqrtWorkload.cpp \ |
nikraj01 | a121de3 | 2019-05-29 10:51:05 +0100 | [diff] [blame] | 72 | workloads/RefSoftmaxWorkload.cpp \ |
Nattapat Chaimanowong | 3ea76d5 | 2018-11-09 14:10:38 +0000 | [diff] [blame] | 73 | workloads/RefSpaceToBatchNdWorkload.cpp \ |
Keith Davis | a57eccb | 2019-06-14 17:33:22 +0100 | [diff] [blame] | 74 | workloads/RefSpaceToDepthWorkload.cpp \ |
Matthew Jackson | 81e601c | 2019-07-11 12:07:09 +0100 | [diff] [blame] | 75 | workloads/RefStackWorkload.cpp \ |
Nattapat Chaimanowong | 1216b58 | 2018-11-23 15:33:41 +0000 | [diff] [blame] | 76 | workloads/RefStridedSliceWorkload.cpp \ |
Ruomei Yan | 25339c3 | 2019-05-28 16:48:20 +0100 | [diff] [blame] | 77 | workloads/RefSplitterWorkload.cpp \ |
Aron Virginas-Tar | 735a450 | 2019-06-26 15:02:47 +0100 | [diff] [blame] | 78 | workloads/RefTransposeConvolution2dWorkload.cpp \ |
Teresa Charlin | 970f43b | 2019-07-01 13:51:07 +0100 | [diff] [blame] | 79 | workloads/Resize.cpp \ |
Mohamed Nour Abouelseoud | a1d3c6a | 2018-12-27 12:39:16 +0000 | [diff] [blame] | 80 | workloads/Rsqrt.cpp \ |
Nattapat Chaimanowong | 3ea76d5 | 2018-11-09 14:10:38 +0000 | [diff] [blame] | 81 | workloads/SpaceToBatchNd.cpp \ |
Keith Davis | a57eccb | 2019-06-14 17:33:22 +0100 | [diff] [blame] | 82 | workloads/SpaceToDepth.cpp \ |
Matthew Jackson | 81e601c | 2019-07-11 12:07:09 +0100 | [diff] [blame] | 83 | workloads/Stack.cpp \ |
Nattapat Chaimanowong | 1216b58 | 2018-11-23 15:33:41 +0000 | [diff] [blame] | 84 | workloads/StridedSlice.cpp \ |
ruoyan01 | f9426b3 | 2019-01-03 15:10:00 +0000 | [diff] [blame] | 85 | workloads/StringMapping.cpp \ |
Ruomei Yan | 25339c3 | 2019-05-28 16:48:20 +0100 | [diff] [blame] | 86 | workloads/Softmax.cpp \ |
Aron Virginas-Tar | 735a450 | 2019-06-26 15:02:47 +0100 | [diff] [blame] | 87 | workloads/Splitter.cpp \ |
| 88 | workloads/TransposeConvolution2d.cpp |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 89 | else |
| 90 | |
Matteo Martincigh | edd6fdc | 2019-08-29 18:27:18 +0100 | [diff] [blame] | 91 | # ARMNN_REF_ENABLED == 0 |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 92 | # No source file will be compiled for the reference backend |
| 93 | |
| 94 | BACKEND_SOURCES := |
| 95 | |
| 96 | endif |
Aron Virginas-Tar | ceae3aa | 2018-10-18 10:39:38 +0100 | [diff] [blame] | 97 | |
| 98 | # BACKEND_TEST_SOURCES contains the list of files to be included |
| 99 | # in the Android unit test build (armnn-tests) and it is picked |
| 100 | # up by the Android.mk file in the root of ArmNN |
| 101 | |
Matteo Martincigh | edd6fdc | 2019-08-29 18:27:18 +0100 | [diff] [blame] | 102 | # The variable to enable/disable the CL backend (ARMNN_REF_ENABLED is declared in android-nn-driver/Android.mk) |
| 103 | ifeq ($(ARMNN_REF_ENABLED),1) |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 104 | |
Matteo Martincigh | edd6fdc | 2019-08-29 18:27:18 +0100 | [diff] [blame] | 105 | # ARMNN_REF_ENABLED == 1 |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 106 | # Include the source files for the CL backend tests |
| 107 | |
Aron Virginas-Tar | ceae3aa | 2018-10-18 10:39:38 +0100 | [diff] [blame] | 108 | BACKEND_TEST_SOURCES := \ |
| 109 | test/RefCreateWorkloadTests.cpp \ |
Matthew Bentham | 4cefc41 | 2019-06-18 16:14:34 +0100 | [diff] [blame] | 110 | test/RefDetectionPostProcessTests.cpp \ |
Aron Virginas-Tar | 7010400 | 2018-10-24 15:33:28 +0100 | [diff] [blame] | 111 | test/RefEndToEndTests.cpp \ |
| 112 | test/RefJsonPrinterTests.cpp \ |
Aron Virginas-Tar | ceae3aa | 2018-10-18 10:39:38 +0100 | [diff] [blame] | 113 | test/RefLayerSupportTests.cpp \ |
Aron Virginas-Tar | c26ba75 | 2018-10-22 13:32:01 +0100 | [diff] [blame] | 114 | test/RefLayerTests.cpp \ |
Matthew Bentham | 7c1603a | 2019-06-21 17:22:23 +0100 | [diff] [blame] | 115 | test/RefMemoryManagerTests.cpp \ |
Aron Virginas-Tar | 7010400 | 2018-10-24 15:33:28 +0100 | [diff] [blame] | 116 | test/RefOptimizedNetworkTests.cpp \ |
Aron Virginas-Tar | c26ba75 | 2018-10-22 13:32:01 +0100 | [diff] [blame] | 117 | test/RefRuntimeTests.cpp |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 118 | else |
| 119 | |
Matteo Martincigh | edd6fdc | 2019-08-29 18:27:18 +0100 | [diff] [blame] | 120 | # ARMNN_REF_ENABLED == 0 |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 121 | # No source file will be compiled for the reference backend tests |
| 122 | |
| 123 | BACKEND_TEST_SOURCES := |
| 124 | |
| 125 | endif |