mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2025-12-08 21:44:33 +08:00
Merge 970c107ff8396416162e2c568475b6bdaa8066a7 into fd271dedfde6e192a1f1a025521070876e89e04a
This commit is contained in:
commit
36db8cdecc
@ -572,6 +572,9 @@ if args.reserve_vram is not None:
|
||||
EXTRA_RESERVED_VRAM = args.reserve_vram * 1024 * 1024 * 1024
|
||||
logging.debug("Reserving {}MB vram for other applications.".format(EXTRA_RESERVED_VRAM / (1024 * 1024)))
|
||||
|
||||
if is_nvidia() and not args.disable_cuda_malloc:
|
||||
EXTRA_RESERVED_VRAM += 32 * 1024 * 1024
|
||||
|
||||
def extra_reserved_memory():
|
||||
return EXTRA_RESERVED_VRAM
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user