Skip to content

Commit 6962ac6

Browse files
committed
refine ggml-hexagon.cfg for the prebuilt binary libggmlop-skel.so
1 parent 5b21435 commit 6962ac6

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

scripts/build-run-android.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ HTP_ARCH_VERSION=v75
5757
HTP_ARCH_VERSION_a=V75
5858

5959
#8Elite
60-
#HTP_ARCH_VERSION=v79
61-
#HTP_ARCH_VERSION_a=V79
60+
HTP_ARCH_VERSION=v79
61+
HTP_ARCH_VERSION_a=V79
6262

6363
#running_params=" -mg 2 -ngl 99 -t 8 -fa 1 "
6464
running_params=" -mg 2 -ngl 99 -t 8 "
@@ -257,22 +257,23 @@ function build_ggml_hexagon_debug()
257257
build_arm64_debug
258258
}
259259

260+
#added on 05/31/2025, for purpose of non-tech factor
260261
function prepare_ggmlhexagon()
261262
{
262263
adb push ./scripts/ggml-hexagon.cfg ${REMOTE_PATH}/
263-
echo "adb push ${PROJECT_ROOT_PATH}/prebuilts/ggml-dsp/libggmlop-skel${HTP_ARCH_VERSION}.so ${REMOTE_PATH}/"
264+
echo "adb push ${PROJECT_ROOT_PATH}/prebuilts/ggml-dsp/libggmlop-skel${HTP_ARCH_VERSION}.so ${REMOTE_PATH}/libggmlop-skel.so"
264265
case "$HTP_ARCH_VERSION" in
265266
v69)
266-
adb push ${PROJECT_ROOT_PATH}/prebuilts/ggml-dsp/libggmlop-skel${HTP_ARCH_VERSION}.so ${REMOTE_PATH}/
267+
adb push ${PROJECT_ROOT_PATH}/prebuilts/ggml-dsp/libggmlop-skel${HTP_ARCH_VERSION}.so ${REMOTE_PATH}/libggmlop-skel.so
267268
;;
268269
v73)
269-
adb push ${PROJECT_ROOT_PATH}/prebuilts/ggml-dsp/libggmlop-skel${HTP_ARCH_VERSION}.so ${REMOTE_PATH}/
270+
adb push ${PROJECT_ROOT_PATH}/prebuilts/ggml-dsp/libggmlop-skel${HTP_ARCH_VERSION}.so ${REMOTE_PATH}/libggmlop-skel.so
270271
;;
271272
v75)
272-
adb push ${PROJECT_ROOT_PATH}/prebuilts/ggml-dsp/libggmlop-skel${HTP_ARCH_VERSION}.so ${REMOTE_PATH}/
273+
adb push ${PROJECT_ROOT_PATH}/prebuilts/ggml-dsp/libggmlop-skel${HTP_ARCH_VERSION}.so ${REMOTE_PATH}/libggmlop-skel.so
273274
;;
274275
v79)
275-
adb push ${PROJECT_ROOT_PATH}/prebuilts/ggml-dsp/libggmlop-skel${HTP_ARCH_VERSION}.so ${REMOTE_PATH}/
276+
adb push ${PROJECT_ROOT_PATH}/prebuilts/ggml-dsp/libggmlop-skel${HTP_ARCH_VERSION}.so ${REMOTE_PATH}/libggmlop-skel.so
276277
;;
277278
*)
278279
show_usage

scripts/ggml-hexagon.cfg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#version of ggml-hexagon.cpp on ARM-AP side
33
version = "1.08"
44
#version of ggml-dsp.c on cDSP side
5-
ggmldsp_version = "0.63"
5+
ggmldsp_version = "0.96"
66

77
#0: HEXAGON_BACKEND_QNNCPU
88
#1: HEXAGON_BACKEND_QNNGPU
@@ -34,7 +34,7 @@ hwaccel_approach = 2
3434
#quatized type mulmat works fine through QNNNPU at the moment
3535
#quatized type mulmat doesn't works fine through HWACCEL_CDSP at the moment
3636
#this item will make mulmat performance comprision easily
37-
enable_q_mulmat = 0
37+
enable_q_mulmat = 1
3838

3939

4040
# enable/disable print tensors info in op function
@@ -80,12 +80,12 @@ precision_mode = "fp16"
8080
enable_rpc_ion_mempool = 1
8181

8282
#enable/disable offload all quantized type mulmat to cDSP
83-
enable_all_q_mulmat = 0
83+
enable_all_q_mulmat = 1
8484
#attention:
8585
#ensure enable_q_mulmat = 1 when set enable_all_q_mulmat = 1
8686

8787
#enable/disable multi-threading on cDSP side
8888
# 0 disable multi-threading on cDSP side
8989
# 1 disable multi-threading on cDSP side
9090
# 2-8 thread_counts on cDSP side
91-
thread_counts = 1
91+
thread_counts = 8

0 commit comments

Comments
 (0)