mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
hip_visible_devices
This commit is contained in:
@@ -502,6 +502,8 @@ def install_rocm_zluda(torch_command):
|
||||
error = e
|
||||
log.warning(f'Failed to install ZLUDA: {e}')
|
||||
if error is None:
|
||||
if args.device_id is not None:
|
||||
os.environ['HIP_VISIBLE_DEVICES'] = args.device_id
|
||||
try:
|
||||
zluda_installer.load(zluda_path)
|
||||
torch_command = os.environ.get('TORCH_COMMAND', 'torch==2.3.0 torchvision --index-url https://download.pytorch.org/whl/cu118')
|
||||
|
||||
Reference in New Issue
Block a user