[PATCH] D156426: [HIP] link HIP runtime library without --hip-link

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 27 09:55:17 PDT 2023


yaxunl marked an inline comment as done.
yaxunl added inline comments.


================
Comment at: clang/docs/HIPSupport.rst:71
+In the above command, the ``--hip-link`` flag instructs Clang to link the HIP runtime library. However,
+the use of this flag is unnecessary if a HIP input file is already present in your program.
+
----------------
scchan wrote:
> clang++ -xhip  --offload-arch=gfx906 sample.o -o sample 
> would also work?
yes. since it will create a HIP toolchain


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

https://reviews.llvm.org/D156426



More information about the cfe-commits mailing list