pti-gpu icon indicating copy to clipboard operation
pti-gpu copied to clipboard

oneprof failed when log filepath includes "."

Open ccrhx4 opened this issue 3 years ago • 0 comments

Issue Description: set a output file for oneprof, and the output file path contains ".", e.g. "dir.test/test.log", oneprof would not work.

/oneprof -q -o out.txt/test.log ./ze_gemm ze_gemm: /github/pti-gpu/tools/oneprof/../utils/logger.h:22: Logger::Logger(const string&): Assertion `file_.is_open()' failed.

I debug the code and find out that oneprof trys to rename the log filename, but goes wrong when the file path includes "." which is not for file extension. https://github.com/intel/pti-gpu/blob/887839d06e37d6b0ac6b98629a9ad8590e36df98/tools/oneprof/prof_options.h#L70

ccrhx4 avatar Nov 04 '22 08:11 ccrhx4