Repository navigation
OpenVINO: PRD-compliant device enumeration and memory reporting for --list-devices - #256
Merged
ravi9 merged 2 commits intoSep 29, 2026
Conversation
Owner
|
@haarika-madaka - All our dev happen in ravi9:dev_backend_openvino. So dev PRs need to be merged into it. |
haarika-madaka
force-pushed
the
feat/openvino-list-devices
branch
from
August 7, 2026 02:00
e87e859 to
cdb0cf3
Compare
wine99
force-pushed
the
dev_backend_openvino
branch
3 times, most recently
from
August 18, 2026 01:01
678ba21 to
16f69ac
Compare
ravi9
force-pushed
the
dev_backend_openvino
branch
from
August 18, 2026 14:43
eb54a50 to
04b5691
Compare
haarika-madaka
force-pushed
the
feat/openvino-list-devices
branch
from
August 24, 2026 05:13
cdb0cf3 to
e7e55e5
Compare
Author
|
@ravi9 Can you please take a look at this PR, I have rebased appropriately. Thanks |
ravi9
force-pushed
the
dev_backend_openvino
branch
2 times, most recently
from
August 25, 2026 16:53
d691121 to
407e209
Compare
ravi9
force-pushed
the
feat/openvino-list-devices
branch
from
August 25, 2026 20:44
e7e55e5 to
c349ad1
Compare
wine99
force-pushed
the
dev_backend_openvino
branch
from
August 28, 2026 01:36
01d5a57 to
40d3fdd
Compare
ravi9
force-pushed
the
dev_backend_openvino
branch
2 times, most recently
from
September 3, 2026 21:10
fd9bc04 to
33237ab
Compare
ravi9
force-pushed
the
dev_backend_openvino
branch
from
September 14, 2026 17:49
37b4e1d to
926ef68
Compare
wine99
force-pushed
the
dev_backend_openvino
branch
from
September 16, 2026 08:07
0365b00 to
37b53fd
Compare
ravi9
force-pushed
the
dev_backend_openvino
branch
from
September 17, 2026 17:37
40a2a96 to
972d231
Compare
mostafafaheem
force-pushed
the
feat/openvino-list-devices
branch
from
September 20, 2026 17:30
c349ad1 to
a5603ff
Compare
ravi9
marked this pull request as draft
September 22, 2026 16:07
haarika-madaka
force-pushed
the
feat/openvino-list-devices
branch
from
September 22, 2026 16:41
a5603ff to
0d15bbe
Compare
Owner
|
Related: ggml-org#29124 |
haarika-madaka
marked this pull request as ready for review
September 28, 2026 03:32
- Only the device selected by GGML_OPENVINO_DEVICE reports as GPU; the other OpenVINO devices report as IGPU so llama.cpp does not offload to them. Initializing a non-selected device logs a warning. - Name devices OPENVINO<i> again and show the OpenVINO id in the description. Raw "CPU" names shadowed the ggml CPU backend. - Support GPU.N: create the OpenCL queue on OpenVINO's own context for the selected device, and replace "GPU"/"NPU" string comparisons with ggml_openvino_is_gpu()/ggml_openvino_is_npu(). - An unavailable GGML_OPENVINO_DEVICE is now an error that lists the available devices, instead of silently falling back to CPU. - Memory: cap iGPU/NPU free memory at system available memory, fall back to system memory instead of 0/0 when the plugin lacks memory properties, and ignore host USM allocations in GPU usage. - Initialize the device config once under a lock, even if OpenCL setup fails. - Fix supports_op return type for non-selected devices (build error).
ravi9
force-pushed
the
feat/openvino-list-devices
branch
from
September 29, 2026 00:41
0d15bbe to
0bbd7f1
Compare
This was referenced Sep 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements PRD-compliant OpenVINO device enumeration and memory reporting for
--list-devices, scoped toggml/src/ggml-openvino/only.What changed
get_available_devices().AUTO,MULTI,HETERO.GGML_OPENVINO_DEVICEwith fallback).OpenVINO: using device <...>falseinsupports_opfor non-selected registered devices.FULL_DEVICE_NAMEas device description.<FULL_DEVICE_NAME> (NPU <DEVICE_ARCHITECTURE>)GPU_DEVICE_TOTAL_MEM_SIZEtotal - sum(GPU_MEMORY_STATISTICS allocations)NPU_DEVICE_TOTAL_MEM_SIZEtotal - NPU_DEVICE_ALLOC_MEM_SIZE0 MiBtotal and0 MiBfree for that device.GPU_DEVICE_MAX_ALLOC_MEM_SIZE.Scope
Changes are limited to:
ggml/src/ggml-openvino/ggml-openvino.cppggml/src/ggml-openvino/ggml-openvino-extra.cppggml/src/ggml-openvino/ggml-openvino-extra.hNo changes outside OpenVINO backend files.
Validation
Built and ran:
Observed output format:
Notes