mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
guard against zluda and directml on non-windows platforms
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -73,6 +73,7 @@ Also, there are quite a few offloading improvements and many quality-of-life cha
|
||||
- add `--new` command line flag to enable testing of new packages without breaking existing installs
|
||||
- downgrade rocm to `torch==2.7.1`
|
||||
- set the minimum supported rocm version on linux to `rocm==6.0`
|
||||
- disallow `zluda` and `directml` on non-windows platforms
|
||||
- **OpenVINO**
|
||||
- update to `openvino==2025.3.0`
|
||||
- add deprecation warning for Python 3.9
|
||||
|
||||
@@ -909,6 +909,16 @@ def check_torch():
|
||||
# log.debug(f'Torch allowed: cuda={allow_cuda} rocm={allow_rocm} ipex={allow_ipex} diml={allow_directml} openvino={allow_openvino}')
|
||||
torch_command = os.environ.get('TORCH_COMMAND', '')
|
||||
|
||||
if sys.platform != 'win32':
|
||||
if args.use_zluda:
|
||||
log.error('ZLUDA is only supported on Windows')
|
||||
if not args.ignore:
|
||||
sys.exit(1)
|
||||
if args.use_directml:
|
||||
log.error('DirectML is only supported on Windows')
|
||||
if not args.ignore:
|
||||
sys.exit(1)
|
||||
|
||||
if torch_command != '':
|
||||
pass
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user