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

Fix mypy error #23274

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/rocm/run_single_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def run_parallel(all_testmodules, p, c):


def find_num_gpus():
cmd = ["lspci|grep 'controller\|accel'|grep 'AMD/ATI'|wc -l"]
cmd = [r"lspci|grep 'controller\|accel'|grep 'AMD/ATI'|wc -l"]
_, _, stdout = run_shell_command(cmd, shell=True)
return int(stdout)

Expand Down
2 changes: 1 addition & 1 deletion build/rocm/tools/build_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def build_jax_wheel(jax_path, python_version):
env["PATH"] = "%s:%s" % (py_bin, env["PATH"])

LOG.info("Running %r from cwd=%r" % (cmd, jax_path))
pattern = re.compile("Successfully built jax-.+ and (jax-.+\.whl)\n")
pattern = re.compile(r"Successfully built jax-.+ and (jax-.+\.whl)\n")

_run_scan_for_output(cmd, pattern, env=env, cwd=jax_path, capture="stdout")

Expand Down
2 changes: 1 addition & 1 deletion build/rocm/tools/symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def main():
def highest_for_file(sofile):
output = subprocess.check_output(["objdump", "-T", sofile])

r = re.compile("\(GLIBC_(.*)\)")
r = re.compile(r"\(GLIBC_(.*)\)")
versions = {}

for line in output.decode("utf-8").split("\n"):
Expand Down