Merge pull request #28209 from domschl:ldconfig-fix
PiperOrigin-RevId: 249072380
This commit is contained in:
commit
bc687c1049
5
third_party/gpus/find_cuda_config.py
vendored
5
third_party/gpus/find_cuda_config.py
vendored
@ -141,7 +141,10 @@ def _get_ld_config_paths():
|
||||
pattern = re.compile(".* => (.*)")
|
||||
result = set()
|
||||
for line in output.splitlines():
|
||||
match = pattern.match(line.decode("ascii"))
|
||||
try:
|
||||
match = pattern.match(line.decode("ascii"))
|
||||
except UnicodeDecodeError:
|
||||
match = False
|
||||
if match:
|
||||
result.add(os.path.dirname(match.group(1)))
|
||||
return sorted(list(result))
|
||||
|
Loading…
x
Reference in New Issue
Block a user