github ggml-org/llama.cpp b7844

latest release: b7845
6 hours ago
Details

[CUDA] Reduce CPU-side stalls due to the CUDA command buffer being full (#19042)

  • [CUDA] Reduce CPU-side stalls due to the CUDA command buffer being full

With pipeline parallelism, during prompt processing, the CPU-side CUDA command buffer gets full, stalling the CPU. Due to this, enough work doesn't get submitted to the GPU, causing bubbles in the GPU timeline.
Fix this by setting the CUDA environment variable CUDA_SCALE_LAUNCH_QUEUES to 4x to increase the command buffer size.

  • Set the env variable in the CUDA backend registry allocation

  • Add link to PR in code comment

  • Remove warning logs and update documentation

macOS/iOS:

Linux:

Windows:

openEuler:

Don't miss a new llama.cpp release

NewReleases is sending notifications on new releases.