P4 to Git Change 1264675 by gandryey@gera-w8 on 2016/05/03 14:13:52
SWDEV-86170 - Need OCL changes for Compute Unit Reservation - Add support for RT and Medium priority queues - Use the new packet for the CU mask programming. It will allow CU reservation for RT queue in KMD. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_command.cpp#11 edit ... //depot/stg/opencl/drivers/opencl/library/hsa/hsail/src/devenq/schedule.cl#12 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#546 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#159 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpumemory.cpp#127 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#402 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.hpp#139 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLContext.cpp#81 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLContext.h#52 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#165 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/backend.h#12 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.cpp#22 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.hpp#17 edit
Tento commit je obsažen v:
@@ -46,7 +46,8 @@ bool
|
||||
CALGSLContext::open(
|
||||
const CALGSLDevice* pDeviceObject,
|
||||
uint32 nEngines,
|
||||
gslEngineDescriptor* engines)
|
||||
gslEngineDescriptor* engines,
|
||||
uint32 rtCUs)
|
||||
{
|
||||
m_Dev = pDeviceObject;
|
||||
|
||||
@@ -63,7 +64,7 @@ CALGSLContext::open(
|
||||
for (uint i = 0; i < nEngines; i++)
|
||||
{
|
||||
if (engines[i].id >= GSL_ENGINEID_3DCOMPUTE0 &&
|
||||
engines[i].id <= GSL_ENGINEID_COMPUTE7)
|
||||
engines[i].id <= GSL_ENGINEID_COMPUTE_MEDIUM_PRIORITY)
|
||||
{
|
||||
mainEngineOrdinal = engines[i].id;
|
||||
}
|
||||
@@ -76,7 +77,7 @@ CALGSLContext::open(
|
||||
}
|
||||
}
|
||||
|
||||
m_cs = native->createComputeContext(mainEngineOrdinal, sdmaOrdinal, false);
|
||||
m_cs = native->createComputeContext(mainEngineOrdinal, sdmaOrdinal, false, rtCUs);
|
||||
|
||||
if (m_cs == 0)
|
||||
{
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele