[Openmp-commits] [PATCH] D156387: [OpenMP][Docs] Added offloading command line reference to OpenMP FAQ

Anton Rydahl via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Jul 27 13:38:30 PDT 2023


AntonRydahl added a comment.

Thanks for the nice suggestions! I will fix it right away.



================
Comment at: openmp/docs/SupportAndFAQ.rst:477-478
+""""""""""""""""""""""""""""""""""""""""""""""""""""
+Compile the target regions for the host only. All target regions will be 
+compiled for both host and device if not specified.
+
----------------
jplehr wrote:
> Flip the flags or the sentences, so that the flags and their meaning are in the same order.
Thank you for pointing this out! I thought the two flags had the same meaning as they had the same description in the Clang command line reference. 

```
clang --help | grep offload-host-device
  --offload-host-device   Only compile for the offloading host.
clang --help | grep offload-host-only
  --offload-host-only     Only compile for the offloading host.
```

What exactly is the difference between the two flags?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156387



More information about the Openmp-commits mailing list