[libc-commits] [PATCH] D139839: [libc] Add a loader utility for AMDHSA architectures for testing
Johannes Doerfert via Phabricator via libc-commits
libc-commits at lists.llvm.org
Mon Dec 12 08:08:25 PST 2022
jdoerfert added a comment.
I don't think this is what we should to right now. We should have reused the existing offload runtime with the two simple overlay headers, effectively what we used here: https://tianshilei.me/wp-content/uploads/2022/09/llvm-hpc-22.pdf
We would get support for all backends without haveing the 3rd! HSA driver in tree. Someone will start to improve the driver, we add a 3rd CUDA one, we start to build APIs, we end up with the plugin interface all over again.
The right choices is to use it and to decouple it rather than to duplicate it.
On the "loader" question: Why do we need a loader executable in the first place? Why not patch the original up so we can just execute that one? Lot's of benefits (self contained, can have fallback path and multiple archs, ...)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139839/new/
https://reviews.llvm.org/D139839
More information about the libc-commits
mailing list