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

modified gcda_clean to make it more robust (#44936)

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