P4 to Git Change 1052695 by jatang@jatang-opencl-hsa-stg1 on 2014/07/07 11:41:00
EPR #375978 - Print 3-component vectors correctly.
Simplify the change.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprintf.cpp#35 edit
[ROCm/clr commit: 3e434ca289]
Šī revīzija ir iekļauta:
@@ -488,18 +488,11 @@ PrintfDbg::outputDbgBuffer(const PrintfInfo& info, const uint32_t* workitemData,
|
|||||||
i += amd::alignUp(length, sizeof(uint32_t)) / sizeof(uint32_t);
|
i += amd::alignUp(length, sizeof(uint32_t)) / sizeof(uint32_t);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
size_t elemSize;
|
// 3-component vector's size is defined as 4 * size of each scalar component
|
||||||
|
size_t elemSize = info.arguments_[j] / (vectorSize == 3 ? 4 : vectorSize);
|
||||||
size_t k = i * sizeof(uint32_t);
|
size_t k = i * sizeof(uint32_t);
|
||||||
std::string elementStr = fmt.substr(idPos, fmt.size());
|
std::string elementStr = fmt.substr(idPos, fmt.size());
|
||||||
|
|
||||||
if (vectorSize == 3) {
|
|
||||||
// 3-component vector's size is defined as 4 * size of each scalar component
|
|
||||||
elemSize = info.arguments_[j] / 4;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
elemSize = info.arguments_[j] / vectorSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Print first element with full string
|
// Print first element with full string
|
||||||
if (0 == outputArgument(fmt, printFloat, elemSize, &s[i])) {
|
if (0 == outputArgument(fmt, printFloat, elemSize, &s[i])) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Atsaukties uz šo jaunā problēmā
Block a user