diff options
author | Joseph Huber <huberjn@outlook.com> | 2024-06-07 08:45:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-07 08:45:35 -0500 |
commit | 2981f3a284302bb12b292bcf09e7e09ae2eb696a (patch) | |
tree | 345ccebfd248015e005601fa68789a2e46b69639 /llvm/lib/CodeGen/MachineOutliner.cpp | |
parent | c5fcc2ea55372060760b0ba46d36d03ed39825d5 (diff) | |
download | llvm-2981f3a284302bb12b292bcf09e7e09ae2eb696a.zip llvm-2981f3a284302bb12b292bcf09e7e09ae2eb696a.tar.gz llvm-2981f3a284302bb12b292bcf09e7e09ae2eb696a.tar.bz2 |
[Clang] Add timeout for GPU detection utilities (#94751)
Summary:
The utilities `nvptx-arch` and `amdgpu-arch` are used to support
`--offload-arch=native` among other utilities in clang. However, these
rely on the GPU drivers to query the features. In certain cases these
drivers can become locked up, which will lead to indefinate hangs on any
compiler jobs running in the meantime.
This patch adds a ten second timeout period for these utilities before
it kills the job and errors out.
Diffstat (limited to 'llvm/lib/CodeGen/MachineOutliner.cpp')
0 files changed, 0 insertions, 0 deletions