Skip to content

Commit

Permalink
Merge pull request #23274 from ayaka14732:mypy-error
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 668010899
  • Loading branch information
jax authors committed Aug 27, 2024
2 parents be6e154 + 859eacb commit ac9e9e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit ac9e9e0

Please sign in to comment.