Skip to content

Conversation

@Xreki
Copy link
Collaborator

@Xreki Xreki commented Oct 31, 2025

PR Category

Feature Enhancement

Description

  1. test_compiler支持dcu硬件
  2. test_compiler在执行评测前,添加对GPU使用率的查询,便于后续判断评测结果是否准确、执行时是否有其他因素干扰。

@paddle-bot
Copy link

paddle-bot bot commented Oct 31, 2025

Thanks for your contribution!

@Xreki Xreki force-pushed the add_gpu_util branch 4 times, most recently from df64a0c to d45c0f8 Compare November 4, 2025 05:46
@Xreki Xreki changed the title [Feature Enhancement] Add the check of GPU utilization before test. [Feature Enhancement] test_compiler support dcu and add the check of GPU utilization before test. Nov 4, 2025
test_samples = []
with open(allow_list, "r") as f:
for line in f.readlines():
test_samples.append(os.path.join(graphnet_root, line.strip()))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个函数怎么总是返回None?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修复

.strip()
)
for line in output.split("\n"):
if line.strip():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些代码缩进层级太深,一般都意味着可维护性问题。下次可以多用列表解析(list comprehension)

@lixinqi lixinqi merged commit fad5ec1 into PaddlePaddle:develop Nov 4, 2025
3 checks passed
@Xreki Xreki deleted the add_gpu_util branch November 4, 2025 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants