parameters: (use_cuda=False)
return_statement: return paddle_lib_dirs
docstring: Return Paddle necessary library dir path.
docstring_summary: Return Paddle necessary library dir path.
docstring_tokens: Return Paddle necessary library dir path .
function: def find_paddle_libraries(use_cuda=False):
      """
      Return Paddle necessary library dir path.
      """
      # pythonXX/site-packages/paddle/libs
      paddle_lib_dirs = [get_lib()]
  
      if use_cuda:
          if core.is_compiled_with_rocm():
              rocm_lib_dir = find_rocm_libraries()
              paddle_lib_dirs.extend(rocm_lib_dir)
          else:
              cuda_lib_dir = find_cuda_libraries()
              paddle_lib_dirs.extend(cuda_lib_dir)
  
      # add `paddle/fluid` to search `core_avx.so` or `core_noavx.so`
      paddle_lib_dirs.append(_get_fluid_path())
  
      return paddle_lib_dirs
function_tokens: def find_paddle_libraries ( use_cuda = False ) : # pythonXX/site-packages/paddle/libs paddle_lib_dirs = [ get_lib ( ) ] if use_cuda : if core . is_compiled_with_rocm ( ) : rocm_lib_dir = find_rocm_libraries ( ) paddle_lib_dirs . extend ( rocm_lib_dir ) else : cuda_lib_dir = find_cuda_libraries ( ) paddle_lib_dirs . extend ( cuda_lib_dir ) # add `paddle/fluid` to search `core_avx.so` or `core_noavx.so` paddle_lib_dirs . append ( _get_fluid_path ( ) ) return paddle_lib_dirs