From ac30ded4ef316ebca7f4f1349af0e4dee96a6481 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Wed, 23 Feb 2022 15:10:46 -0500 Subject: [PATCH] fix the example of inference with C++ interface fix #1493 --- doc/inference/cxx.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/inference/cxx.md b/doc/inference/cxx.md index 201341d416..3871a3d92d 100644 --- a/doc/inference/cxx.md +++ b/doc/inference/cxx.md @@ -17,9 +17,9 @@ where `e`, `f` and `v` are predicted energy, force and virial of the system, res You can compile `infer_water.cpp` using `gcc`: ```sh -gcc infer_water.cpp -D HIGH_PREC -L $deepmd_root/lib -L $tensorflow_root/lib -I $deepmd_root/include -I $tensorflow_root/include -Wl,--no-as-needed -ldeepmd_cc -lstdc++ -Wl,-rpath=$deepmd_root/lib -Wl,-rpath=$tensorflow_root/lib -o infer_water +gcc infer_water.cpp -D HIGH_PREC -L $deepmd_root/lib -L $tensorflow_root/lib -I $deepmd_root/include -I $tensorflow_root/include -Wl,--no-as-needed -ldeepmd_cc -lstdc++ -ltensorflow_cc -Wl,-rpath=$deepmd_root/lib -Wl,-rpath=$tensorflow_root/lib -o infer_water ``` and then run the program: ```sh ./infer_water -``` \ No newline at end of file +```