Skip to content

Commit 894f260

Browse files
committed
Fix ggml-cuda using a driver symbol in NO_VMM mode
1 parent 2739a71 commit 894f260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cuda/common.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void ggml_cuda_error(const char * stmt, const char * func, const char * file, in
108108

109109
#define CUBLAS_CHECK(err) CUDA_CHECK_GEN(err, CUBLAS_STATUS_SUCCESS, cublas_get_error_str)
110110

111-
#if !defined(GGML_USE_HIP)
111+
#if !defined(GGML_USE_HIP) && !defined(GGML_CUDA_NO_VMM)
112112
static const char * cu_get_error_str(CUresult err) {
113113
const char * err_str;
114114
cuGetErrorString(err, &err_str);

0 commit comments

Comments
 (0)