Skip to content

Commit

Permalink
ggml-cuda: Fix HIP build by adding define for __trap (ggerganov#4569)
Browse files Browse the repository at this point in the history
Regression of 1398823
HIP doesn't have trap, only abort
  • Loading branch information
arlo-phoenix authored Dec 21, 2023
1 parent 8fe03ff commit 562cf22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ggml-cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 562cf22

Please sign in to comment.