From a9071940608d20736e9b15a79bc186712fe4c2fb Mon Sep 17 00:00:00 2001 From: arlo-phoenix Date: Thu, 21 Dec 2023 19:04:27 +0100 Subject: [PATCH] ggml-cuda: Fix HIP build by adding define for __trap Regression of 139882392258671ffe5acdfcadc0bc08572d6eef HIP doesn't have trap, only abort --- ggml-cuda.cu | 1 + 1 file changed, 1 insertion(+) diff --git a/ggml-cuda.cu b/ggml-cuda.cu index 036668bfd..61d92d7ef 100644 --- a/ggml-cuda.cu +++ b/ggml-cuda.cu @@ -80,6 +80,7 @@ #define cudaStreamWaitEvent(stream, event, flags) hipStreamWaitEvent(stream, event, flags) #define cudaStream_t hipStream_t #define cudaSuccess hipSuccess +#define __trap abort #else #include #include