Skip to content

Commit c2dba04

Browse files
committed
fix hip
1 parent 5b6b4ac commit c2dba04

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ggml-cuda.cu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@
8282
#define cudaGetDeviceProperties hipGetDeviceProperties
8383
#define cudaGetErrorString hipGetErrorString
8484
#define cudaGetLastError hipGetLastError
85+
#define cudaHostRegister hipHostRegister
86+
#define cudaHostRegisterPortable hipHostRegisterPortable
87+
#define cudaHostRegisterReadOnly hipHostRegisterReadOnly
88+
#define cudaHostUnregister hipHostUnregister
8589
#define cudaLaunchHostFunc hipLaunchHostFunc
8690
#ifdef GGML_HIP_UMA
8791
#define cudaMalloc hipMallocManaged

0 commit comments

Comments
 (0)