diff options
Diffstat (limited to 'src/backends/gpuFsa/backend.mk')
-rw-r--r-- | src/backends/gpuFsa/backend.mk | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/backends/gpuFsa/backend.mk b/src/backends/gpuFsa/backend.mk new file mode 100644 index 0000000000..840e10338c --- /dev/null +++ b/src/backends/gpuFsa/backend.mk @@ -0,0 +1,57 @@ +# +# Copyright © 2022 Arm Ltd and Contributors. All rights reserved. +# SPDX-License-Identifier: MIT +# + +# BACKEND_SOURCES contains the list of files to be included +# in the Android build and it is picked up by the Android.mk +# file in the root of ArmNN + +# The variable to enable/disable the GPU Dynamic Fusion backend +# (ARMNN_GPU_FSA_ENABLED is declared in android-nn-driver/Android.mk) +ifeq ($(ARMNN_GPU_FSA_ENABLED),1) + +# ARMNN_GPU_FSA_ENABLED == 1 +# Include the source files for the GPU Dynamic Fusion backend + +BACKEND_SOURCES := \ + GpuFsaBackend.cpp \ + GpuFsaLayerSupport.cpp \ + GpuFsaMemoryManager.cpp \ + GpuFsaRegistryInitializer.cpp \ + GpuFsaTensorHandle.cpp \ + GpuFsaTensorHandleFactory.cpp \ + GpuFsaWorkloadFactory.cpp +else + +# ARMNN_GPU_FSA_ENABLED == 0 +# No source file will be compiled for the GPU Dynamic Fusion backend + +BACKEND_SOURCES := + +endif + +# BACKEND_TEST_SOURCES contains the list of files to be included +# in the Android unit test build (armnn-tests) and it is picked +# up by the Android.mk file in the root of ArmNN + +# The variable to enable/disable the GPU Dynamic Fusion backend +# (ARMNN_GPU_FSA_ENABLED is declared in android-nn-driver/Android.mk) +ifeq ($(ARMNN_GPU_FSA_ENABLED),1) + +# ARMNN_GPU_FSA_ENABLED == 1 +# Include the source files for the GPU Dynamic Fusion backend tests + +BACKEND_TEST_SOURCES := \ + test/GpuFsaEndToEndTests.cpp \ + test/GpuFsaLayerSupportTests.cpp \ + test/GpuFsaLayerTests.cpp \ + test/GpuFsaOptimizedNetworkTests.cpp +else + +# ARMNN_GPU_FSA_ENABLED == 0 +# No source file will be compiled for the GPU Dynamic Fusion backend tests + +BACKEND_TEST_SOURCES := + +endif |