[all-commits] [llvm/llvm-project] 640270: [mlir] Fix the link of libcuda.so in MLIRGPUTransf...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Thu Nov 30 19:30:22 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6402706a00e806aef62836cd1a13a412349121eb
      https://github.com/llvm/llvm-project/commit/6402706a00e806aef62836cd1a13a412349121eb
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2023-11-30 (Thu, 30 Nov 2023)

  Changed paths:
    M mlir/lib/Dialect/GPU/CMakeLists.txt

  Log Message:
  -----------
  [mlir] Fix the link of libcuda.so in MLIRGPUTransforms to not use fully qualified path (#74018)

At the moment we find libcuda.so in a path like:

  /usr/local/cuda/targets/x86_64-linux/lib/stubs/libcuda.so

and directly add this to `target_link_libraries`. The problem is that
our installed MLIR package will include the full path to the library,
and a user downstream when including our cmake installed package will
inherit this full path.

We're changing this to instead

 -L /usr/local/cuda/targets/x86_64-linux/lib/stubs/ -lcuda




More information about the All-commits mailing list