[PATCH] D124220: [OpenMP] Add options to only compile the host or device when offloading
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 26 13:32:18 PDT 2022
jhuber6 added a comment.
ping
================
Comment at: clang/include/clang/Driver/Options.td:2535-2538
+def foffload_device_only : Flag<["-"], "foffload-device-only">,
+ HelpText<"Only compile for the offloading device.">;
+def foffload_host_only : Flag<["-"], "foffload-host-only">,
+ HelpText<"Only compile for the offloading host.">;
----------------
tra wrote:
> We should probably alias `--cuda-host-only`/`--cuda-device-only` to these.
Unfortunately I can't make these a strict alias for `-foffload-host-only`/`-foffload-device-only` without breaking their current usage. I could just check them along with these new versions, but that makes it a little cluttered.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124220/new/
https://reviews.llvm.org/D124220
More information about the cfe-commits
mailing list