SWDEV-286150 - Add detailed thread trace support in RGP

- Create hash values for binaries
- Add the binaries into RGP trace
- Add corresponding hash value for every dispatch

Change-Id: I2c3ce004d69f37d0d46bc4744e12f24273517f5e
Este commit está contenido en:
German Andryeyev
2021-11-03 16:24:04 -04:00
padre b2de4f625c
commit 2a298f2ec3
Se han modificado 5 ficheros con 110 adiciones y 26 borrados
+6
Ver fichero
@@ -802,6 +802,12 @@ bool LightningProgram::setKernels(void* binary, size_t binSize,
return true;
}
// Collect the information about compiled binary
if (palDevice().rgpCaptureMgr() != nullptr) {
apiHash_ = palDevice().rgpCaptureMgr()->AddElfBinary(binary, binSize, binary, binSize,
codeSegGpu_->iMem(), codeSegGpu_->offset());
}
for (auto& kit : kernels()) {
LightningKernel* kernel = static_cast<LightningKernel*>(kit.second);
if (!kernel->postLoad()) {