Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HPU information to collect_env script #430

Open
wants to merge 3 commits into
base: habana_main
Choose a base branch
from

Conversation

michalkuligowski
Copy link

No description provided.

Add HPU information to collect_env.py script
@michalkuligowski michalkuligowski marked this pull request as ready for review October 28, 2024 11:59
collect_env.py Outdated
Comment on lines 268 to 270
hpu_c = count_re.match(line)
if hpu_c:
hpu_count = hpu_c.group(1)
Copy link

@madamczykhabana madamczykhabana Oct 29, 2024

Choose a reason for hiding this comment

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

You can combine assignment and check using the 'walrus' operator, i.e.

if hpu_c := count_re.match(line):
    hpu_count = hpu_c.group(1)

@kzawora-intel kzawora-intel added the habana Issues or PRs submitted by Habana Labs label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
habana Issues or PRs submitted by Habana Labs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants