|
|
@ -33,7 +33,11 @@ void printVersion(std::ostream& os) {
|
|
|
|
#ifndef PADDLE_VERSION
|
|
|
|
#ifndef PADDLE_VERSION
|
|
|
|
#define PADDLE_VERSION "unknown"
|
|
|
|
#define PADDLE_VERSION "unknown"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
os << "paddle version: " << PADDLE_VERSION << std::endl
|
|
|
|
// converts macro to string https://gcc.gnu.org/onlinedocs/cpp/Stringification.html
|
|
|
|
|
|
|
|
#define xstr(s) str(s)
|
|
|
|
|
|
|
|
#define str(s) #s
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
os << "paddle version: " << str(PADDLE_VERSION) << std::endl
|
|
|
|
<< std::boolalpha << "\t"
|
|
|
|
<< std::boolalpha << "\t"
|
|
|
|
<< "withGpu: " << version::isWithGpu() << std::endl
|
|
|
|
<< "withGpu: " << version::isWithGpu() << std::endl
|
|
|
|
<< "\t"
|
|
|
|
<< "\t"
|
|
|
|