ggml-cuda: Fix HIP build by adding define for __trap

Regression of 1398823922
HIP doesn't have trap, only abort
This commit is contained in:
arlo-phoenix 2023-12-21 19:04:27 +01:00
parent 8fe03ffdda
commit a907194060

View file

@ -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 <cuda_runtime.h>
#include <cublas_v2.h>