mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-09-11 20:17:30 +00:00
Add a command line argument to enable backend:cudaMallocAsync
This commit is contained in:
@@ -204,7 +204,7 @@ print(f"Set vram state to: {vram_state.name}")
|
||||
def get_torch_device_name(device):
|
||||
if hasattr(device, 'type'):
|
||||
if device.type == "cuda":
|
||||
return "{} {}".format(device, torch.cuda.get_device_name(device))
|
||||
return "{} {} : {}".format(device, torch.cuda.get_device_name(device), torch.cuda.get_allocator_backend())
|
||||
else:
|
||||
return "{}".format(device.type)
|
||||
else:
|
||||
|
Reference in New Issue
Block a user