[clang] 9ee625b - [Clang] Update the help message for `--offload-arch`
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 18 09:41:30 PST 2023
Author: Joseph Huber
Date: 2023-01-18T11:41:08-06:00
New Revision: 9ee625bd992fba4ba5ef9102e5e02bc87c7252c4
URL: https://github.com/llvm/llvm-project/commit/9ee625bd992fba4ba5ef9102e5e02bc87c7252c4
DIFF: https://github.com/llvm/llvm-project/commit/9ee625bd992fba4ba5ef9102e5e02bc87c7252c4.diff
LOG: [Clang] Update the help message for `--offload-arch`
Summary:
This works for `OpenMP` and supports the `native` option. It should be
better documented.
Added:
Modified:
clang/include/clang/Driver/Options.td
Removed:
################################################################################
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index a163c77fdb13c..ba49b335cf287 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -940,10 +940,10 @@ def cuda_include_ptx_EQ : Joined<["--"], "cuda-include-ptx=">, Flags<[NoXarchOpt
def no_cuda_include_ptx_EQ : Joined<["--"], "no-cuda-include-ptx=">, Flags<[NoXarchOption]>,
HelpText<"Do not include PTX for the following GPU architecture (e.g. sm_35) or 'all'. May be specified more than once.">;
def offload_arch_EQ : Joined<["--"], "offload-arch=">, Flags<[NoXarchOption]>,
- HelpText<"CUDA offloading device architecture (e.g. sm_35), or HIP offloading target ID in the form of a "
- "device architecture followed by target ID features delimited by a colon. Each target ID feature "
- "is a pre-defined string followed by a plus or minus sign (e.g. gfx908:xnack+:sramecc-). May be "
- "specified more than once.">;
+ HelpText<"Specify an offloading device architecture for CUDA, HIP, or OpenMP. (e.g. sm_35). "
+ "If 'native' is used the compiler will detect locally installed architectures. "
+ "For HIP offloading, the device architecture can be followed by target ID features "
+ "delimited by a colon (e.g. gfx908:xnack+:sramecc-). May be specified more than once.">;
def cuda_gpu_arch_EQ : Joined<["--"], "cuda-gpu-arch=">, Flags<[NoXarchOption]>,
Alias<offload_arch_EQ>;
def cuda_feature_EQ : Joined<["--"], "cuda-feature=">, HelpText<"Manually specify the CUDA feature to use">;
More information about the cfe-commits
mailing list