Stream Classes #6
Replies: 2 comments 2 replies
-
|
I guess, we might prefer using a library if we can find a good one. So, I checked out some and listed ones with compatible licenses and active development. All needs to be configured for rank 0 print, but they guarantee thread safety.
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks for looking into this @keceli. Can you comment on the compatibility with std::ostream? I guess one possible advantage of boost::log is that we already have boost dependencies? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The stream classes will be used for logging, output, and error messages. I'd recommend an API that's basically the same as
std::ostreamwith maybe aprintffunction for those who prefer to use that sort of API.Requirements:
std::ostream/std::istreamstd::cout<< my_rank << " " << my_data << std::endl;didn't produce mangled garbageGreat to have:
printfAPI; it's sometimes much easier than streamsBeta Was this translation helpful? Give feedback.
All reactions