[PATCH] D125050: [OpenMP] Try to Infer target triples using the offloading architecture

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 6 10:41:47 PDT 2022


yaxunl added inline comments.


================
Comment at: clang/lib/Driver/Driver.cpp:789
+      (C.getInputArgs().hasArg(options::OPT_fopenmp_targets_EQ) ||
+       C.getInputArgs().hasArg(options::OPT_offload_arch_EQ));
+  if (IsOpenMPOffloading) {
----------------
probably should be

C.getInputArgs().hasArg(options::OPT_offload_arch_EQ) && !IsHIP && !IsCUDA

otherwise a HIP program may get both HIP offloading and OpenMP offloading at the same time. Currently it is not supported.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125050



More information about the cfe-commits mailing list