P4 to Git Change 1160575 by gandryey@gera-dev-w7 on 2015/06/11 18:31:59
ECR #304775 - Real time queue support
- Add the new interface for the real time queue creation
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_command.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_device.cpp#58 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpudevice.hpp#90 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#246 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#511 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#144 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa/hsadevice.cpp#91 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa/hsadevice.hpp#48 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsadevice.cpp#33 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsadevice.hpp#14 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.cpp#20 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.hpp#15 edit
[ROCm/clr commit: e919691665]
This commit is contained in:
@@ -648,15 +648,14 @@ Device::populateOCLDeviceConstants()
|
||||
}
|
||||
|
||||
device::VirtualDevice*
|
||||
Device::createVirtualDevice(
|
||||
bool profiling,
|
||||
bool interopQueue
|
||||
#if cl_amd_open_video
|
||||
, void *calVideoProperties
|
||||
#endif
|
||||
, uint deviceQueueSize
|
||||
)
|
||||
Device::createVirtualDevice(amd::CommandQueue* queue)
|
||||
{
|
||||
bool interopQueue = (queue != NULL) &&
|
||||
(0 != (queue->context().info().flags_ &
|
||||
(amd::Context::GLDeviceKhr |
|
||||
amd::Context::D3D10DeviceKhr |
|
||||
amd::Context::D3D11DeviceKhr)));
|
||||
|
||||
// Initialization of heap and other resources occur during the command
|
||||
// queue creation time.
|
||||
HsaQueueType type = kHsaQueueTypeCompute;
|
||||
@@ -884,7 +883,7 @@ Device::xferQueue() const
|
||||
// Create virtual device for internal memory transfer
|
||||
Device* thisDevice = const_cast<Device*>(this);
|
||||
thisDevice->xferQueue_ = reinterpret_cast<VirtualGPU*>(
|
||||
thisDevice->createVirtualDevice(false, false));
|
||||
thisDevice->createVirtualDevice());
|
||||
if (!xferQueue_) {
|
||||
LogError("Couldn't create the device transfer manager!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user