Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions deepmd/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ def get_tf_session_config() -> Any:
"""
set_tf_default_nthreads()
intra, inter = get_tf_default_nthreads()
if int(os.environ.get("DP_JIT", 0)):
set_env_if_empty("TF_XLA_FLAGS", "--tf_xla_auto_jit=2")
config = tf.ConfigProto(
gpu_options=tf.GPUOptions(allow_growth=True),
intra_op_parallelism_threads=intra, inter_op_parallelism_threads=inter
Expand Down
1 change: 1 addition & 0 deletions doc/train/training-advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ One can set other environmental variables:
| --------------------- | ---------------------- | ------------- | -------------------------- |
| DP_INTERFACE_PREC | `high`, `low` | `high` | Control high (double) or low (float) precision of training. |
| DP_AUTO_PARALLELIZATION | 0, 1 | 0 | Enable auto parallelization for CPU operators. |
| DP_JIT | 0, 1 | 0 | Enable JIT. Note that this option may either improve or decrease the performance. Requires TensorFlow supports JIT. |


## Adjust `sel` of a frozen model
Expand Down