aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2022-08-10 09:57:17 -0400
committerJoseph Huber <jhuber6@vols.utk.edu>2022-08-10 11:15:27 -0400
commitfdbb15355e7977b914cbd7e753b5e909d735ad83 (patch)
tree8519f478e8c76774c7256d398e391199248489ba /clang/lib/Basic/SourceManager.cpp
parent9bceb8981d32fe9465257c31413395f445ab05d8 (diff)
downloadllvm-fdbb15355e7977b914cbd7e753b5e909d735ad83.zip
llvm-fdbb15355e7977b914cbd7e753b5e909d735ad83.tar.gz
llvm-fdbb15355e7977b914cbd7e753b5e909d735ad83.tar.bz2
[Libomptarget][CUDA] Check CUDA compatibilty correctly
We recently added support for multi-architecture binaries in libomptarget. This is done by extracting the architecture from the embedded image and comparing it with the major and minor version supported by the current CUDA installation. Previously we just compared these directly, which was not correct for binary compatibility. The CUDA documentation states that we can consider any image with an equivalent major or a greater or equal to minor compatible with the current image. Change the check to use this new logic in the CUDA plugin. Fixes #57049 Reviewed By: jdoerfert, ye-luo Differential Revision: https://reviews.llvm.org/D131567
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions