PulseAugur
EN
LIVE 00:44:53

llama.cpp optimizes CUDA performance by caching device type

The llama.cpp project released version b12819, which includes an optimization for CUDA by caching the device type at initialization. This change aims to reduce the overhead of repeatedly querying device properties, which previously took up to 1 millisecond per query and occurred dozens of times per token when using multiple GPUs. The update, co-authored by Noah Oksuz and Johannes Gaessler, addresses a performance bottleneck identified in earlier versions. AI

IMPACT Improves the efficiency of running large language models locally on consumer hardware.

RANK_REASON This is a software update for a specific tool, not a frontier model release or significant industry event.

Read on llama.cpp — Releases →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

llama.cpp optimizes CUDA performance by caching device type

COVERAGE [1]

  1. llama.cpp — Releases TIER_1 English(EN) · NoahOksuz ·

    b12819: CUDA: cache the device type at init (#33142)

    <ul> <li>CUDA: cache the device type at init</li> </ul> <p>ggml_backend_cuda_device_get_type called cudaGetDeviceProperties on every<br /> call, which takes ~0.7-1 ms with the CUDA 12 runtime. With tensor<br /> overrides on multiple GPUs the scheduler queries the device type for …