This commit is contained in:
slaren 2024-03-19 23:44:04 +01:00
parent 9c72e1dc83
commit 5b04360420

View file

@ -666,11 +666,12 @@ struct ggml_backend_cuda_context {
std::unique_ptr<ggml_cuda_pool> pools[GGML_CUDA_MAX_DEVICES];
static std::unique_ptr<ggml_cuda_pool> new_pool_for_device(int device) {
#if !defined(GGML_USE_HIPBLAS)
if (get_cuda_global_info().devices[device].vmm) {
return std::unique_ptr<ggml_cuda_pool>(new ggml_cuda_pool_vmm(device));
} else {
return std::unique_ptr<ggml_cuda_pool>(new ggml_cuda_pool_leg(device));
}
#endif
return std::unique_ptr<ggml_cuda_pool>(new ggml_cuda_pool_leg(device));
}
ggml_cuda_pool & pool(int device) {