blob: d8d254205b24f4afb33d332d12cac6353daa3da6 [file] [log] [blame]
David Monahan8a570462023-11-22 13:24:25 +00001#
2# Copyright © 2022-2023 Arm Ltd and Contributors. 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 GPU Dynamic Fusion backend
11# (ARMNN_COMPUTE_GPUFSA_ENABLED is declared in android-nn-driver/Android.mk)
12ifeq ($(ARMNN_COMPUTE_GPUFSA_ENABLED),1)
13
14# ARMNN_COMPUTE_GPUFSA_ENABLED == 1
15# Include the source files for the GPU Dynamic Fusion backend
16
17BACKEND_SOURCES := \
18 GpuFsaBackend.cpp \
19 GpuFsaBackendContext.cpp \
20 GpuFsaContextControl.cpp \
21 GpuFsaLayerSupport.cpp \
22 GpuFsaRegistryInitializer.cpp \
23 GpuFsaTensorHandleFactory.cpp \
24 GpuFsaWorkloadFactory.cpp \
25 layerValidators/GpuFsaConvolution2dValidate.cpp
26else
27
28# ARMNN_COMPUTE_GPUFSA_ENABLED == 0
29# No source file will be compiled for the GPU Dynamic Fusion backend
30
31BACKEND_SOURCES :=
32
33endif
34
35# BACKEND_TEST_SOURCES contains the list of files to be included
36# in the Android unit test build (armnn-tests) and it is picked
37# up by the Android.mk file in the root of ArmNN
38
39# The variable to enable/disable the GPU Dynamic Fusion backend
40# (ARMNN_COMPUTE_GPUFSA_ENABLED is declared in android-nn-driver/Android.mk)
41ifeq ($(ARMNN_COMPUTE_GPUFSA_ENABLED),1)
42
43# ARMNN_COMPUTE_GPUFSA_ENABLED == 1
44# Include the source files for the GPU Dynamic Fusion backend tests
45
46BACKEND_TEST_SOURCES := \
47 test/GpuFsaEndToEndTests.cpp \
48 test/GpuFsaLayerSupportTests.cpp \
49 test/GpuFsaLayerTests.cpp \
50 test/GpuFsaOptimizedNetworkTests.cpp
51else
52
53# ARMNN_COMPUTE_GPUFSA_ENABLED == 0
54# No source file will be compiled for the GPU Dynamic Fusion backend tests
55
56BACKEND_TEST_SOURCES :=
57
58endif