Skip to content

Commit 495cc54

Browse files
committed
Squashed 'tools/Vitis-AI-Runtime/VART/target_factory/' changes from f0c0200..79a9fd6
79a9fd6 [fix] update version number to v1.3.2 6e36487 [feat][target] xvdpu/dpuv2: extended maxpool kernel size to 1-8; xvdpu: extended conv stride size to 1-8 14551be [feat][target] xvdpu: added C16B1_DW_QT 880e32a [feat][cmake] remove the direct dependency on glog and limit the make parallel to the number of core process. git-subtree-dir: tools/Vitis-AI-Runtime/VART/target_factory git-subtree-split: 79a9fd627dd36cd23a943ed020d4dc0ea05098e1
1 parent 239dbf5 commit 495cc54

34 files changed

+191
-44
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@
1414
# limitations under the License.
1515
#
1616
cmake_minimum_required(VERSION 3.5)
17-
project(target-factory VERSION 1.3.1 LANGUAGES C CXX)
17+
project(target-factory VERSION 1.3.2 LANGUAGES C CXX)
1818

1919
include(${CMAKE_SOURCE_DIR}/cmake/VitisCommon.cmake)
2020

2121
option(BUILD_TEST "build test" OFF)
2222

23-
find_package(glog REQUIRED)
2423
find_package(Protobuf REQUIRED)
2524
find_package(unilog REQUIRED)
2625

cmake.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ else
111111
echo "cd $PWD"
112112
echo cmake "${args[@]}" "$script_path"
113113
cmake "${args[@]}" "$script_path"
114-
make -j
114+
make -j $(nproc)
115115
${build_only:=false} || make install
116116
${build_package:=false} && make package
117117
fi

src/create_target_v2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const Target create_target_v2(const std::uint64_t fingerprint) {
150150
pool_nonlinear->add_nonlinear_type(Target::Nonlinear::relu);
151151
pool_engine->add_pool_type(Target::Pool::max);
152152
auto max_limit = pool_engine->mutable_max_limit();
153-
max_limit->set_kernel_size("2-8");
153+
max_limit->set_kernel_size("1-8");
154154
max_limit->set_stride("1-8");
155155
if (PL_AVG) {
156156
pool_engine->add_pool_type(Target::Pool::avg);

targets/DPUCVDX8G_ISA0_B16384C64B1.prototxt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ conv_engine {
7878
}
7979
conv_limit {
8080
kernel_size: "1-16"
81-
stride: "1-4"
81+
stride: "1-8"
8282
}
8383
}
8484
eltwise_engine {
@@ -105,7 +105,7 @@ pool_engine {
105105
}
106106
pool_type: max
107107
max_limit {
108-
kernel_size: "2-8"
108+
kernel_size: "1-8"
109109
stride: "1-4"
110110
}
111111
pool_type: avg

targets/DPUCVDX8G_ISA0_B16384C64B1_DW.prototxt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ conv_engine {
9494
}
9595
conv_limit {
9696
kernel_size: "1-16"
97-
stride: "1-4"
97+
stride: "1-8"
9898
}
9999
}
100100
eltwise_engine {
@@ -121,7 +121,7 @@ pool_engine {
121121
}
122122
pool_type: max
123123
max_limit {
124-
kernel_size: "2-8"
124+
kernel_size: "1-8"
125125
stride: "1-4"
126126
}
127127
pool_type: avg
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
# Copyright 2019 Xilinx Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "DPUCVDX8G_ISA0_B4096C16B1_DW_QT"
16+
type: "DPUCVDX8G"
17+
isa_version: 0x00
18+
feature_code: 0x0004f2022210
19+
bank_group {
20+
name: "VB0"
21+
type: "Virtual"
22+
base_id: 0
23+
bank_num: 8
24+
bank_width: 16
25+
bank_depth: 4096
26+
}
27+
bank_group {
28+
name: "VB1"
29+
type: "Virtual"
30+
base_id: 8
31+
bank_num: 8
32+
bank_width: 16
33+
bank_depth: 4096
34+
}
35+
bank_group {
36+
name: "CONVW"
37+
type: "Param"
38+
base_id: 16
39+
bank_num: 16
40+
bank_width: 16
41+
bank_depth: 4096
42+
}
43+
bank_group {
44+
name: "DWCONVW"
45+
type: "Param"
46+
base_id: 32
47+
bank_num: 1
48+
bank_width: 16
49+
bank_depth: 4096
50+
}
51+
bank_group {
52+
name: "BIAS"
53+
type: "Param"
54+
base_id: 33
55+
bank_num: 1
56+
bank_width: 16
57+
bank_depth: 2048
58+
}
59+
bank_group {
60+
name: "DWCVBIAS"
61+
type: "Param"
62+
base_id: 34
63+
bank_num: 1
64+
bank_width: 16
65+
bank_depth: 2048
66+
}
67+
load_engine {
68+
channel_parallel: 16
69+
output_bank: "VB0"
70+
output_bank: "VB1"
71+
}
72+
save_engine {
73+
channel_parallel: 16
74+
input_bank: "VB0"
75+
input_bank: "VB1"
76+
}
77+
conv_engine {
78+
input_channel_parallel: 16
79+
output_channel_parallel: 16
80+
pixel_parallel: 8
81+
input_bank: "VB0"
82+
input_bank: "VB1"
83+
output_bank: "VB0"
84+
output_bank: "VB1"
85+
weight_bank: "CONVW"
86+
bias_bank: "BIAS"
87+
nonlinear {
88+
nonlinear_type: relu
89+
nonlinear_type: leaky_relu
90+
nonlinear_type: relu_six
91+
}
92+
conv_limit {
93+
kernel_size: "1-16"
94+
stride: "1-8"
95+
}
96+
}
97+
eltwise_engine {
98+
channel_parallel: 16
99+
pixel_parallel: 2
100+
input_bank: "VB0"
101+
input_bank: "VB1"
102+
output_bank: "VB0"
103+
output_bank: "VB1"
104+
nonlinear {
105+
nonlinear_type: relu
106+
}
107+
elew_type: add
108+
}
109+
pool_engine {
110+
channel_parallel: 16
111+
pixel_parallel: 2
112+
input_bank: "VB0"
113+
input_bank: "VB1"
114+
output_bank: "VB0"
115+
output_bank: "VB1"
116+
nonlinear {
117+
nonlinear_type: relu
118+
}
119+
pool_type: max
120+
max_limit {
121+
kernel_size: "1-8"
122+
stride: "1-4"
123+
}
124+
pool_type: avg
125+
avg_limit {
126+
kernel_size: "2-8"
127+
stride: "1-4"
128+
}
129+
}
130+
dwconv_engine {
131+
channel_parallel: 16
132+
pixel_parallel: 2
133+
input_bank: "VB0"
134+
input_bank: "VB1"
135+
output_bank: "VB0"
136+
output_bank: "VB1"
137+
weight_bank: "DWCONVW"
138+
bias_bank: "DWCVBIAS"
139+
nonlinear {
140+
nonlinear_type: relu
141+
nonlinear_type: relu_six
142+
}
143+
dwconv_limit {
144+
kernel_size: "1-16"
145+
stride: "1-4"
146+
}
147+
}
148+
batch: 1

targets/DPUCVDX8G_ISA0_B4096C16B3_DW.prototxt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ conv_engine {
9494
}
9595
conv_limit {
9696
kernel_size: "1-16"
97-
stride: "1-4"
97+
stride: "1-8"
9898
}
9999
}
100100
eltwise_engine {
@@ -121,7 +121,7 @@ pool_engine {
121121
}
122122
pool_type: max
123123
max_limit {
124-
kernel_size: "2-8"
124+
kernel_size: "1-8"
125125
stride: "1-4"
126126
}
127127
pool_type: avg

targets/DPUCVDX8G_ISA0_B8192C32B1.prototxt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ conv_engine {
7878
}
7979
conv_limit {
8080
kernel_size: "1-16"
81-
stride: "1-4"
81+
stride: "1-8"
8282
}
8383
}
8484
eltwise_engine {
@@ -105,7 +105,7 @@ pool_engine {
105105
}
106106
pool_type: max
107107
max_limit {
108-
kernel_size: "2-8"
108+
kernel_size: "1-8"
109109
stride: "1-4"
110110
}
111111
pool_type: avg

targets/DPUCVDX8G_ISA0_B8192C32B1_ELP4.prototxt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ conv_engine {
7878
}
7979
conv_limit {
8080
kernel_size: "1-16"
81-
stride: "1-4"
81+
stride: "1-8"
8282
}
8383
}
8484
eltwise_engine {
@@ -105,7 +105,7 @@ pool_engine {
105105
}
106106
pool_type: max
107107
max_limit {
108-
kernel_size: "2-8"
108+
kernel_size: "1-8"
109109
stride: "1-4"
110110
}
111111
pool_type: avg

targets/DPUCVDX8G_ISA0_B8192C32B3.prototxt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ conv_engine {
7878
}
7979
conv_limit {
8080
kernel_size: "1-16"
81-
stride: "1-4"
81+
stride: "1-8"
8282
}
8383
}
8484
eltwise_engine {
@@ -105,7 +105,7 @@ pool_engine {
105105
}
106106
pool_type: max
107107
max_limit {
108-
kernel_size: "2-8"
108+
kernel_size: "1-8"
109109
stride: "1-4"
110110
}
111111
pool_type: avg

0 commit comments

Comments
 (0)