Skip to content

Commit 9ee625b

Browse files
committed
[Clang] Update the help message for --offload-arch
Summary: This works for `OpenMP` and supports the `native` option. It should be better documented.
1 parent 29d25f9 commit 9ee625b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -940,10 +940,10 @@ def cuda_include_ptx_EQ : Joined<["--"], "cuda-include-ptx=">, Flags<[NoXarchOpt
940940
def no_cuda_include_ptx_EQ : Joined<["--"], "no-cuda-include-ptx=">, Flags<[NoXarchOption]>,
941941
HelpText<"Do not include PTX for the following GPU architecture (e.g. sm_35) or 'all'. May be specified more than once.">;
942942
def offload_arch_EQ : Joined<["--"], "offload-arch=">, Flags<[NoXarchOption]>,
943-
HelpText<"CUDA offloading device architecture (e.g. sm_35), or HIP offloading target ID in the form of a "
944-
"device architecture followed by target ID features delimited by a colon. Each target ID feature "
945-
"is a pre-defined string followed by a plus or minus sign (e.g. gfx908:xnack+:sramecc-). May be "
946-
"specified more than once.">;
943+
HelpText<"Specify an offloading device architecture for CUDA, HIP, or OpenMP. (e.g. sm_35). "
944+
"If 'native' is used the compiler will detect locally installed architectures. "
945+
"For HIP offloading, the device architecture can be followed by target ID features "
946+
"delimited by a colon (e.g. gfx908:xnack+:sramecc-). May be specified more than once.">;
947947
def cuda_gpu_arch_EQ : Joined<["--"], "cuda-gpu-arch=">, Flags<[NoXarchOption]>,
948948
Alias<offload_arch_EQ>;
949949
def cuda_feature_EQ : Joined<["--"], "cuda-feature=">, HelpText<"Manually specify the CUDA feature to use">;

0 commit comments

Comments
 (0)