P4 to Git Change 1332293 by lmoriche@lmoriche_opencl_dev on 2016/10/26 16:04:38
SWDEV-105604 - OpenCL program manager for LC on PAL - Don't count the hidden arguments as the OCL signature should not see them. Use -1 for hidden index. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#19 edit
此提交包含在:
@@ -503,7 +503,7 @@ void
|
||||
HSAILKernel::initHsailArgs(const aclArgData* aclArg)
|
||||
{
|
||||
// Iterate through the each kernel argument
|
||||
for (; aclArg->struct_size != 0; aclArg++) {
|
||||
for (uint index = 0; aclArg->struct_size != 0; aclArg++) {
|
||||
Argument* arg = new Argument;
|
||||
|
||||
// Initialize HSAIL kernel argument
|
||||
@@ -525,7 +525,7 @@ HSAILKernel::initHsailArgs(const aclArgData* aclArg)
|
||||
|| arg->type_ == HSAIL_ARGTYPE_HIDDEN_COMPLETION_ACTION
|
||||
|| arg->type_ == HSAIL_ARGTYPE_HIDDEN_NONE;
|
||||
|
||||
arg->index_ = isHidden ? uint(-1) : arguments_.size();
|
||||
arg->index_ = isHidden ? uint(-1) : index++;
|
||||
|
||||
arguments_.push_back(arg);
|
||||
}
|
||||
|
||||
新增問題並參考
封鎖使用者