Spaces:
Sleeping
Sleeping
cuda : avoid cuGetErrorString (llama/13791)
Browse files
ggml/src/ggml-cuda/common.cuh
CHANGED
|
@@ -168,7 +168,7 @@ void ggml_cuda_error(const char * stmt, const char * func, const char * file, in
|
|
| 168 |
|
| 169 |
#define CUBLAS_CHECK(err) CUDA_CHECK_GEN(err, CUBLAS_STATUS_SUCCESS, cublas_get_error_str)
|
| 170 |
|
| 171 |
-
#if !defined(GGML_USE_HIP)
|
| 172 |
static const char * cu_get_error_str(CUresult err) {
|
| 173 |
const char * err_str;
|
| 174 |
cuGetErrorString(err, &err_str);
|
|
|
|
| 168 |
|
| 169 |
#define CUBLAS_CHECK(err) CUDA_CHECK_GEN(err, CUBLAS_STATUS_SUCCESS, cublas_get_error_str)
|
| 170 |
|
| 171 |
+
#if !defined(GGML_USE_HIP) && !defined(GGML_CUDA_NO_VMM)
|
| 172 |
static const char * cu_get_error_str(CUresult err) {
|
| 173 |
const char * err_str;
|
| 174 |
cuGetErrorString(err, &err_str);
|