Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
https://gitcode.com/cann/runtime/pull/3746
这个PR修复了ASCEND_WORK_PATH设置为相对路径时,trace模块不适配的问题。
但是触发了一些老用例的报错,这些用例的典型场景是:
1)设置ASCEND_WORK_PATH=./temp
2)用例执行路径较长,达到240字节
3)trace模块拼接root路径时,路径校验可以通过,但是trace日志落盘阶段报错"failed at second directory"
Environment / 环境信息 (Mandatory / 必填)
纯cpu功能,与npu型号无关
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
https://gitcode.com/cann/runtime/pull/3746
这个PR修复了ASCEND_WORK_PATH设置为相对路径时,trace模块不适配的问题。
但是触发了一些老用例的报错,这些用例的典型场景是:
1)设置ASCEND_WORK_PATH=./temp
2)用例执行路径较长,达到240字节
3)trace模块拼接root路径时,路径校验可以通过,但是trace日志落盘阶段报错"failed at second directory"
Environment / 环境信息 (Mandatory / 必填)
纯cpu功能,与npu型号无关
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
1)构造一个可以落盘trace文件的用例
2)设置ASCEND_WORK_PATH路径为240字节左右,执行这个用例
Describe the expected behavior / 预期结果 (Mandatory / 必填)
可以正常在ASCEND_WORK_PATH路径下生成atrace目录并落盘
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
无
Special notes for this issue/备注 (Optional / 选填)
如果ASCEND_WORK_PATH路径设置不合理,至少能用默认路径保底,而不是采用ASCEND_WORK_PATH路径,但是在最后落盘时报错,导致trace日志没有落盘