[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
Please register or sign in to comment