Fixed incorrect kernel paramlist replacement length & hipGetDeviceProperties mapping

Αυτή η υποβολή περιλαμβάνεται σε:
alex-t
2016-04-14 13:48:58 +03:00
γονέας aa36e86dc3
υποβολή c84fdef9d3
@@ -215,7 +215,7 @@ struct cuda2hipMap {
// Device
cuda2hipRename["cudaDeviceProp"] = {"hipDeviceProp_t", CONV_DEV};
cuda2hipRename["cudaGetDeviceProperties"] = {"hipDeviceGetProperties",
cuda2hipRename["cudaGetDeviceProperties"] = {"hipGetDeviceProperties",
CONV_DEV};
// Cache config
@@ -492,7 +492,7 @@ public:
SourceLocation kernelArgListEnd(pvdLast->getLocEnd());
SourceLocation stop = clang::Lexer::getLocForEndOfToken(
kernelArgListEnd, 0, *SM, DefaultLangOptions);
size_t replacementLength =
replacementLength +=
SM->getCharacterData(stop) - SM->getCharacterData(kernelArgListStart);
initialParamList = StringRef(SM->getCharacterData(kernelArgListStart),
replacementLength);