ggml_gallocr_new_buft: Create a Graph Allocator for a Specific Buffer Type

View source: R/graph.R

ggml_gallocr_new_buftR Documentation

Create a Graph Allocator for a Specific Buffer Type

Description

Like ggml_gallocr_new, but allocates from the given buffer type rather than the CPU default – so a graph can be allocated in GPU memory.

Usage

ggml_gallocr_new_buft(buft)

Arguments

buft

Buffer type (e.g. from ggml_backend_get_default_buffer_type())

Value

Graph allocator object (external pointer)

See Also

ggml_gallocr_new, ggml_gallocr_alloc_graph


ggmlR documentation built on Oct. 23, 2026, 1:07 a.m.