Update ggml-cuda.cu

Co-authored-by: Johannes Gäßler <johannesg@5d6.de>
This commit is contained in:
slaren 2023-12-24 12:13:55 +01:00 committed by GitHub
parent b9c5a6e74a
commit 3081c4e768
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6836,7 +6836,7 @@ void ggml_init_cublas() {
alloc_prop.location.id = id; alloc_prop.location.id = id;
CU_CHECK(cuMemGetAllocationGranularity(&g_device_caps[id].vmm_granularity, &alloc_prop, CU_MEM_ALLOC_GRANULARITY_MINIMUM)); CU_CHECK(cuMemGetAllocationGranularity(&g_device_caps[id].vmm_granularity, &alloc_prop, CU_MEM_ALLOC_GRANULARITY_MINIMUM));
} }
#endif #endif // !defined(GGML_USE_HIPBLAS)
g_device_caps[id].vmm = !!device_vmm; g_device_caps[id].vmm = !!device_vmm;
cudaDeviceProp prop; cudaDeviceProp prop;