Commit 00327cc
Han Wang
fix(ci): use SHARED_LIB_DIR to find correct custom op install path
The script was copying libdeepmd_op_pt.so to
os.path.dirname(deepmd.__file__)+"/lib" which resolves to the workspace
source tree, but cxx_op.py loads from SHARED_LIB_DIR (deepmd.lib.__path__)
which resolves to site-packages. For editable installs these diverge,
so the custom ops were never loaded and ENABLE_CUSTOMIZED_OP was False.
This caused 10 C++ test failures:
- 8 DPA2 .pth tests: tabulate_fusion_se_t_tebd has no Python fallback
- 2 DPA3 .pth NoPbc tests: border_op fallback raises NotImplementedError1 parent dd75039 commit 00327cc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments