P4 to Git Change 1239340 by rili@rili-opencl-stg on 2016/02/22 16:50:49
SWDEV-84552 - Flush HSAIL kernel execution if workload is too big.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#395 edit
[ROCm/clr commit: 01f19b6043]
Ta zmiana jest zawarta w:
%! (template.HTML=
foreman)złożyło 2016-02-22 17:03:42 -05:00
1 rodzic
63e99c762c
złożenie
bbe34fec40
Plik 1 zmieniony
+7
-1
@@ -1731,6 +1731,12 @@ VirtualGPU::submitKernelInternalHSA(
|
||||
dbgManager->allocParamMemList(numParams);
|
||||
}
|
||||
|
||||
bool needFlush = false;
|
||||
dmaFlushMgmt_.findSplitSize(dev(), sizes.global().product(), hsaKernel.aqlCodeSize());
|
||||
if (dmaFlushMgmt().dispatchSplitSize() != 0) {
|
||||
needFlush = true;
|
||||
}
|
||||
|
||||
size_t newOffset[3] = {0, 0, 0};
|
||||
size_t newGlobalSize[3] = {0, 0, 0};
|
||||
|
||||
@@ -2008,7 +2014,7 @@ VirtualGPU::submitKernelInternalHSA(
|
||||
}
|
||||
|
||||
// Update the global GPU event
|
||||
setGpuEvent(gpuEvent);
|
||||
setGpuEvent(gpuEvent, needFlush);
|
||||
|
||||
if (!printfDbgHSA().output(*this, printfEnabled, hsaKernel.printfInfo())) {
|
||||
LogError("Couldn't read printf data from the buffer!\n");
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika