[all-commits] [llvm/llvm-project] 26cc50: [OpenMP] Add Cuda path to linker wrapper tool

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Feb 8 10:42:05 PST 2022


  Branch: refs/heads/release/14.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 26cc50aba7176996d50780a5f7957d7822065ae9
      https://github.com/llvm/llvm-project/commit/26cc50aba7176996d50780a5f7957d7822065ae9
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-02-08 (Tue, 08 Feb 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

  Log Message:
  -----------
  [OpenMP] Add Cuda path to linker wrapper tool

The linker wrapper tool uses the 'nvlink' and 'ptxas' binaries to link
and assemble device files. Previously we searched for this using the
binaries in the user's path. This didn't work in cases where the user
passed in a specific Cuda path to Clang. This patch changes the linker
wrapper to accept an argument for the Cuda path we can get from Clang.
This should fix #53573.

Reviewed By: tianshilei1992

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

(cherry picked from commit 8cc4ca95b02bc5b5b668b3d537b45a6585575cba)


  Commit: 3e2d79e2a27dce5f8ba1d33bbc1344b9d24f2b5a
      https://github.com/llvm/llvm-project/commit/3e2d79e2a27dce5f8ba1d33bbc1344b9d24f2b5a
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-02-08 (Tue, 08 Feb 2022)

  Changed paths:
    M openmp/libomptarget/DeviceRTL/include/State.h

  Log Message:
  -----------
  [Libomptarget] Replace Value RAII with default value

This patch replaces the ValueRAII pointer with a default 'nullptr'
value. Previously this was initialized as a reference to an existing
variable. The use of this variable caused overhead as the compiler could
not look through the uses and determine that it was unused if 'Active'
was not set. Because of this accesses to the variable would be left in
the runtime once compiled.

Fixes #53641

Reviewed By: jdoerfert

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

(cherry picked from commit d28051c4ab44141d7c52902de500dfe1293d3de2)


Compare: https://github.com/llvm/llvm-project/compare/39e9a64cf584...3e2d79e2a27d


More information about the All-commits mailing list