diff options
author | Artem Belevich <tra@google.com> | 2020-10-19 16:41:51 -0700 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2020-10-23 10:03:29 -0700 |
commit | 65d206484c54177641d4b11d42cab1f1acc8c0c7 (patch) | |
tree | 361e5eb17c25f0dd56bc867b6545dc5f9b47baaa /clang/lib/Basic/SourceManager.cpp | |
parent | de346cf2ac850be793ee7fc31f99a7671331c289 (diff) | |
download | llvm-65d206484c54177641d4b11d42cab1f1acc8c0c7.zip llvm-65d206484c54177641d4b11d42cab1f1acc8c0c7.tar.gz llvm-65d206484c54177641d4b11d42cab1f1acc8c0c7.tar.bz2 |
[CUDA] Improve clang's ability to detect recent CUDA versions.
CUDA-11.1 does not carry version.txt which causes clang to assume that it's
CUDA-7.0, which used to be the only CUDA version w/o version.txt.
In order to tell CUDA-7.0 apart from the new versions, clang now probes for the
presence of libdevice.10.bc which is not present in the old CUDA versions.
This should keep Clang working for CUDA-11.1.
PR47332: https://bugs.llvm.org/show_bug.cgi?id=47332
Differential Revision: https://reviews.llvm.org/D89752
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions