blob: a219ad4fec4b275cd59bb8375332d0626737b4d0 [file] [log] [blame]
David Monahan8a570462023-11-22 13:24:25 +00001#
David Monahanbd738082023-12-08 12:50:02 +00002# Copyright © 2022-2024 Arm Ltd and Contributors. All rights reserved.
David Monahan8a570462023-11-22 13:24:25 +00003# 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 \
David Monahanbd738082023-12-08 12:50:02 +000025 layers/GpuFsaConvolution2d.cpp
26
27# BACKEND_TEST_SOURCES contains the list of files to be included
28# in the Android unit test build (armnn-tests) and it is picked
29# up by the Android.mk file in the root of ArmNN
30
31# ARMNN_COMPUTE_GPUFSA_ENABLED == 1
32# Include the source files for the GPU Dynamic Fusion backend tests
33
34BACKEND_TEST_SOURCES := \
35 test/GpuFsaEndToEndTests.cpp \
36 test/GpuFsaLayerSupportTests.cpp \
37 test/GpuFsaLayerTests.cpp \
38 test/GpuFsaOptimizedNetworkTests.cpp
David Monahan8a570462023-11-22 13:24:25 +000039else
40
41# ARMNN_COMPUTE_GPUFSA_ENABLED == 0
42# No source file will be compiled for the GPU Dynamic Fusion backend
43
44BACKEND_SOURCES :=
45
David Monahan8a570462023-11-22 13:24:25 +000046
47# ARMNN_COMPUTE_GPUFSA_ENABLED == 0
48# No source file will be compiled for the GPU Dynamic Fusion backend tests
49
50BACKEND_TEST_SOURCES :=
51
52endif