deepmd.env#

Attributes#

Functions#

get_lmdb_num_workers(→ int)

Return the per-rank LMDB decoder process count.

Module Contents#

deepmd.env.SHARED_LIB_MODULE = 'lib'[source]#
deepmd.env.SHARED_LIB_DIR[source]#
deepmd.env.GLOBAL_NP_FLOAT_PRECISION[source]#
deepmd.env.LRU_CACHE_SIZE = 512[source]#
deepmd.env.get_lmdb_num_workers() → int[source]#

Return the per-rank LMDB decoder process count.

DP_LMDB_NUM_WORKERS provides an explicit override. The automatic policy limits one rank to 32 workers and approximately 64 workers per node, then respects the process CPU affinity. Values zero and one select synchronous decoding.

Returns:
int

Number of LMDB decoder processes.

Raises:
ValueError

If DP_LMDB_NUM_WORKERS is not a non-negative integer.

deepmd.env.GLOBAL_CONFIG[source]#