Skip to content

sycl: Add optional USM system allocations#22526

Open
ifdu wants to merge 1 commit intoggml-org:masterfrom
ifdu:svm
Open

sycl: Add optional USM system allocations#22526
ifdu wants to merge 1 commit intoggml-org:masterfrom
ifdu:svm

Conversation

@ifdu
Copy link
Copy Markdown

@ifdu ifdu commented Apr 29, 2026

Overview

This introduces an optional feature to allocate large GPU buffers (≥ 1GB) using USM system allocations if supported by the device. It allows using buffers from the system allocator then letting the system manage memory migrations between host and device as necessary.

This feature is disabled by default and requires the GGML_SYCL_USM_SYSTEM environment variable to enable. If USM system allocations are not supported by the device or the system, we fallback to regular allocations.

Requirements

This introduces an optional feature to allocate large GPU buffers (≥ 1GB)
using USM system allocations if supported by the device. It allows using
buffers from the system allocator then letting the system manage memory
migrations between host and device as necessary.

This feature is disabled by default and requires the GGML_SYCL_USM_SYSTEM
environment variable to enable. If USM system allocations are not supported
by the device or the system, we fallback to regular allocations.

Signed-off-by: Francois Dugast <francois.dugast@intel.com>
@ifdu ifdu requested a review from a team as a code owner April 29, 2026 15:34
@arthw
Copy link
Copy Markdown
Contributor

arthw commented Apr 29, 2026

@ifdu
I will verify and review it after coming long public vacation (5 days).

Thank you for your contribution!

@github-actions github-actions Bot added documentation Improvements or additions to documentation ggml changes relating to the ggml tensor library for machine learning SYCL https://en.wikipedia.org/wiki/SYCL - GPU programming language labels Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation ggml changes relating to the ggml tensor library for machine learning SYCL https://en.wikipedia.org/wiki/SYCL - GPU programming language

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants