diff options
author | Tom Aarsen <Cubiegamedev@gmail.com> | 2022-10-26 09:37:16 +0200 |
---|---|---|
committer | Tom Aarsen <Cubiegamedev@gmail.com> | 2022-10-26 09:37:16 +0200 |
commit | c584482f1f13e073dac714815f2d439fd66699d1 (patch) | |
tree | 2fe7a44e54149ef3621e5acabc5bba098b96a0d4 /bitsandbytes/cuda_setup/paths.py | |
parent | a371be302ddbdf3f36acef1a6fe365672099c9d9 (diff) |
Resolve cases of CUDASetup.get_instance not being called when used
Diffstat (limited to 'bitsandbytes/cuda_setup/paths.py')
-rw-r--r-- | bitsandbytes/cuda_setup/paths.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitsandbytes/cuda_setup/paths.py b/bitsandbytes/cuda_setup/paths.py index 3223359..3a5e65d 100644 --- a/bitsandbytes/cuda_setup/paths.py +++ b/bitsandbytes/cuda_setup/paths.py @@ -61,7 +61,7 @@ def warn_in_case_of_duplicates(results_paths: Set[Path]) -> None: "If you get `CUDA error: invalid device function` errors, the above " "might be the cause and the solution is to make sure only one " f"{CUDA_RUNTIME_LIB} in the paths that we search based on your env.") - CUDASetup.get_instance.add_log_entry(warning_msg, is_warning=True) + CUDASetup.get_instance().add_log_entry(warning_msg, is_warning=True) def determine_cuda_runtime_lib_path() -> Union[Path, None]: @@ -87,7 +87,7 @@ def determine_cuda_runtime_lib_path() -> Union[Path, None]: if conda_cuda_libs: return next(iter(conda_cuda_libs)) - CUDASetup.get_instance.add_log_entry(f'{candidate_env_vars["CONDA_PREFIX"]} did not contain ' + CUDASetup.get_instance().add_log_entry(f'{candidate_env_vars["CONDA_PREFIX"]} did not contain ' f'{CUDA_RUNTIME_LIB} as expected! Searching further paths...', is_warning=True) if "LD_LIBRARY_PATH" in candidate_env_vars: |