+ Option '-roc' is added to translate to ROCm instead of HIP
+ Update hipification mechanism accordingly
+ Populate all translation maps with additional field for ROCm identifiers
+ There are 4 degrees of CUDA support now: full support, only by HIP, only by ROCm, unsupported
[ROCm/hip commit: c5ed25da22]
19 řádky
523 B
C++
19 řádky
523 B
C++
#pragma once
|
|
|
|
#include "clang/Tooling/CommonOptionsParser.h"
|
|
#include "llvm/Support/CommandLine.h"
|
|
|
|
namespace cl = llvm::cl;
|
|
namespace ct = clang::tooling;
|
|
|
|
extern cl::OptionCategory ToolTemplateCategory;
|
|
extern cl::opt<std::string> OutputFilename;
|
|
extern cl::opt<bool> Inplace;
|
|
extern cl::opt<bool> NoBackup;
|
|
extern cl::opt<bool> NoOutput;
|
|
extern cl::opt<bool> PrintStats;
|
|
extern cl::opt<std::string> OutputStatsFilename;
|
|
extern cl::opt<bool> Examine;
|
|
extern cl::extrahelp CommonHelp;
|
|
extern cl::opt<bool> TranslateToRoc;
|