[PATCH] D84068: AMDGPU/clang: Search resource directory for device libraries

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 10 16:27:32 PDT 2020


yaxunl added a comment.

In D84068#2208394 <https://reviews.llvm.org/D84068#2208394>, @arsenm wrote:

>> 
>
> Long term, I'd rather aim for merging rocm-device-libs into libclc and making it an llvm project. They're largely forks of the same original sources from about 5 years ago, and it's an unfortunate split of effort. I also specifically do not want distros to be shuffling this around, and want it to behave exactly like compiler-rt. As far as I can tell cuda clang does not actually work with the Ubuntu packaged cuda, which arbitrarily moved the nvvm binaries, and I don't really want a repeat of this situation. I also do want the device libs build to support a non-rocm package to install to a standard distro clang package, which is different than the rocm libraries trying to support every clang in the universe. Ideally just a regular clang works without any formal rocm installation.

I like the idea of making rocm-device-libs part of llvm-projects, but I think rocm-device-libs is not an OpenCL device library. That said, before rocm-device-library become part of llvm-project, we need to support rocm-device-library at other locations.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84068/new/

https://reviews.llvm.org/D84068



More information about the cfe-commits mailing list