Commit 2d4c615
authored
feat: enable PyTorch custom ops by default (deepmodeling#5578)
## Summary
- change the `DP_ENABLE_PYTORCH` build-time default from `0` to `1` in
the build backend
- update the install-from-source docs to describe PyTorch customized C++
OPs as enabled by default
- adjust related model/compression docs so they no longer tell users to
set `DP_ENABLE_PYTORCH=1` explicitly
## Tests
- `python3 -m py_compile backend/find_pytorch.py backend/read_env.py
deepmd/pt/cxx_op.py`
- `git diff --check`
- `uv run --no-project --with dependency-groups --with packaging python`
smoke checks for default `-DENABLE_PYTORCH=ON` and explicit
`DP_ENABLE_PYTORCH=0` -> `-DENABLE_PYTORCH=OFF`
Authored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* PyTorch backend customized C++ OPs now enabled by default when
building from source.
* **Bug Fixes**
* Corrected error messages and installation guidance for PyTorch backend
issues.
* **Documentation**
* Updated installation and model documentation to reflect PyTorch
backend enabled by default.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 2b3bb05 commit 2d4c615
7 files changed
Lines changed: 10 additions & 10 deletions
File tree
- backend
- deepmd/pt
- doc
- freeze
- install
- model
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
0 commit comments