swr/rast: Output rasterizer dir to console since it's process specific

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
George Kyriazis 2018-04-23 18:14:59 -05:00
parent c328c5d0f4
commit 8ace547e8d

View file

@ -36,6 +36,7 @@
#include "${event_header}"
#include <fstream>
#include <sstream>
#include <iostream>
#include <thread>
namespace ArchRast
@ -57,7 +58,9 @@ namespace ArchRast
std::stringstream outDir;
outDir << KNOB_DEBUG_OUTPUT_DIR << pBaseName << "_" << pid << std::ends;
mOutputDir = outDir.str();
CreateDirectory(mOutputDir.c_str(), NULL);
if (CreateDirectory(mOutputDir.c_str(), NULL)) {
std::cout << "ArchRast Dir: " << mOutputDir << std::endl << std::endl << std::flush;
}
// There could be multiple threads creating thread pools. We
// want to make sure they are uniquly identified by adding in