David Monahan | 8a57046 | 2023-11-22 13:24:25 +0000 | [diff] [blame] | 1 | # |
| 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) |
| 12 | ifeq ($(ARMNN_COMPUTE_GPUFSA_ENABLED),1) |
| 13 | |
| 14 | # ARMNN_COMPUTE_GPUFSA_ENABLED == 1 |
| 15 | # Include the source files for the GPU Dynamic Fusion backend |
| 16 | |
| 17 | BACKEND_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 |
| 26 | else |
| 27 | |
| 28 | # ARMNN_COMPUTE_GPUFSA_ENABLED == 0 |
| 29 | # No source file will be compiled for the GPU Dynamic Fusion backend |
| 30 | |
| 31 | BACKEND_SOURCES := |
| 32 | |
| 33 | endif |
| 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) |
| 41 | ifeq ($(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 | |
| 46 | BACKEND_TEST_SOURCES := \ |
| 47 | test/GpuFsaEndToEndTests.cpp \ |
| 48 | test/GpuFsaLayerSupportTests.cpp \ |
| 49 | test/GpuFsaLayerTests.cpp \ |
| 50 | test/GpuFsaOptimizedNetworkTests.cpp |
| 51 | else |
| 52 | |
| 53 | # ARMNN_COMPUTE_GPUFSA_ENABLED == 0 |
| 54 | # No source file will be compiled for the GPU Dynamic Fusion backend tests |
| 55 | |
| 56 | BACKEND_TEST_SOURCES := |
| 57 | |
| 58 | endif |