[OpenMP] Don't use bound architecture when checking cache on the host
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 3 Feb 2022 00:07:39 +0000 (19:07 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Thu, 3 Feb 2022 22:17:38 +0000 (17:17 -0500)
commit9138d96f8b01605b213e8c4d587853a46cca3f44
treebaddb25a4ffbfd139c9b97ee21f689ddd01d6e2c
parent36f32ffd2abfec44b7f56554f05219324b9bbbc2
[OpenMP] Don't use bound architecture when checking cache on the host

When we are creating jobs for the new driver we first check the cache to
see if the job was already created as a part of the offloading
toolchain. This would sometimes fail if the bound architecture was set
for the host during offloading. We want to ingore this because it is not
relevant for looking up host actions. Previously it was set on some
machines and would cause the cache lookup to fail.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D118858
clang/lib/Driver/Driver.cpp
clang/test/Driver/openmp-offload-gpu.c