Skip to content

Commit 3873d40

Browse files
committed
apply fallback url changes from ggml-org#16987
ggml-org#16987
1 parent c65345b commit 3873d40

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ggml/src/ggml-hexagon/ggml-hexagon.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1704,10 +1704,12 @@ void ggml_hexagon_session::allocate(int dev_id) noexcept(false) {
17041704

17051705
int err = remote_session_control(FASTRPC_GET_URI, (void *) &u, sizeof(u));
17061706
if (err != AEE_SUCCESS) {
1707-
// Fallback: use default URI
1708-
snprintf(session_uri, sizeof(session_uri), "file:///libggml-htp-v%u.so?htp_iface_skel_handle_invoke&_modver=1.0&_dom=cdsp", opt_arch);
1707+
// fallback to single session uris
1708+
int htp_URI_domain_len = strlen(htp_uri) + MAX_DOMAIN_NAMELEN;
17091709

1710-
GGML_LOG_WARN("ggml-hex: failed to get URI for session %d : error 0x%x, fall back to %s\n", dev_id, err, session_uri);
1710+
snprintf(session_uri, htp_URI_domain_len, "%s%s", htp_uri, my_domain->uri);
1711+
1712+
GGML_LOG_WARN("ggml-hex: failed to get URI for session %d : error 0x%x. Falling back to single session URI: %s\n", dev_id, err, session_uri);
17111713
}
17121714
}
17131715

0 commit comments

Comments
 (0)