P4 to Git Change 1327404 by gandryey@gera-w8 on 2016/10/17 14:20:58

SWDEV-102761 - [CQE OCL][OpenCL on PAL] Few WF Conformance tests are stuck in middle/hardhang while running using csv file
	- Disable non-user mode queue. There is a hang and deadlock in OS if a mix of user and non-user queues is used.
	- Wait for the fence longer if PAL returned a timeout error
	- Slightly change CB warmup code to avoid PAL overhead on the first submit

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#24 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#14 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#30 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#14 edit
This commit is contained in:
foreman
2016-10-17 14:59:22 -04:00
rodzic 27cbd2878b
commit 1a3e93121d
4 zmienionych plików z 66 dodań i 46 usunięć
+14 -14
Wyświetl plik
@@ -782,20 +782,6 @@ Device::create(Pal::IDevice* device)
mapCache_->push_back(nullptr);
size_t resourceCacheSize = settings().resourceCacheSize_;
#ifdef DEBUG
std::stringstream message;
if (settings().remoteAlloc_) {
message << "Using *Remote* memory";
}
else {
message << "Using *Local* memory";
}
message << std::endl;
LogInfo(message.str().c_str());
#endif // DEBUG
// Create resource cache.
// \note Cache must be created before any resource creation to avoid nullptr check
resourceCache_ = new ResourceCache(resourceCacheSize);
@@ -806,6 +792,20 @@ Device::create(Pal::IDevice* device)
// Fill the device info structure
fillDeviceInfo(properties(), heaps, 16*Ki, numComputeEngines());
#ifdef DEBUG
std::stringstream message;
message << info_.name_;
if (settings().remoteAlloc_) {
message << ": Using *Remote* memory";
}
else {
message << ": Using *Local* memory";
}
message << std::endl;
LogInfo(message.str().c_str());
#endif // DEBUG
for (uint i = 0; i < Pal::GpuHeap::GpuHeapCount; ++i) {
freeMem[i] = heaps[i].heapSize;
}