mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 03:24:30 +00:00
fix: reclaim before accepting wrapped Vulkan iGPU memory estimates (#2124)
This commit is contained in:
1 parent
7e3e20a50b
commit
60423ab5f6
2 files changed
+26
-4
No files matched your search
@@ -152,6 +152,7 @@ private:
|
||||
size_t required_budget_bytes = 0;
|
||||
size_t available_device_bytes = SIZE_MAX;
|
||||
size_t available_budget_bytes = SIZE_MAX;
|
||||
bool requires_reclamation = false;
|
||||
bool fits() const {
|
||||
return required_device_bytes <= available_device_bytes &&
|
||||
required_budget_bytes <= available_budget_bytes;
|
||||
|
||||
Reference in new issue
Block a user