Skip to content

UPSTREAM PR #16816: [bug fix] initialise buffer.device in ggml_hexagon_session#2

Closed
DajanaV wants to merge 1 commit intomainfrom
upstream-PR16816-branch_l3utterfly-patch-2
Closed

UPSTREAM PR #16816: [bug fix] initialise buffer.device in ggml_hexagon_session#2
DajanaV wants to merge 1 commit intomainfrom
upstream-PR16816-branch_l3utterfly-patch-2

Conversation

@DajanaV
Copy link
Copy Markdown
Collaborator

@DajanaV DajanaV commented Oct 28, 2025

Mirrored from ggml-org/llama.cpp#16816

It seems buffer_type.device and repack_buffer_type.device remains uninitialised.

This causes an sporadic crash at ggml_backend_dev_get_props(dev, &props); at llama-model.cpp:6184.

I believe ggml_hexagon_session should always be initialised with the device it corresponds to?

The original code works fine when ran via the cli, however, the crash becomes apparent when bundled into a consumer facing APK.

This fix is tested to fix this issue (running from packaged APK, S25+ Ultra)

@DajanaV DajanaV force-pushed the main branch 4 times, most recently from 1983956 to 326a60a Compare October 29, 2025 12:13
@DajanaV DajanaV added the dev-stale Stale dev environment — dashboard not accessible label Oct 30, 2025
@DajanaV DajanaV deleted the branch main October 30, 2025 15:25
@DajanaV DajanaV closed this Oct 30, 2025
@DajanaV DajanaV deleted the upstream-PR16816-branch_l3utterfly-patch-2 branch October 30, 2025 15:26
loci-dev pushed a commit that referenced this pull request Nov 30, 2025
mtmd: DeepseekOCR Implement DeepSeek3B-MoE-A570M (LM component)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev-stale Stale dev environment — dashboard not accessible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants