From ea42bc5aa818f08bd14d00eb49f6805043957c37 Mon Sep 17 00:00:00 2001 From: Seunghoon Lee Date: Wed, 28 Feb 2024 18:17:54 +0900 Subject: [PATCH] cleanup --- installer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer.py b/installer.py index a132b7e36..8b7aa18cc 100644 --- a/installer.py +++ b/installer.py @@ -481,7 +481,6 @@ def check_torch(): if args.use_zluda: torch_command = os.environ.get('TORCH_COMMAND', 'torch==2.2.0 torchvision --index-url https://download.pytorch.org/whl/cu118') log.warning("ZLUDA support: experimental") - paths = os.environ.get('PATH', '.') zluda_need_dll_patch = is_windows and not installed('torch') zluda_path = find_zluda() if zluda_path is None: @@ -500,8 +499,9 @@ def check_torch(): zluda_path = os.path.abspath('./.zluda') os.remove('_zluda') log.debug(f'Found ZLUDA in {zluda_path}') + paths = os.environ.get('PATH', '.') if zluda_path not in paths: - os.environ['PATH'] += ';' + zluda_path + os.environ['PATH'] = paths + ';' + zluda_path elif is_windows: # TODO TBD after ROCm for Windows is released log.warning("HIP SDK is detected, but no Torch release for Windows available") log.info("For ZLUDA support specify '--use-zluda'")