mirror of
https://github.com/mudler/LocalAI.git
synced 2026-07-31 10:28:43 -04:00
* ⬆️ Update TheTom/llama-cpp-turboquant Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(turboquant): refresh HIP compatibility patch The updated fork now carries its own HIP-safe peer-copy path, so the old hunk no longer applies. Keep only the event-creation compatibility change that the fork still needs. Assisted-by: Codex:gpt-5 [Codex] --------- Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: mudler <2420543+mudler@users.noreply.github.com> Co-authored-by: localai-org-maint-bot <306269227+localai-org-maint-bot@users.noreply.github.com>
24 lines
1015 B
Diff
24 lines
1015 B
Diff
hip: port the turboquant CUDA additions that ggml's HIP shim doesn't cover
|
|
|
|
The turboquant fork creates backend events with plain cudaEventCreate,
|
|
which ggml's HIP shim does not alias (it only aliases
|
|
cudaEventCreateWithFlags). Use cudaEventCreateWithFlags(...,
|
|
cudaEventDisableTiming), exactly as the rest of this file does.
|
|
|
|
CUDA builds are unaffected. Drop this patch once the fork HIP-ports the
|
|
event creation; apply-patches.sh fails fast if the anchor goes stale.
|
|
|
|
diff --git a/ggml/src/ggml-cuda/ggml-cuda.cu b/ggml/src/ggml-cuda/ggml-cuda.cu
|
|
index 7d35c1a..2908acb 100644
|
|
--- a/ggml/src/ggml-cuda/ggml-cuda.cu
|
|
+++ b/ggml/src/ggml-cuda/ggml-cuda.cu
|
|
@@ -5795,7 +5795,7 @@ static ggml_backend_event_t ggml_backend_cuda_device_event_new(ggml_backend_dev_
|
|
ggml_cuda_set_device(dev_ctx->device);
|
|
|
|
cudaEvent_t event;
|
|
- CUDA_CHECK(cudaEventCreate(&event));
|
|
+ CUDA_CHECK(cudaEventCreateWithFlags(&event, cudaEventDisableTiming));
|
|
|
|
return new ggml_backend_event {
|
|
/* .device = */ dev,
|