[all-commits] [llvm/llvm-project] af5600: [OpenMP] Don't pass empty files to nvlink

Joseph Huber via All-commits all-commits at lists.llvm.org
Thu Jan 20 10:12:23 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af5600420b93769a5c7981d247d37ac4d61cce54
      https://github.com/llvm/llvm-project/commit/af5600420b93769a5c7981d247d37ac4d61cce54
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-01-20 (Thu, 20 Jan 2022)

  Changed paths:
    A clang/test/Driver/Inputs/openmp_static_device_link/empty.o
    A clang/test/Driver/Inputs/openmp_static_device_link/lib.bc
    M clang/test/Driver/fat_archive_nvptx.cpp
    M clang/tools/clang-nvlink-wrapper/ClangNvlinkWrapper.cpp

  Log Message:
  -----------
  [OpenMP] Don't pass empty files to nvlink

This patch adds and exception to the nvlink wrapper tool to not pass
empty cubin files to the nvlink job. If an empty file is passed to
nvlink it will cause an error indicating that the file could not be
opened. This would occur if the user tried to link object files that
contained offloading code with a file that didnt. This will act as a
workaround until the new OpenMP offloading driver becomes the default.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list