[PATCH] D153667: [HIP]: Add -fhip-emit-relocatable to override link job creation for -fno-gpu-rdc

Jeffrey Byrnes via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 28 14:03:04 PDT 2023


jrbyrnes added inline comments.


================
Comment at: clang/lib/Driver/Driver.cpp:3328-3330
+      CompileDeviceOnly = C.getDriver().offloadDeviceOnly();
+      Relocatable = Args.hasFlag(options::OPT_fgpu_rdc,
+                                 options::OPT_fno_gpu_rdc, /*Default=*/false);
----------------
yaxunl wrote:
> probably needs to be moved to ctor of CudaActionBuilderBase since they are needed by both Cuda and HIP action builders.
Thanks


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D153667



More information about the cfe-commits mailing list