@@ -212,12 +212,12 @@ def find_cuda_lib_in(paths_list_candidate: str) -> Set[Path]:
212212def warn_in_case_of_duplicates (results_paths : Set [Path ]) -> None :
213213 if len (results_paths ) > 1 :
214214 warning_msg = (
215- f"Found duplicate { CUDA_RUNTIME_LIB } files: { results_paths } .. "
215+ f"Found duplicate { CUDA_RUNTIME_LIBS } files: { results_paths } .. "
216216 "We'll flip a coin and try one of these, in order to fail forward.\n "
217217 "Either way, this might cause trouble in the future:\n "
218218 "If you get `CUDA error: invalid device function` errors, the above "
219219 "might be the cause and the solution is to make sure only one "
220- f"{ CUDA_RUNTIME_LIB } in the paths that we search based on your env." )
220+ f"{ CUDA_RUNTIME_LIBS } in the paths that we search based on your env." )
221221 CUDASetup .get_instance ().add_log_entry (warning_msg , is_warning = True )
222222
223223
@@ -245,7 +245,7 @@ def determine_cuda_runtime_lib_path() -> Union[Path, None]:
245245 return next (iter (conda_cuda_libs ))
246246
247247 CUDASetup .get_instance ().add_log_entry (f'{ candidate_env_vars ["CONDA_PREFIX" ]} did not contain '
248- f'{ CUDA_RUNTIME_LIB } as expected! Searching further paths...' , is_warning = True )
248+ f'{ CUDA_RUNTIME_LIBS } as expected! Searching further paths...' , is_warning = True )
249249
250250 if "LD_LIBRARY_PATH" in candidate_env_vars :
251251 lib_ld_cuda_libs = find_cuda_lib_in (candidate_env_vars ["LD_LIBRARY_PATH" ])
@@ -255,7 +255,7 @@ def determine_cuda_runtime_lib_path() -> Union[Path, None]:
255255 warn_in_case_of_duplicates (lib_ld_cuda_libs )
256256
257257 CUDASetup .get_instance ().add_log_entry (f'{ candidate_env_vars ["LD_LIBRARY_PATH" ]} did not contain '
258- f'{ CUDA_RUNTIME_LIB } as expected! Searching further paths...' , is_warning = True )
258+ f'{ CUDA_RUNTIME_LIBS } as expected! Searching further paths...' , is_warning = True )
259259
260260 remaining_candidate_env_vars = {
261261 env_var : value for env_var , value in candidate_env_vars .items ()
0 commit comments