P4 to Git Change 1481211 by gandryey@gera-lnx-rcf on 2017/11/10 11:23:52

SWDEV-133810 - PAL support for Linux Pro w/OpenCL 1.2 support
	- Fix a crash in multiple device/context test

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#64 edit


[ROCm/clr commit: 0cf1fd6eae]
This commit is contained in:
foreman
2017-11-10 11:30:16 -05:00
förälder 367cd0cde5
incheckning e5fa6843f1
@@ -738,13 +738,15 @@ bool VirtualGPU::create(bool profiling, uint deviceQueueSize, uint rtCUs,
amd::CommandQueue::Priority priority) {
device::BlitManager::Setup blitSetup;
// Resize the list of device resources always,
// because destructor calls eraseResourceList() even if create() failed
dev().resizeResoureList(index());
if (index() >= GPU_MAX_COMMAND_QUEUES) {
// Cap the maximum number of concurrent Virtual GPUs
return false;
}
dev().resizeResoureList(index());
// Virtual GPU will have profiling enabled
state_.profiling_ = profiling;