IVGCVSW-3296 Add CL backend support for ResizeNearestNeighbour
[platform/upstream/armnn.git] / src / backends / cl / backend.mk
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
10 # The variable to enable/disable the CL backend (ARMNN_COMPUTE_CL_ENABLED) is declared in android-nn-driver/Android.mk
11 ifeq ($(ARMNN_COMPUTE_CL_ENABLED),1)
12
13 # ARMNN_COMPUTE_CL_ENABLED == 1
14 # Include the source files for the CL backend
15
16 BACKEND_SOURCES := \
17         ClBackend.cpp \
18         ClBackendContext.cpp \
19         ClContextControl.cpp \
20         ClLayerSupport.cpp \
21         ClWorkloadFactory.cpp \
22         OpenClTimer.cpp \
23         workloads/ClActivationWorkload.cpp \
24         workloads/ClAdditionWorkload.cpp \
25         workloads/ClBatchNormalizationFloatWorkload.cpp \
26         workloads/ClBatchToSpaceNdWorkload.cpp \
27         workloads/ClConcatWorkload.cpp \
28         workloads/ClConstantWorkload.cpp \
29         workloads/ClConvertFp16ToFp32Workload.cpp \
30         workloads/ClConvertFp32ToFp16Workload.cpp \
31         workloads/ClConvolution2dWorkload.cpp \
32         workloads/ClDepthwiseConvolutionWorkload.cpp \
33         workloads/ClDequantizeWorkload.cpp \
34         workloads/ClDivisionFloatWorkload.cpp \
35         workloads/ClFloorFloatWorkload.cpp \
36         workloads/ClFullyConnectedWorkload.cpp \
37         workloads/ClGreaterWorkload.cpp \
38         workloads/ClL2NormalizationFloatWorkload.cpp \
39         workloads/ClLstmFloatWorkload.cpp \
40         workloads/ClMaximumWorkload.cpp \
41         workloads/ClMeanWorkload.cpp \
42         workloads/ClMinimumWorkload.cpp \
43         workloads/ClMultiplicationWorkload.cpp \
44         workloads/ClNormalizationFloatWorkload.cpp \
45         workloads/ClPadWorkload.cpp \
46         workloads/ClPermuteWorkload.cpp \
47         workloads/ClPooling2dWorkload.cpp \
48         workloads/ClPreluWorkload.cpp \
49         workloads/ClQuantizeWorkload.cpp \
50         workloads/ClReshapeWorkload.cpp \
51         workloads/ClResizeWorkload.cpp \
52         workloads/ClSoftmaxBaseWorkload.cpp \
53         workloads/ClSoftmaxFloatWorkload.cpp \
54         workloads/ClSoftmaxUint8Workload.cpp \
55         workloads/ClSpaceToBatchNdWorkload.cpp \
56         workloads/ClSpaceToDepthWorkload.cpp \
57         workloads/ClSplitterWorkload.cpp \
58         workloads/ClStridedSliceWorkload.cpp \
59         workloads/ClSubtractionWorkload.cpp \
60         workloads/ClTransposeConvolution2dWorkload.cpp
61 else
62
63 # ARMNN_COMPUTE_CL_ENABLED == 0
64 # No source file will be compiled for the CL backend
65
66 BACKEND_SOURCES :=
67
68 endif
69
70 # BACKEND_TEST_SOURCES contains the list of files to be included
71 # in the Android unit test build (armnn-tests) and it is picked
72 # up by the Android.mk file in the root of ArmNN
73
74 # The variable to enable/disable the CL backend (ARMNN_COMPUTE_CL_ENABLED) is declared in android-nn-driver/Android.mk
75 ifeq ($(ARMNN_COMPUTE_CL_ENABLED),1)
76
77 # ARMNN_COMPUTE_CL_ENABLED == 1
78 # Include the source files for the CL backend tests
79
80 BACKEND_TEST_SOURCES := \
81         test/ClCreateWorkloadTests.cpp \
82         test/ClEndToEndTests.cpp \
83         test/ClJsonPrinterTests.cpp \
84         test/ClLayerSupportTests.cpp \
85         test/ClLayerTests.cpp \
86         test/ClMemCopyTests.cpp \
87         test/ClOptimizedNetworkTests.cpp \
88         test/ClRuntimeTests.cpp \
89         test/Fp16SupportTest.cpp \
90         test/OpenClTimerTest.cpp
91 else
92
93 # ARMNN_COMPUTE_CL_ENABLED == 0
94 # No source file will be compiled for the CL backend tests
95
96 BACKEND_TEST_SOURCES :=
97
98 endif