aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOutliner.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-06-07 08:45:35 -0500
committerGitHub <noreply@github.com>2024-06-07 08:45:35 -0500
commit2981f3a284302bb12b292bcf09e7e09ae2eb696a (patch)
tree345ccebfd248015e005601fa68789a2e46b69639 /llvm/lib/CodeGen/MachineOutliner.cpp
parentc5fcc2ea55372060760b0ba46d36d03ed39825d5 (diff)
downloadllvm-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