[all-commits] [llvm/llvm-project] 5d8a76: [Libomptarget] Build the device library even if th...

Joseph Huber via All-commits all-commits at lists.llvm.org
Thu Jul 21 07:58:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d8a76feb02ff3db5e25b9c5a8edff49e750f7fb
      https://github.com/llvm/llvm-project/commit/5d8a76feb02ff3db5e25b9c5a8edff49e750f7fb
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-07-21 (Thu, 21 Jul 2022)

  Changed paths:
    M openmp/libomptarget/DeviceRTL/CMakeLists.txt

  Log Message:
  -----------
  [Libomptarget] Build the device library even if the sm list is empty

We previously had some logic that stopped us from building the device runtime if
there were no NVPTX architectures provided. This is incorrect because we could
have AMDGPU libraries. Even if the lists are empty we should be able to attempt
to build these and get dummy output. THis wilil make it much easier for our
tooling which expects certain libraries. If the user wishes to disable the
library entirely they should use `-DLIBOMPTARGET_BUILD_DEVICERTL_BCLIB=OFF"

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D130266




More information about the All-commits mailing list