[HIPIFY] Introduce --cuda-gpu-arch as hipify-clang's option

+ Pass it to clang if specified
This commit is contained in:
Evgeny Mankov committed 2019-11-02 14:19:31 +03:00
1 parent 562da597a0
commit 02589264a0
3 files changed
+13

No files matched your search

+8
View File
@@ -138,4 +138,12 @@ cl::opt<bool> SkipExcludedPPConditionalBlocks("skip-excluded-preprocessor-condit
cl::value_desc("skip-excluded-preprocessor-conditional-blocks"),
cl::cat(ToolTemplateCategory));
cl::opt<std::string> CudaGpuArch("cuda-gpu-arch",
cl::desc("CUDA GPU architecture (e.g. sm_35);\nmay be specified more than once"),
cl::value_desc("value"),
cl::ZeroOrMore,
cl::Prefix,
cl::cat(ToolTemplateCategory));
cl::extrahelp CommonHelp(ct::CommonOptionsParser::HelpMessage);