P4 to Git Change 1573623 by gandryey@gera-w8 on 2018/06/27 18:23:10
SWDEV-155433 - Add OpenCL API type for RGP files generated from OpenCL - Add API type events to the SQTT Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#93 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#30 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palgpuopen.cpp#3 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palgpuopen.hpp#3 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#112 edit
This commit is contained in:
@@ -920,7 +920,7 @@ bool VirtualGPU::allocHsaQueueMem() {
|
||||
VirtualGPU::~VirtualGPU() {
|
||||
// Destroy RGP trace
|
||||
if (rgpCaptureEna()) {
|
||||
dev().rgpCaptureMgr()->FinishRGPTrace(true);
|
||||
dev().rgpCaptureMgr()->FinishRGPTrace(this, true);
|
||||
}
|
||||
|
||||
// Not safe to remove a queue. So lock the device
|
||||
@@ -2105,14 +2105,15 @@ bool VirtualGPU::submitKernelInternal(const amd::NDRangeContainer& sizes, const
|
||||
newOffset[i] = sizes.offset()[i];
|
||||
}
|
||||
|
||||
// If RGP capturing is enabled, then start SQTT trace
|
||||
if (rgpCaptureEna()) {
|
||||
dev().rgpCaptureMgr()->PreDispatch(this, newGlobalSize[0], newGlobalSize[1], newGlobalSize[2]);
|
||||
}
|
||||
|
||||
// Get the HSA kernel object
|
||||
const HSAILKernel& hsaKernel = static_cast<const HSAILKernel&>(*(kernel.getDeviceKernel(dev())));
|
||||
|
||||
// If RGP capturing is enabled, then start SQTT trace
|
||||
if (rgpCaptureEna()) {
|
||||
dev().rgpCaptureMgr()->PreDispatch(this, hsaKernel,
|
||||
newGlobalSize[0], newGlobalSize[1], newGlobalSize[2]);
|
||||
}
|
||||
|
||||
bool printfEnabled = (hsaKernel.printfInfo().size() > 0) ? true : false;
|
||||
if (printfEnabled && !printfDbgHSA().init(*this, printfEnabled)) {
|
||||
LogError("Printf debug buffer initialization failed!");
|
||||
|
||||
Reference in New Issue
Block a user