P4 to Git Change 1202371 by mbareghe@mbareghe_stg_win30 on 2015/10/21 18:22:36

SWDEV-79399 - OpenCL printf does not print correctly when the printf builtin function is called twice - clear the local printf info each time

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#305 edit


[ROCm/clr commit: 6800b9f003]
Этот коммит содержится в:
foreman
2015-10-21 18:35:09 -04:00
родитель 4870c8d7b7
Коммит f41340272e
+1
Просмотреть файл
@@ -3302,6 +3302,7 @@ HSAILKernel::initPrintf(const aclPrintfFmt* aclPrintf)
printf_.resize(index + 1);
}
std::string pfmt = aclPrintf->fmtStr;
info.fmtString_.clear();
size_t pos = 0;
for (size_t i = 0; i < pfmt.size(); ++i) {
char symbol = pfmt[pos++];