David Beck | ac42efd | 2018-09-26 17:41:13 +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 CL backend (ARMNN_COMPUTE_CL_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_CL_ENABLED),1) |
| 12 | |
| 13 | # ARMNN_COMPUTE_CL_ENABLED == 1 |
| 14 | # Include the source files for the CL backend |
| 15 | |
David Beck | ac42efd | 2018-09-26 17:41:13 +0100 | [diff] [blame] | 16 | BACKEND_SOURCES := \ |
arovir01 | 4424b0a | 2018-10-04 10:46:04 +0100 | [diff] [blame] | 17 | ClBackend.cpp \ |
David Beck | 1b61be5 | 2018-11-08 09:19:14 +0000 | [diff] [blame] | 18 | ClBackendContext.cpp \ |
David Beck | ac42efd | 2018-09-26 17:41:13 +0100 | [diff] [blame] | 19 | ClContextControl.cpp \ |
| 20 | ClLayerSupport.cpp \ |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 21 | ClRegistryInitializer.cpp \ |
Jan Eilers | e9f0f0f | 2019-08-16 10:28:37 +0100 | [diff] [blame] | 22 | ClTensorHandleFactory.cpp \ |
David Beck | ac42efd | 2018-09-26 17:41:13 +0100 | [diff] [blame] | 23 | ClWorkloadFactory.cpp \ |
Aron Virginas-Tar | 3b278e9 | 2018-10-12 13:00:55 +0100 | [diff] [blame] | 24 | OpenClTimer.cpp \ |
Aron Virginas-Tar | 8204694 | 2019-09-09 15:18:29 +0100 | [diff] [blame] | 25 | workloads/ClAbsWorkload.cpp \ |
Nattapat Chaimanowong | e06757e | 2018-10-11 15:39:18 +0100 | [diff] [blame] | 26 | workloads/ClActivationWorkload.cpp \ |
David Beck | ac42efd | 2018-09-26 17:41:13 +0100 | [diff] [blame] | 27 | workloads/ClAdditionWorkload.cpp \ |
David Beck | ac42efd | 2018-09-26 17:41:13 +0100 | [diff] [blame] | 28 | workloads/ClBatchNormalizationFloatWorkload.cpp \ |
Mike Kelly | 831faed | 2018-11-28 11:52:08 +0000 | [diff] [blame] | 29 | workloads/ClBatchToSpaceNdWorkload.cpp \ |
Jim Flynn | 6905941 | 2019-05-17 13:03:57 +0100 | [diff] [blame] | 30 | workloads/ClConcatWorkload.cpp \ |
Nattapat Chaimanowong | 55b1cda | 2018-10-10 14:51:27 +0100 | [diff] [blame] | 31 | workloads/ClConstantWorkload.cpp \ |
David Beck | ac42efd | 2018-09-26 17:41:13 +0100 | [diff] [blame] | 32 | workloads/ClConvertFp16ToFp32Workload.cpp \ |
| 33 | workloads/ClConvertFp32ToFp16Workload.cpp \ |
Matthew Bentham | d806792 | 2018-10-03 17:18:04 +0100 | [diff] [blame] | 34 | workloads/ClConvolution2dWorkload.cpp \ |
Aron Virginas-Tar | b280196 | 2019-09-30 11:24:53 +0100 | [diff] [blame] | 35 | workloads/ClDepthToSpaceWorkload.cpp \ |
Matthew Bentham | d877739 | 2018-10-08 09:38:55 +0100 | [diff] [blame] | 36 | workloads/ClDepthwiseConvolutionWorkload.cpp \ |
Jim Flynn | 983daec | 2019-05-29 16:20:16 +0100 | [diff] [blame] | 37 | workloads/ClDequantizeWorkload.cpp \ |
David Beck | ac42efd | 2018-09-26 17:41:13 +0100 | [diff] [blame] | 38 | workloads/ClDivisionFloatWorkload.cpp \ |
| 39 | workloads/ClFloorFloatWorkload.cpp \ |
| 40 | workloads/ClFullyConnectedWorkload.cpp \ |
Nattapat Chaimanowong | c6a41ff | 2019-01-29 09:56:02 +0000 | [diff] [blame] | 41 | workloads/ClGreaterWorkload.cpp \ |
Aron Virginas-Tar | 8168f40 | 2019-10-04 13:10:16 +0100 | [diff] [blame] | 42 | workloads/ClInstanceNormalizationWorkload.cpp \ |
David Beck | ac42efd | 2018-09-26 17:41:13 +0100 | [diff] [blame] | 43 | workloads/ClL2NormalizationFloatWorkload.cpp \ |
| 44 | workloads/ClLstmFloatWorkload.cpp \ |
keidav01 | a959ee5 | 2018-12-19 10:04:58 +0000 | [diff] [blame] | 45 | workloads/ClMaximumWorkload.cpp \ |
Matteo Martincigh | 28dcab6 | 2018-10-19 16:40:03 +0100 | [diff] [blame] | 46 | workloads/ClMeanWorkload.cpp \ |
saoste01 | 9292aa3 | 2019-01-08 13:55:59 +0000 | [diff] [blame] | 47 | workloads/ClMinimumWorkload.cpp \ |
Matthew Bentham | e2ec330 | 2018-10-01 11:32:48 +0100 | [diff] [blame] | 48 | workloads/ClMultiplicationWorkload.cpp \ |
David Beck | ac42efd | 2018-09-26 17:41:13 +0100 | [diff] [blame] | 49 | workloads/ClNormalizationFloatWorkload.cpp \ |
| 50 | workloads/ClPadWorkload.cpp \ |
| 51 | workloads/ClPermuteWorkload.cpp \ |
Nattapat Chaimanowong | ac9e096 | 2018-10-10 17:18:35 +0100 | [diff] [blame] | 52 | workloads/ClPooling2dWorkload.cpp \ |
Nikhil Raj | 91e4c6d | 2019-07-05 12:22:58 +0100 | [diff] [blame] | 53 | workloads/ClPreluWorkload.cpp \ |
Ferran Balaguer | 737d9ff | 2019-08-01 09:58:08 +0100 | [diff] [blame] | 54 | workloads/ClQuantizedLstmWorkload.cpp \ |
Sadik Armagan | 20ec249 | 2019-05-31 09:09:44 +0100 | [diff] [blame] | 55 | workloads/ClQuantizeWorkload.cpp \ |
Nattapat Chaimanowong | a76698c | 2018-10-11 10:29:15 +0100 | [diff] [blame] | 56 | workloads/ClReshapeWorkload.cpp \ |
Aron Virginas-Tar | cc0cefb | 2019-07-02 17:25:47 +0100 | [diff] [blame] | 57 | workloads/ClResizeWorkload.cpp \ |
Aron Virginas-Tar | 1a763dd | 2019-09-10 12:32:08 +0100 | [diff] [blame] | 58 | workloads/ClRsqrtWorkload.cpp \ |
David Beck | ac42efd | 2018-09-26 17:41:13 +0100 | [diff] [blame] | 59 | workloads/ClSoftmaxBaseWorkload.cpp \ |
| 60 | workloads/ClSoftmaxFloatWorkload.cpp \ |
| 61 | workloads/ClSoftmaxUint8Workload.cpp \ |
Sadik Armagan | f446432 | 2018-12-20 16:19:12 +0000 | [diff] [blame] | 62 | workloads/ClSpaceToBatchNdWorkload.cpp \ |
James Conroy | d2aa85e | 2019-07-01 17:12:40 +0100 | [diff] [blame] | 63 | workloads/ClSpaceToDepthWorkload.cpp \ |
Narumol Prangnawarat | 7413583 | 2019-05-23 15:07:33 +0100 | [diff] [blame] | 64 | workloads/ClSplitterWorkload.cpp \ |
Matthew Jackson | d516610 | 2019-07-31 14:06:28 +0100 | [diff] [blame] | 65 | workloads/ClStackWorkload.cpp \ |
keidav01 | d74dc91 | 2018-12-10 18:16:07 +0000 | [diff] [blame] | 66 | workloads/ClStridedSliceWorkload.cpp \ |
Aron Virginas-Tar | 7a3e2fe | 2019-06-27 18:54:47 +0100 | [diff] [blame] | 67 | workloads/ClSubtractionWorkload.cpp \ |
| 68 | workloads/ClTransposeConvolution2dWorkload.cpp |
Matteo Martincigh | d95e906 | 2019-01-31 15:35:59 +0000 | [diff] [blame] | 69 | else |
| 70 | |
| 71 | # ARMNN_COMPUTE_CL_ENABLED == 0 |
| 72 | # No source file will be compiled for the CL backend |
| 73 | |
| 74 | BACKEND_SOURCES := |
| 75 | |
| 76 | endif |
Aron Virginas-Tar | ceae3aa | 2018-10-18 10:39:38 +0100 | [diff] [blame] | 77 | |
| 78 | # BACKEND_TEST_SOURCES contains the list of files to be included |
| 79 | # in the Android unit test build (armnn-tests) and it is picked |
| 80 | # up by the Android.mk file in the root of ArmNN |
| 81 | |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 82 | # The variable to enable/disable the CL backend (ARMNN_COMPUTE_CL_ENABLED is declared in android-nn-driver/Android.mk) |
Matteo Martincigh | d95e906 | 2019-01-31 15:35:59 +0000 | [diff] [blame] | 83 | ifeq ($(ARMNN_COMPUTE_CL_ENABLED),1) |
| 84 | |
| 85 | # ARMNN_COMPUTE_CL_ENABLED == 1 |
| 86 | # Include the source files for the CL backend tests |
| 87 | |
Aron Virginas-Tar | ceae3aa | 2018-10-18 10:39:38 +0100 | [diff] [blame] | 88 | BACKEND_TEST_SOURCES := \ |
| 89 | test/ClCreateWorkloadTests.cpp \ |
Aron Virginas-Tar | 7010400 | 2018-10-24 15:33:28 +0100 | [diff] [blame] | 90 | test/ClEndToEndTests.cpp \ |
| 91 | test/ClJsonPrinterTests.cpp \ |
Aron Virginas-Tar | ceae3aa | 2018-10-18 10:39:38 +0100 | [diff] [blame] | 92 | test/ClLayerSupportTests.cpp \ |
| 93 | test/ClLayerTests.cpp \ |
Aron Virginas-Tar | 7010400 | 2018-10-24 15:33:28 +0100 | [diff] [blame] | 94 | test/ClOptimizedNetworkTests.cpp \ |
Aron Virginas-Tar | c26ba75 | 2018-10-22 13:32:01 +0100 | [diff] [blame] | 95 | test/ClRuntimeTests.cpp \ |
Aron Virginas-Tar | ceae3aa | 2018-10-18 10:39:38 +0100 | [diff] [blame] | 96 | test/Fp16SupportTest.cpp \ |
| 97 | test/OpenClTimerTest.cpp |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 98 | |
Matteo Martincigh | edd6fdc | 2019-08-29 18:27:18 +0100 | [diff] [blame] | 99 | ifeq ($(ARMNN_REF_ENABLED),1) |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 100 | BACKEND_TEST_SOURCES += \ |
| 101 | test/ClMemCopyTests.cpp |
Matteo Martincigh | edd6fdc | 2019-08-29 18:27:18 +0100 | [diff] [blame] | 102 | endif # ARMNN_REF_ENABLED == 1 |
Matteo Martincigh | e67edb2 | 2019-08-14 14:05:46 +0100 | [diff] [blame] | 103 | |
Matteo Martincigh | d95e906 | 2019-01-31 15:35:59 +0000 | [diff] [blame] | 104 | else |
| 105 | |
| 106 | # ARMNN_COMPUTE_CL_ENABLED == 0 |
| 107 | # No source file will be compiled for the CL backend tests |
| 108 | |
| 109 | BACKEND_TEST_SOURCES := |
| 110 | |
| 111 | endif |