Skip to content

Commit 4265a87

Browse files
authored
cuda : avoid cuGetErrorString (#13791)
ggml-ci
1 parent 6f180b9 commit 4265a87

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
@@ -168,7 +168,7 @@ void ggml_cuda_error(const char * stmt, const char * func, const char * file, in
168168

169169
#define CUBLAS_CHECK(err) CUDA_CHECK_GEN(err, CUBLAS_STATUS_SUCCESS, cublas_get_error_str)
170170

171-
#if !defined(GGML_USE_HIP)
171+
#if !defined(GGML_USE_HIP) && !defined(GGML_CUDA_NO_VMM)
172172
static const char * cu_get_error_str(CUresult err) {
173173
const char * err_str;
174174
cuGetErrorString(err, &err_str);

0 commit comments

Comments
 (0)