From 405fc540d59d95f3e126a4a9913eeb21e711b346 Mon Sep 17 00:00:00 2001 From: Erik Garrison Date: Wed, 13 Dec 2023 19:18:07 +0100 Subject: [PATCH] avoid using deprecated ROCm hipMallocHost --- ggml-cuda.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml-cuda.cu b/ggml-cuda.cu index c959a63bd..3720cfae0 100644 --- a/ggml-cuda.cu +++ b/ggml-cuda.cu @@ -59,7 +59,7 @@ #define cudaGetErrorString hipGetErrorString #define cudaGetLastError hipGetLastError #define cudaMalloc(ptr, size) hipMallocManaged(ptr, size, hipMemAttachGlobal) -#define cudaMallocHost(ptr, size) hipMallocHost(ptr, size) +#define cudaMallocHost(ptr, size) hipHostMalloc(ptr, size) #define cudaMemcpy hipMemcpy #define cudaMemcpy2DAsync hipMemcpy2DAsync #define cudaMemcpyAsync hipMemcpyAsync