guard against zluda and directml on non-windows platforms

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-09-08 08:38:47 -04:00
parent a6f55eb9ba
commit 78ab98b92e
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -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
+10
View File
@@ -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: