This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Android.mk
132 lines (122 loc) · 3.71 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# Copyright (C) 2016 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := [email protected]
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_PROPRIETARY_MODULE := true
LOCAL_INIT_RC := [email protected]
LOCAL_SRC_FILES := \
service.cpp \
device.cpp \
prepare_model.cpp \
executor_manager.cpp \
base_executor.cpp \
gpu_executor.cpp \
vulkan/vk_cs_executor.cpp \
vulkan/vk_memory_manager.cpp \
vulkan/vk_pool_info.cpp \
vulkan/vk_memory_info.cpp \
vulkan/vk_operand.cpp \
vulkan/vk_buffer.cpp \
vulkan/vk_cs_executor_elewise.cpp \
vulkan/vk_cs_executor_conv.cpp \
vulkan/vk_cs_executor_depth_conv.cpp \
vulkan/vk_cs_executor_concat.cpp \
vulkan/vk_cs_executor_logistic.cpp \
vulkan/vk_cs_executor_softmax.cpp \
vulkan/vk_cs_executor_pool.cpp \
vulkan/vk_cs_executor_lrn.cpp \
vulkan/vk_cs_executor_reshape.cpp \
vulkan/vk_op_base.cpp \
vulkan/vk_wrapper.cpp \
vulkan/shader/elewise_spv.cpp \
vulkan/shader/conv_spv.cpp \
vulkan/shader/dw_conv_spv.cpp \
vulkan/shader/concat_spv.cpp \
vulkan/shader/logistic_spv.cpp \
vulkan/shader/softmax_spv.cpp \
vulkan/shader/avg_pool_spv.cpp \
vulkan/shader/conv_chn3to4_spv.cpp \
vulkan/shader/conv_gemmShader4_8_spv.cpp \
vulkan/shader/conv_gemm1_spv.cpp \
vulkan/shader/max_pool_spv.cpp \
vulkan/shader/lrn_spv.cpp \
gles/gles_cs_executor.cpp \
gles/gles_cs_executor_add.cpp \
gles/gles_cs_executor_avg_pool.cpp \
gles/gles_cs_executor_concat.cpp \
gles/gles_cs_executor_conv.cpp \
gles/gles_cs_executor_depth_conv.cpp \
gles/gles_cs_executor_logistic.cpp \
gles/gles_cs_executor_lrn.cpp \
gles/gles_cs_executor_max_pool.cpp \
gles/gles_cs_executor_mul.cpp \
gles/gles_cs_executor_reshape.cpp \
gles/gles_cs_executor_softmax.cpp \
gles/gles_cs_program_add.cpp \
gles/gles_cs_program_avg_pool.cpp \
gles/gles_cs_program_concat.cpp \
gles/gles_cs_program_conv.cpp \
gles/gles_cs_program_depth_conv.cpp \
gles/gles_cs_program_logistic.cpp \
gles/gles_cs_program_lrn.cpp \
gles/gles_cs_program_manager.cpp \
gles/gles_cs_program_max_pool.cpp \
gles/gles_cs_program_mul.cpp \
gles/gles_cs_program_reshape.cpp \
gles/gles_cs_program_softmax.cpp \
gles/gles_memory_info.cpp \
gles/gles_memory_manager.cpp \
gles/gles_operand.cpp \
gles/gles_pool_info.cpp
LOCAL_CFLAGS += \
-DLOG_TAG=\"NN_GPU_HAL\" \
-DLOG_NDEBUG=0
ifeq ($(TARGET_PRODUCT), gordon_peak)
LOCAL_CFLAGS += -DTARGET_GORDON_PEAK
endif
ifeq ($(TARGET_PRODUCT), icl_presi_kbl)
LOCAL_CFLAGS += -DTARGET_KBL
endif
ifeq ($(TARGET_PRODUCT), celadon_tablet)
LOCAL_CFLAGS += -DTARGET_KBL
endif
LOCAL_C_INCLUDES := \
frameworks/ml/nn/common/include \
frameworks/ml/nn/runtime/include \
frameworks/native/libs/nativewindow/include \
frameworks/native/libs/ui/include \
frameworks/native/libs/nativebase/include
LOCAL_STATIC_LIBRARIES := libneuralnetworks_common
LOCAL_SHARED_LIBRARIES := \
libbase \
libdl \
libcutils \
libhardware \
libhidlbase \
libhidlmemory \
libhidltransport \
liblog \
libutils \
libEGL \
libGLESv3 \
libvulkan \
LOCAL_MULTILIB := 64
include $(BUILD_EXECUTABLE)