Răsfoiți Sursa

cuda : avoid cuGetErrorString (#13791)

ggml-ci
Georgi Gerganov 7 luni în urmă
părinte
comite
4265a87b59
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      ggml/src/ggml-cuda/common.cuh

+ 1 - 1
ggml/src/ggml-cuda/common.cuh

@@ -168,7 +168,7 @@ void ggml_cuda_error(const char * stmt, const char * func, const char * file, in
 
 #define CUBLAS_CHECK(err) CUDA_CHECK_GEN(err, CUBLAS_STATUS_SUCCESS, cublas_get_error_str)
 
-#if !defined(GGML_USE_HIP)
+#if !defined(GGML_USE_HIP) && !defined(GGML_CUDA_NO_VMM)
 static const char * cu_get_error_str(CUresult err) {
     const char * err_str;
     cuGetErrorString(err, &err_str);