deepmd.lmp#

Register entry points for lammps-wheel.

Attributes#

Functions#

get_env(→ str)

Get the environment variable from given paths.

get_library_path(→ list[str])

Get library path from a module.

_get_tensorflow_library_paths(→ tuple[list[str], ...)

Get TensorFlow library and preload paths when TensorFlow is installed.

_get_pytorch_library_paths(→ list[str])

Get PyTorch library paths when PyTorch is installed.

_configure_lammps_environment(→ None)

Configure library paths for the installed LAMMPS backends.

get_op_dir(→ str)

Get the directory of the deepmd-kit OP library.

Module Contents#

deepmd.lmp.get_env(paths: list[str | None]) → str[source]#

Get the environment variable from given paths.

deepmd.lmp.get_library_path(module: str, filename: str) → list[str][source]#

Get library path from a module.

Parameters:
modulestr

The module name.

filenamestr

The library filename pattern.

Returns:
list[str]

The library path.

deepmd.lmp._get_tensorflow_library_paths() → tuple[list[str], list[str]][source]#

Get TensorFlow library and preload paths when TensorFlow is installed.

deepmd.lmp._get_pytorch_library_paths() → list[str][source]#

Get PyTorch library paths when PyTorch is installed.

deepmd.lmp.lib_env = 'LD_LIBRARY_PATH'[source]#
deepmd.lmp.preload_env = 'LD_PRELOAD'[source]#
deepmd.lmp.op_dir = ''[source]#
deepmd.lmp._configure_lammps_environment() → None[source]#

Configure library paths for the installed LAMMPS backends.

deepmd.lmp.get_op_dir() → str[source]#

Get the directory of the deepmd-kit OP library.