Skip to content

Commit

Permalink
Rename TensorFlow-related macros to backend-related macros
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Oct 29, 2024
1 parent c49070e commit d61ff7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 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 @BACKEND_INCLUDE_DIRS@
#define TensorFlow_LIBRARY @BACKEND_LIBRARY_PATH@
#define BACKEND_INCLUDE_DIRS @BACKEND_INCLUDE_DIRS@
#define BACKEND_LIBRARY_PATH @BACKEND_LIBRARY_PATH@
#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 All @@ -13,5 +13,5 @@
#define STR_GIT_DATE DPMD_CVT_ASSTR(GIT_DATE)
#define STR_FLOAT_PREC DPMD_CVT_ASSTR(FLOAT_PREC)
#define STR_DEEPMD_ROOT DPMD_CVT_ASSTR(DEEPMD_ROOT)
#define STR_TensorFlow_INCLUDE_DIRS DPMD_CVT_ASSTR(TensorFlow_INCLUDE_DIRS)
#define STR_TensorFlow_LIBRARY DPMD_CVT_ASSTR(TensorFlow_LIBRARY)
#define STR_BACKEND_INCLUDE_DIRS DPMD_CVT_ASSTR(BACKEND_INCLUDE_DIRS)
#define STR_BACKEND_LIBRARY_PATH DPMD_CVT_ASSTR(BACKEND_LIBRARY_PATH)
4 changes: 2 additions & 2 deletions source/lmp/pair_deepmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +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 with inc: " << STR_TensorFlow_INCLUDE_DIRS
cout << pre << "build with inc: " << STR_BACKEND_INCLUDE_DIRS
<< endl;
cout << pre << "build with lib: " << STR_TensorFlow_LIBRARY << endl;
cout << pre << "build with lib: " << STR_BACKEND_LIBRARY_PATH << endl;

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

0 comments on commit d61ff7a

Please sign in to comment.