File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1307,6 +1307,10 @@ class VISAKernelImpl : public VISAFunction {
1307
1307
1308
1308
void createBindlessSampler ();
1309
1309
1310
+ // if vISA_DumpPerfStats is enabled, finalize the perf stats values before
1311
+ // dumping
1312
+ void finalizePerfStats (uint64_t binaryHash);
1313
+
1310
1314
private:
1311
1315
// This member holds symbolic index of function when invoked via
1312
1316
// API path. Builder client can use this id when invoking this
Original file line number Diff line number Diff line change @@ -464,15 +464,17 @@ void *VISAKernelImpl::encodeAndEmit(unsigned int &binarySize) {
464
464
465
465
if (m_options->getOption (vISA_DumpPerfStats) ||
466
466
m_options->getOption (vISA_DumpPerfStatsVerbose)) {
467
- // set BinaryHash
468
- m_jitInfo->stats .binaryHash =
469
- std::hash<std::string>{}(std::string ((char *)binary, binarySize));
467
+ finalizePerfStats (std::hash<std::string>{}(std::string ((char *)binary, binarySize)));
470
468
dumpPerfStatsInJson (m_asmName);
471
469
}
472
470
473
471
return binary;
474
472
}
475
473
474
+ void VISAKernelImpl::finalizePerfStats (uint64_t binaryHash) {
475
+ // set BinaryHash
476
+ m_jitInfo->stats .binaryHash = binaryHash;
477
+ }
476
478
477
479
void KERNEL_INFO::collectStats (G4_Kernel &kernel) {
478
480
for (auto decl : kernel.Declares ) {
You can’t perform that action at this time.
0 commit comments