[PATCH] D59321: AMDGPU: Teach toolchain to link rocm device libs

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 1 14:45:44 PDT 2020


yaxunl added inline comments.


================
Comment at: clang/include/clang/Driver/Options.td:611
 def fno_cuda_short_ptr : Flag<["-"], "fno-cuda-short-ptr">;
+def rocm_path_EQ : Joined<["--"], "rocm-path=">, Group<Link_Group>,
+  HelpText<"ROCm installation path">;
----------------
HIP toolchain will also use it to add include path for HIP header files, therefore this is more like --cuda-path=. i_Group is more proper.


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

https://reviews.llvm.org/D59321





More information about the cfe-commits mailing list