mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-12 03:31:46 +00:00
cuda : disable unused cudaLaunchHostFunc code (#6078)
This commit is contained in:
parent
46acb36767
commit
3020327f6c
@ -11541,6 +11541,7 @@ static void ggml_backend_cuda_event_wait(ggml_backend_t backend, ggml_backend_ev
|
|||||||
if (ggml_backend_is_cuda(event->backend)) {
|
if (ggml_backend_is_cuda(event->backend)) {
|
||||||
CUDA_CHECK(cudaStreamWaitEvent(g_cudaStreams[cuda_ctx->device][0], (cudaEvent_t)event->context, 0));
|
CUDA_CHECK(cudaStreamWaitEvent(g_cudaStreams[cuda_ctx->device][0], (cudaEvent_t)event->context, 0));
|
||||||
} else {
|
} else {
|
||||||
|
#if 0
|
||||||
// untested
|
// untested
|
||||||
auto wait_fn = [](void * user_data) {
|
auto wait_fn = [](void * user_data) {
|
||||||
ggml_backend_event_t event = (ggml_backend_event_t)user_data;
|
ggml_backend_event_t event = (ggml_backend_event_t)user_data;
|
||||||
@ -11548,6 +11549,8 @@ static void ggml_backend_cuda_event_wait(ggml_backend_t backend, ggml_backend_ev
|
|||||||
};
|
};
|
||||||
|
|
||||||
CUDA_CHECK(cudaLaunchHostFunc(g_cudaStreams[cuda_ctx->device][0], wait_fn, event));
|
CUDA_CHECK(cudaLaunchHostFunc(g_cudaStreams[cuda_ctx->device][0], wait_fn, event));
|
||||||
|
#endif
|
||||||
|
GGML_ASSERT(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user