P4 to Git Change 1727393 by gandryey@gera-w8 on 2019/01/08 11:35:08
SWDEV-79445 - OCL generic changes and code clean-up
- Allow LC to execute 64bit GPU binaries with 32 bit OCL runtime.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#51 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#122 edit
[ROCm/clr commit: 3574cc00d3]
This commit is contained in:
@@ -1562,8 +1562,10 @@ RUNTIME_ENTRY(cl_int, clSetKernelArg,
|
||||
}
|
||||
}
|
||||
if ((!is_local && (arg_size != desc.size_)) || (is_local && (arg_size == 0))) {
|
||||
as_amd(kernel)->parameters().reset(static_cast<size_t>(arg_index));
|
||||
return CL_INVALID_ARG_SIZE;
|
||||
if (LP64_ONLY(true ||) (desc.type_ != T_POINTER) || (arg_size != sizeof(void*))) {
|
||||
as_amd(kernel)->parameters().reset(static_cast<size_t>(arg_index));
|
||||
return CL_INVALID_ARG_SIZE;
|
||||
}
|
||||
}
|
||||
|
||||
as_amd(kernel)->parameters().set(static_cast<size_t>(arg_index), arg_size, arg_value);
|
||||
|
||||
Reference in New Issue
Block a user