-
Notifications
You must be signed in to change notification settings - Fork 4
Fix pylint issues #188
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
Fix pylint issues #188
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| [MASTER] | ||
| ignore-patterns=^ais-check$ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,7 +81,7 @@ def amdgpu_supports_ais(): | |
| Check if kfd_ais_rw_file is in the kernel's symbol table | ||
| """ | ||
| try: | ||
| with open("/proc/kallsyms", "r") as kallsyms: | ||
| with open("/proc/kallsyms", "r", encoding="utf-8") as kallsyms: | ||
| for line in kallsyms: | ||
| if "kfd_ais_rw_file" in line: | ||
| return True | ||
|
|
@@ -99,6 +99,12 @@ def amdgpu_supports_ais(): | |
|
|
||
|
|
||
| def main(args): | ||
| """ | ||
| Parse command-line arguments, check AIS support in HIP Runtime and | ||
| amdgpu, optionally print the results, and return an exit code indicating | ||
| whether all required components support AIS. | ||
|
Comment on lines
101
to
+105
|
||
| """ | ||
|
|
||
| parser = argparse.ArgumentParser() | ||
| parser.add_argument( | ||
| "-q", "--quiet", action="store_true", help="Silence regular output" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.