[all-commits] [llvm/llvm-project] 5ad038: [Clang][OpenMP][NVPTX] Replace `libomptarget-nvptx...

Shilei Tian via All-commits all-commits at lists.llvm.org
Sat Jan 23 11:46:56 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ad038aafa3a07a4491bf12cf6edf2026f3f17d1
      https://github.com/llvm/llvm-project/commit/5ad038aafa3a07a4491bf12cf6edf2026f3f17d1
  Author: Shilei Tian <tianshilei1992 at gmail.com>
  Date:   2021-01-23 (Sat, 23 Jan 2021)

  Changed paths:
    M clang/docs/ClangCommandLineReference.rst
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Cuda.cpp
    A clang/test/Driver/Inputs/libomptarget/libomptarget-nvptx-test.bc
    M clang/test/Driver/openmp-offload-gpu.c

  Log Message:
  -----------
  [Clang][OpenMP][NVPTX] Replace `libomptarget-nvptx-path` with `libomptarget-nvptx-bc-path`

D94700 removed the static library so we no longer need to pass
`-llibomptarget-nvptx` to `nvlink`. Since the bitcode library is the only device
runtime for now, instead of emitting a warning when it is not found, an error
should be raised. We also set a new option `libomptarget-nvptx-bc-path` to let
user choose which bitcode library is being used.

Reviewed By: JonChesterfield

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




More information about the All-commits mailing list