update mindspore/profiler/profiling.py.

Raise error information for the case that the Profiler output path was not exists.
This commit is contained in:
casgj 2021-09-09 09:13:59 +00:00 committed by gaojing
parent 1e0e5333d7
commit fe56a764b8
1 changed files with 4 additions and 2 deletions

View File

@ -517,8 +517,10 @@ class Profiler:
path, training_device_id, self._dev_id)
if not job_id:
msg = "Fail to get profiling job, please check whether job dir was generated, " \
"or may be the device id from job dir dismatch the device_id in current process."
msg = "Fail to get profiling job, output path is {}, " \
"please check whether job dir in output path was generated, " \
"or may be the device id from job dir dismatch the " \
"device_id in current process.".format(self._output_path)
raise RuntimeError(msg)
return job_id