Skip to content

Commit

Permalink
ZLUDA 3.8.6
Browse files Browse the repository at this point in the history
  • Loading branch information
lshqqytiger committed Jan 10, 2025
1 parent c2e8802 commit 361583c
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions modules/zluda_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import ctypes
import shutil
import zipfile
import subprocess
import urllib.request
from typing import Optional, Union
from modules import rocm
Expand All @@ -17,7 +16,6 @@
}
HIPSDK_TARGETS = ['rocblas.dll', 'rocsolver.dll']
ZLUDA_TARGETS = ('nvcuda.dll', 'nvml.dll',)
version: Union[str, None] = None
experimental_hipBLASLt_support: bool = False
default_agent: Union[rocm.Agent, None] = None

Expand All @@ -32,7 +30,6 @@ def set_default_agent(agent: rocm.Agent):


def install(zluda_path: os.PathLike) -> None:

if os.path.exists(zluda_path):
__initialize(zluda_path)
return
Expand Down Expand Up @@ -103,14 +100,8 @@ def get_default_torch_version(agent: Optional[rocm.Agent]) -> str:


def __initialize(zluda_path: os.PathLike):
global version, experimental_hipBLASLt_support # pylint: disable=global-statement

if version is not None:
return

process = subprocess.run(["zluda", "--version"], cwd=zluda_path, shell=True, check=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
version = process.stdout.decode(encoding="utf8", errors="ignore")[6:].strip()
experimental_hipBLASLt_support = version == "3.8.5.pre1"
global experimental_hipBLASLt_support # pylint: disable=global-statement
experimental_hipBLASLt_support = os.path.exists(os.path.join(zluda_path, 'cublasLt.dll'))

if experimental_hipBLASLt_support:
HIPSDK_TARGETS.append('hipblaslt.dll')
Expand Down

0 comments on commit 361583c

Please sign in to comment.