deepmd.env#
Attributes#
Functions#
| Return the per-rank LMDB decoder process count. |
Module Contents#
- deepmd.env.get_lmdb_num_workers() int[source]#
Return the per-rank LMDB decoder process count.
DP_LMDB_NUM_WORKERSprovides 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:
intNumber of LMDB decoder processes.
- Raises:
ValueErrorIf
DP_LMDB_NUM_WORKERSis not a non-negative integer.