Closed benrichard-amd closed 3 weeks ago
LGTM -- just need to format Python code using
black
: https://github.com/psf/black?tab=readme-ov-file#usage
Done
Should we force the omniperf running env with utf-8 first?
Should we force the omniperf running env with utf-8 first?
We do set project locale here at Omniperf object instantiation. Is this what you're referring to?
Omniperf assumes the output from rocprof is always UTF-8. But there is no guarantee that the user's code will always output UTF-8.
A customer was running Tensorflow and for whatever reason it output a non-UTF-8 character and crashed Omniperf.
Wrap existing code in a try/except block to catch UnicodeDecodeError so the line is skipped and profiling can continue.