[PATCH] D154123: [HIP] Start document HIP support by clang
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 24 11:04:49 PDT 2023
yaxunl marked 2 inline comments as done.
yaxunl added inline comments.
================
Comment at: clang/docs/HIPSupport.rst:65
+
+ clang++ --offload-arch=gfx906 -xhip sample.cpp -o sample
+
----------------
arsenm wrote:
> scchan wrote:
> > missing --hip-link
> What does hip-link do? Why is it needed? I never use it and it works
It indicates HIP offloading at the linking stage and creates the HIP toolchain.
For -fno-gpu-rdc mode, it locates the HIP runtime library and links it.
For -fgpu-rdc mode, it unbundles object files and does device linking and embedding.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154123/new/
https://reviews.llvm.org/D154123
More information about the cfe-commits
mailing list