From 24558b857c00086f2ae33eb73cbe33cd91d4918d Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 17 Feb 2015 18:29:21 -0500 Subject: [PATCH] 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: 7e8cc31338c645ef750dcacf6eb9a86bcacaaf9e] --- projects/clr/opencl/api/opencl/amdocl/cl_command.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/clr/opencl/api/opencl/amdocl/cl_command.cpp b/projects/clr/opencl/api/opencl/amdocl/cl_command.cpp index 1b4cb5fd63..5dc44b67c6 100644 --- a/projects/clr/opencl/api/opencl/amdocl/cl_command.cpp +++ b/projects/clr/opencl/api/opencl/amdocl/cl_command.cpp @@ -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());