From 8dd90131d38054abc056822d8bd13940d104a52e Mon Sep 17 00:00:00 2001 From: JohannesGaessler Date: Sun, 31 Dec 2023 17:51:53 +0100 Subject: [PATCH] try HIP fix --- ggml-cuda.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ggml-cuda.cu b/ggml-cuda.cu index f467f7b78..3f0c3d892 100644 --- a/ggml-cuda.cu +++ b/ggml-cuda.cu @@ -9316,8 +9316,8 @@ static ggml_tensor_extra_gpu * ggml_cuda_alloc_temp_tensor_extra() { if (g_temp_tensor_extras == nullptr) { g_temp_tensor_extras = new ggml_tensor_extra_gpu[GGML_CUDA_MAX_NODES]; for (int64_t i = 0; i < GGML_CUDA_MAX_NODES; ++i) { - CUDA_CHECK(cudaEventCreate(&g_temp_tensor_extras[i].src0_done, cudaEventDisableTiming)); - CUDA_CHECK(cudaEventCreate(&g_temp_tensor_extras[i].src1_done, cudaEventDisableTiming)); + CUDA_CHECK(cudaEventCreateWithFlags(&g_temp_tensor_extras[i].src0_done, cudaEventDisableTiming)); + CUDA_CHECK(cudaEventCreateWithFlags(&g_temp_tensor_extras[i].src1_done, cudaEventDisableTiming)); } }