未验证 提交 090caa0e 编写于 作者: Y YUNSHEN XIE 提交者: GitHub

modified gcda_clean to make it more robust (#44936)

上级 3ed69e0d
...@@ -87,12 +87,15 @@ def clean(pull_id): ...@@ -87,12 +87,15 @@ def clean(pull_id):
# convert paddle/fluid/imperative/CMakeFiles/layer.dir/layer.cc.gcda # convert paddle/fluid/imperative/CMakeFiles/layer.dir/layer.cc.gcda
# to paddle/fluid/imperative/layer.cc.gcda # to paddle/fluid/imperative/layer.cc.gcda
# modifed to make it more robust
if trimmed.endswith('.dir'): # covert /paddle/build/paddle/phi/backends/CMakeFiles/phi_backends.dir/gpu/cuda/cuda_info.cc.gcda
trimmed = os.path.dirname(trimmed) # to /paddle/build/paddle/phi/backends/gpu/cuda/cuda_info.cc.gcda
trimmed_tmp = []
if trimmed.endswith('CMakeFiles'): for p in trimmed.split('/'):
trimmed = os.path.dirname(trimmed) if p.endswith('.dir') or p.endswith('CMakeFiles'):
continue
trimmed_tmp.append(p)
trimmed = '/'.join(trimmed_tmp)
# remove no changed gcda # remove no changed gcda
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册