P4 to Git Change 1333693 by gandryey@gera-dev-w7 on 2016/10/28 18:25:31
SWDEV-86035 - Add PAL backend to OpenCL
- Use size_t for hidden arguments
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#21 edit
[ROCm/clr commit: 55cab0cc96]
Bu işleme şunda yer alıyor:
@@ -1006,12 +1006,12 @@ HSAILKernel::loadArguments(
|
||||
continue;
|
||||
}
|
||||
else if (arg->type_ == HSAIL_ARGTYPE_HIDDEN_PRINTF_BUFFER) {
|
||||
uint64_t bufferPtr = 0;
|
||||
size_t bufferPtr = 0;
|
||||
if ((printfInfo().size() > 0) &&
|
||||
// and printf buffer was allocated
|
||||
(gpu.printfDbgHSA().dbgBuffer() != nullptr)) {
|
||||
// and set the fourth argument as the printf_buffer pointer
|
||||
bufferPtr = gpu.printfDbgHSA().dbgBuffer()->vmAddress();
|
||||
bufferPtr = static_cast<size_t>(gpu.printfDbgHSA().dbgBuffer()->vmAddress());
|
||||
memList.push_back(gpu.printfDbgHSA().dbgBuffer());
|
||||
}
|
||||
assert(arg->size_ == sizeof(bufferPtr) && "check the sizes");
|
||||
@@ -1019,12 +1019,12 @@ HSAILKernel::loadArguments(
|
||||
continue;
|
||||
}
|
||||
else if (arg->type_ == HSAIL_ARGTYPE_HIDDEN_DEFAULT_QUEUE) {
|
||||
assert(arg->size_ == sizeof(vmDefQueue) && "check the sizes");
|
||||
assert(arg->size_ == sizeof(static_cast<size_t>(vmDefQueue)) && "check the sizes");
|
||||
WriteAqlArg(&aqlArgBuf, &vmDefQueue, arg->size_, arg->alignment_);
|
||||
continue;
|
||||
}
|
||||
else if (arg->type_ == HSAIL_ARGTYPE_HIDDEN_COMPLETION_ACTION) {
|
||||
assert(arg->size_ == sizeof(*vmParentWrap) && "check the sizes");
|
||||
assert(arg->size_ == sizeof(static_cast<size_t>(*vmParentWrap)) && "check the sizes");
|
||||
WriteAqlArg(&aqlArgBuf, vmParentWrap, arg->size_, arg->alignment_);
|
||||
continue;
|
||||
}
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle