`cudaHostRegisterReadOnly` parameter was only introduced in CUDA 11.1
See this issue for more details:
https://github.com/ggerganov/whisper.cpp/issues/2007
return false;
}
+#if CUDART_VERSION >= 11100
cudaError_t err = cudaHostRegister(buffer, size, cudaHostRegisterPortable | cudaHostRegisterReadOnly);
if (err != cudaSuccess) {
// clear the error
return false;
}
return true;
+#else
+ return false;
+#endif
}
GGML_CALL void ggml_backend_cuda_unregister_host_buffer(void * buffer) {