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
This commit is contained in:
German Andryeyev
2021-11-03 16:24:04 -04:00
parent b2de4f625c
commit 2a298f2ec3
5 changed files with 110 additions and 26 deletions
+6
View File
@@ -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()) {