Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lmp): update print_summary #4271

Merged
merged 3 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions source/lmp/deepmd_version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#define GIT_BRANCH @GIT_BRANCH@
#define GIT_DATE @GIT_DATE@
#define DEEPMD_ROOT @CMAKE_INSTALL_PREFIX@
#define TensorFlow_INCLUDE_DIRS @TensorFlow_INCLUDE_DIRS@
#define TensorFlow_LIBRARY @TensorFlow_LIBRARY@
#define TensorFlow_INCLUDE_DIRS @BACKEND_INCLUDE_DIRS@
#define TensorFlow_LIBRARY @BACKEND_LIBRARY_PATH@
njzjz marked this conversation as resolved.
Show resolved Hide resolved
#define DPMD_CVT_STR(...) #__VA_ARGS__
#define DPMD_CVT_ASSTR(X) DPMD_CVT_STR(X)
#define STR_GIT_SUMM DPMD_CVT_ASSTR(GIT_SUMM)
Expand Down
5 changes: 2 additions & 3 deletions source/lmp/pair_deepmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,10 +437,9 @@ void PairDeepMD::print_summary(const string pre) const {
cout << pre << "source branch: " << STR_GIT_BRANCH << endl;
cout << pre << "source commit: " << STR_GIT_HASH << endl;
cout << pre << "source commit at: " << STR_GIT_DATE << endl;
cout << pre << "build float prec: " << STR_FLOAT_PREC << endl;
cout << pre << "build with tf inc: " << STR_TensorFlow_INCLUDE_DIRS
cout << pre << "build with inc: " << STR_TensorFlow_INCLUDE_DIRS
<< endl;
cout << pre << "build with tf lib: " << STR_TensorFlow_LIBRARY << endl;
cout << pre << "build with lib: " << STR_TensorFlow_LIBRARY << endl;

std::cout.rdbuf(sbuf);
utils::logmesg(lmp, buffer.str());
Expand Down