David Monahan | 8a57046 | 2023-11-22 13:24:25 +0000 | [diff] [blame] | 1 | # |
David Monahan | bd73808 | 2023-12-08 12:50:02 +0000 | [diff] [blame] | 2 | # Copyright © 2022-2024 Arm Ltd and Contributors. All rights reserved. |
David Monahan | 8a57046 | 2023-11-22 13:24:25 +0000 | [diff] [blame] | 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 \ |
David Monahan | bd73808 | 2023-12-08 12:50:02 +0000 | [diff] [blame] | 25 | 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 | |
| 34 | BACKEND_TEST_SOURCES := \ |
| 35 | test/GpuFsaEndToEndTests.cpp \ |
| 36 | test/GpuFsaLayerSupportTests.cpp \ |
| 37 | test/GpuFsaLayerTests.cpp \ |
| 38 | test/GpuFsaOptimizedNetworkTests.cpp |
David Monahan | 8a57046 | 2023-11-22 13:24:25 +0000 | [diff] [blame] | 39 | else |
| 40 | |
| 41 | # ARMNN_COMPUTE_GPUFSA_ENABLED == 0 |
| 42 | # No source file will be compiled for the GPU Dynamic Fusion backend |
| 43 | |
| 44 | BACKEND_SOURCES := |
| 45 | |
David Monahan | 8a57046 | 2023-11-22 13:24:25 +0000 | [diff] [blame] | 46 | |
| 47 | # ARMNN_COMPUTE_GPUFSA_ENABLED == 0 |
| 48 | # No source file will be compiled for the GPU Dynamic Fusion backend tests |
| 49 | |
| 50 | BACKEND_TEST_SOURCES := |
| 51 | |
| 52 | endif |