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

Ensure we account for device names with suffixes #26

Merged
merged 2 commits into from
Dec 15, 2022

Conversation

michaelshin
Copy link
Contributor

I noticed after running the ML Tools test, the source device was T4 even if it was actually P100 or V100. This bug occurred because the device names had additional suffixes (e.g. P100 had the name Tesla P100-PCIE-16GB).

Originally Skyline split the string on whitespaces and checked if the name is an exact match with any of those split strings. Now it will check if the name is a substring of the split strings.

I wish there was a better solution for this because this still seems fragile.

@jimgao1
Copy link
Contributor

jimgao1 commented Dec 15, 2022

Might not work since we have A40/A4000.

@jimgao1
Copy link
Contributor

jimgao1 commented Dec 15, 2022

I would instead split by more types of tokens (space, dash, underscore) and also still use exact match.

Copy link
Contributor

@jimgao1 jimgao1 left a comment

Choose a reason for hiding this comment

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

LGTM!

@michaelshin michaelshin merged commit f88f29e into main Dec 15, 2022
@michaelshin michaelshin deleted the fix-habitat-source-device-bug branch December 15, 2022 19:37
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.

3 participants