P4 to Git Change 1122949 by gandryey@gera-w8 on 2015/02/17 18:24:15
ECR #304775 - BUG#10566 Max device queue size too small
- Add a check for max queue size
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_command.cpp#9 edit
[ROCm/clr commit: 7e8cc31338]
This commit is contained in:
@@ -105,6 +105,11 @@ RUNTIME_ENTRY_RET(cl_command_queue, clCreateCommandQueueWithProperties, (
|
||||
++p;
|
||||
}
|
||||
|
||||
if (queueSize > amdDevice.info().queueOnDeviceMaxSize_) {
|
||||
*not_null(errcode_ret) = CL_INVALID_VALUE;
|
||||
return (cl_command_queue) 0;
|
||||
}
|
||||
|
||||
amd::CommandQueue* queue = NULL;
|
||||
{
|
||||
amd::ScopedLock lock(amdContext.lock());
|
||||
|
||||
Viittaa uudesa ongelmassa
Block a user