deepmodeling / abacus-develop

An electronic structure package based on either plane wave basis or numerical atomic orbitals.
http://abacus.ustc.edu.cn
GNU Lesser General Public License v3.0
172 stars 131 forks source link

The C interface cannot be used to compile ABACUS with DeePMD-kit. #1893

Closed YuLiu98 closed 1 year ago

YuLiu98 commented 1 year ago

Describe the bug

I tested the C interface of DeePMD-kit recently. However, I found that the tensorflow_cc dynamic library must be linked during ABACUS compilation.

Here is the detailed error log: log.txt

Expected behavior

No response

To Reproduce

No response

Environment

No response

Additional Context

No response

njzjz commented 1 year ago

The log shows that it has been linked, but is not found in the search path. It may be okay to just correct the search path.

ld: warning: libtensorflow_framework.so.2, needed by /home/ldh/deepmd-kit/deepmd_root/lib/libdeepmd_cc.so, not found (try using -rpath or -rpath-link)