Unverified Commit 6402706a authored by Mehdi Amini's avatar Mehdi Amini Committed by GitHub
Browse files

[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
parent d0a39e61
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment