33 static bool log_enabled = std::getenv(
"CUDNN_FRONTEND_LOG_INFO") && std::strncmp(std::getenv(
"CUDNN_FRONTEND_LOG_INFO"),
"0",1);
40 static std::ofstream outFile;
41 static std::ostream & stream = std::getenv(
"CUDNN_FRONTEND_LOG_FILE")
42 ? (std::strncmp(std::getenv(
"CUDNN_FRONTEND_LOG_FILE"),
"stdout", 6) == 0
43 ? std::cout : (std::strncmp(std::getenv(
"CUDNN_FRONTEND_LOG_FILE"),
"stderr", 6) == 0
44 ? std::cerr : (outFile.open(std::getenv(
"CUDNN_FRONTEND_LOG_FILE"), std::ios::out), outFile)))
64 operator<< (std::ostream &(*spl)(std::ostream &))
const {
ConditionalStreamer & getLogger()
std::ostream & getStream()
virtual std::string describe() const =0
Return a string describing the backend Descriptor.
bool & isLoggingEnabled()
ConditionalStreamer(std::ostream &stream_)
const ConditionalStreamer & operator<<(const T &t) const