llvm-project/openmp/libomptarget/plugins/cuda
Joseph Huber fdbb15355e [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
2022-08-10 11:15:27 -04:00
..
dynamic_cuda [Libomptarget] Don't report lack of CUDA devices 2022-07-22 14:46:45 -04:00
src [Libomptarget][CUDA] Check CUDA compatibilty correctly 2022-08-10 11:15:27 -04:00
CMakeLists.txt [Libomptarget] Make the plugins link as LLVM libraries 2022-07-22 09:34:12 -04:00