-
Notifications
You must be signed in to change notification settings - Fork 15k
[Driver][NFC] Don't specify offloading model in help text for -Xarch_device/host #165503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
@llvm/pr-subscribers-clang Author: None (jinge90) ChangesFull diff: https://github.com/llvm/llvm-project/pull/165503.diff 1 Files Affected:
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index 8784c9d7d206d..77a5ed67beb29 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -950,9 +950,9 @@ def Xarch__
the host system, which can be used to suppress incompatible GPU arguments.}]>,
MetaVarName<"<arch> <arg>">;
def Xarch_host : Separate<["-"], "Xarch_host">, Flags<[NoXarchOption]>,
- HelpText<"Pass <arg> to the CUDA/HIP host compilation">, MetaVarName<"<arg>">;
+ HelpText<"Pass <arg> to the CUDA/HIP/SYCL host compilation">, MetaVarName<"<arg>">;
def Xarch_device : Separate<["-"], "Xarch_device">, Flags<[NoXarchOption]>,
- HelpText<"Pass <arg> to the CUDA/HIP device compilation">, MetaVarName<"<arg>">;
+ HelpText<"Pass <arg> to the CUDA/HIP/SYCL device compilation">, MetaVarName<"<arg>">;
def Xassembler : Separate<["-"], "Xassembler">,
HelpText<"Pass <arg> to the assembler">, MetaVarName<"<arg>">,
Group<CompileOnly_Group>;
|
|
Hi, @bader |
Signed-off-by: jinge90 <ge.jin@intel.com>
Do they do anything useful for SYCL in https://github.com/llvm/llvm-project/? |
Hi, @bader |
I see that @jhuber6 enabled these options for OpenMP offload in eec516a. The patch enabled them not only for OpenMP offload, but for any offloading programming model. Considering that, I suggest we don't specify offloading models at all. Let's align the help text with the implementation by removing mentions of CUDA/HIP/SYCL. |
Signed-off-by: jinge90 <ge.jin@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current implementation for -Xarch_device/host can work in any offloading model besides CUDA/HIP, so remove the specific offloading model in help text to align with implementation.