diff --git a/setup.py b/setup.py index ad00317da08..cd04f5313aa 100644 --- a/setup.py +++ b/setup.py @@ -1226,23 +1226,6 @@ class build_ext(setuptools.command.build_ext.build_ext): target_dir.mkdir(parents=True, exist_ok=True) self.copy_file(export_lib, target_lib) - # In ROCm on Windows case copy rocblas and hipblaslt files into - # torch/lib/rocblas/library and torch/lib/hipblaslt/library - if str2bool(os.getenv("USE_ROCM")): - rocm_dir_path = Path(os.environ["ROCM_DIR"]) - rocm_bin_path = rocm_dir_path / "bin" - rocblas_dir = rocm_bin_path / "rocblas" - target_rocblas_dir = target_dir / "rocblas" - target_rocblas_dir.mkdir(parents=True, exist_ok=True) - self.copy_tree(rocblas_dir, str(target_rocblas_dir)) - - hipblaslt_dir = rocm_bin_path / "hipblaslt" - target_hipblaslt_dir = target_dir / "hipblaslt" - target_hipblaslt_dir.mkdir(parents=True, exist_ok=True) - self.copy_tree(hipblaslt_dir, str(target_hipblaslt_dir)) - else: - report("The specified environment variable does not exist.") - def build_extensions(self) -> None: self.create_compile_commands()