SWDEV-354868 - return CL_INVALID_VALUE if number of RT CUs is less than its granularity when creating command queue
Change-Id: I31004e82589c3378dba5541095a1eff763d4579d
[ROCm/clr commit: 6d4e067302]
Этот коммит содержится в:
@@ -137,7 +137,8 @@ RUNTIME_ENTRY_RET(cl_command_queue, clCreateCommandQueueWithProperties,
|
||||
}
|
||||
|
||||
if ((queueRTCUs != amd::CommandQueue::RealTimeDisabled) &&
|
||||
((queueRTCUs > amdDevice.info().numRTCUs_) || (queueRTCUs == 0))) {
|
||||
((queueRTCUs > amdDevice.info().numRTCUs_) || (queueRTCUs == 0)
|
||||
|| (queueRTCUs < amdDevice.info().granularityRTCUs_))) {
|
||||
*not_null(errcode_ret) = CL_INVALID_VALUE;
|
||||
return (cl_command_queue)0;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user