[all-commits] [llvm/llvm-project] fdbb15: [Libomptarget][CUDA] Check CUDA compatibilty corre...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Aug 10 08:15:42 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fdbb15355e7977b914cbd7e753b5e909d735ad83
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-08-10 (Wed, 10 Aug 2022)

  Changed paths:
    M openmp/libomptarget/plugins/cuda/src/rtl.cpp

  Log Message:
  [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

More information about the All-commits mailing list