diff options
author | Max Ryabinin <mryabinin0@gmail.com> | 2022-08-24 18:43:18 +0300 |
---|---|---|
committer | Max Ryabinin <mryabinin0@gmail.com> | 2022-08-24 18:43:18 +0300 |
commit | 9fc0ab415c564d278b673c694de9b884ea1121d2 (patch) | |
tree | 21686a913ca9801ddf9b5a31008550967ec822e6 /bitsandbytes/cuda_setup/paths.py | |
parent | 9d60b3c5279641ba936facd710c722ebe52fcf40 (diff) |
Remove unused code
Diffstat (limited to 'bitsandbytes/cuda_setup/paths.py')
-rw-r--r-- | bitsandbytes/cuda_setup/paths.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/bitsandbytes/cuda_setup/paths.py b/bitsandbytes/cuda_setup/paths.py index 9c565c7..610665f 100644 --- a/bitsandbytes/cuda_setup/paths.py +++ b/bitsandbytes/cuda_setup/paths.py @@ -5,20 +5,9 @@ from warnings import warn from ..utils import print_stderr from .env_vars import get_potentially_lib_path_containing_env_vars - CUDA_RUNTIME_LIB: str = "libcudart.so" -def purge_unwanted_semicolon(tentative_path: Path) -> Path: - """ - Special function to handle the following exception: - __LMOD_REF_COUNT_PATH=/sw/cuda/11.6.2/bin:2;/mmfs1/home/dettmers/git/sched/bin:1;/mmfs1/home/dettmers/data/anaconda3/bin:1;/mmfs1/home/dettmers/data/anaconda3/condabin:1;/mmfs1/home/dettmers/.local/bin:1;/mmfs1/home/dettmers/bin:1;/usr/local/bin:1;/usr/bin:1;/usr/local/sbin:1;/usr/sbin:1;/mmfs1/home/dettmers/.fzf/bin:1;/mmfs1/home/dettmers/data/local/cuda-11.4/bin:1 - """ - # if ';' in str(tentative_path): - # path_as_str, _ = str(tentative_path).split(';') - pass - - def extract_candidate_paths(paths_list_candidate: str) -> Set[Path]: return {Path(ld_path) for ld_path in paths_list_candidate.split(":") if ld_path} @@ -117,8 +106,6 @@ def determine_cuda_runtime_lib_path() -> Union[Path, None]: if env_var not in {"CONDA_PREFIX", "LD_LIBRARY_PATH"} } - - cuda_runtime_libs = set() for env_var, value in remaining_candidate_env_vars.items(): cuda_runtime_libs.update(find_cuda_lib_in(value)) |