[HIPIFY] Initial support of translation to ROCm

+ 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
这个提交包含在:
Evgeny Mankov 于 2018-12-06 21:52:54 +03:00 提交
1 父节点 32455eddaf
当前提交 747eb2c11c
23 个文件已更改
+3735 -3705

没有与搜索条件相匹配的文件

+3 -1
查看文件
@@ -2,6 +2,7 @@
#include <assert.h>
#include <sstream>
#include <iomanip>
#include "ArgParse.h"
const char *counterNames[NUM_CONV_TYPES] = {
"error", // CONV_ERROR
@@ -137,7 +138,8 @@ Statistics::Statistics(const std::string& name): fileName(name) {
///////// Counter update routines //////////
void Statistics::incrementCounter(const hipCounter &counter, const std::string& name) {
if (counter.unsupported) {
if ((!TranslateToRoc && (HIP_UNSUPPORTED == (counter.supportDegree & HIP_UNSUPPORTED))) ||
(TranslateToRoc && (ROC_UNSUPPORTED == (counter.supportDegree & ROC_UNSUPPORTED)))) {
unsupported.incrementCounter(counter, name);
} else {
supported.incrementCounter(counter, name);