P4 to Git Change 1598525 by gandryey@gera-ocl-lc on 2018/08/27 14:28:05
SWDEV-79445 - OCL generic changes and code clean-up
- Setup KernelParameterDescriptor directly from the binary's metadata without any intermediate arguments presentation.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#50 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#312 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#60 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.hpp#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#122 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#66 edit
[ROCm/clr commit: a144820c40]
This commit is contained in:
@@ -1706,16 +1706,18 @@ RUNTIME_ENTRY(cl_int, clGetKernelArgInfo,
|
||||
return amd::clGetInfo(qualifier, param_value_size, param_value, param_value_size_ret);
|
||||
}
|
||||
case CL_KERNEL_ARG_TYPE_NAME: {
|
||||
const char* typeName = desc.typeName_.c_str();
|
||||
// Return the argument's type name
|
||||
return amd::clGetInfo(desc.typeName_, param_value_size, param_value, param_value_size_ret);
|
||||
return amd::clGetInfo(typeName, param_value_size, param_value, param_value_size_ret);
|
||||
}
|
||||
case CL_KERNEL_ARG_TYPE_QUALIFIER: {
|
||||
cl_kernel_arg_type_qualifier qualifier = desc.typeQualifier_;
|
||||
return amd::clGetInfo(qualifier, param_value_size, param_value, param_value_size_ret);
|
||||
}
|
||||
case CL_KERNEL_ARG_NAME: {
|
||||
const char* name = desc.name_.c_str();
|
||||
// Return the argument's name
|
||||
return amd::clGetInfo(desc.name_, param_value_size, param_value, param_value_size_ret);
|
||||
return amd::clGetInfo(name, param_value_size, param_value, param_value_size_ret);
|
||||
}
|
||||
default:
|
||||
return CL_INVALID_VALUE;
|
||||
|
||||
مرجع در شماره جدید
Block a user