@@ -135,8 +135,6 @@ SPDX-License-Identifier: MIT
135
135
#include < llvm/Support/SourceMgr.h>
136
136
#include " common/LLVMWarningsPop.hpp"
137
137
138
- #include " IGC/Metrics/IGCMetric.h"
139
-
140
138
using namespace IGC ::IGCMD;
141
139
using namespace IGC ::Debug;
142
140
using namespace IGC ;
@@ -1157,7 +1155,6 @@ bool TranslateBuildSPMD(const STB_TranslateInputArgs *pInputArgs, STB_TranslateO
1157
1155
compOpt->FloatDenormModeBFTF = FLOAT_DENORM_RETAIN;
1158
1156
}
1159
1157
1160
- unsigned PtrSzInBits = pKernelModule->getDataLayout ().getPointerSizeInBits ();
1161
1158
// TODO: Again, this should not happen on each compilation
1162
1159
1163
1160
bool doSplitModule = oclContext.m_InternalOptions .CompileOneKernelAtTime || IGC_IS_FLAG_ENABLED (CompileOneAtTime);
@@ -1312,17 +1309,11 @@ bool TranslateBuildSPMD(const STB_TranslateInputArgs *pInputArgs, STB_TranslateO
1312
1309
SetOutputMessage (oclContext.GetWarning (), *pOutputArgs);
1313
1310
}
1314
1311
1315
- // Prepare and set program binary
1316
- unsigned int pointerSizeInBytes = (PtrSzInBits == 64 ) ? 8 : 4 ;
1317
-
1318
1312
// FIXME: zebin currently only support program output itself, will add debug info
1319
1313
// into it
1320
1314
size_t binarySize = 0 ;
1321
1315
char *binaryOutput = nullptr ;
1322
1316
1323
- oclContext.metrics .FinalizeStats ();
1324
- oclContext.metrics .OutputMetrics ();
1325
-
1326
1317
llvm::SmallVector<char , 64 > buf;
1327
1318
llvm::raw_svector_ostream llvm_os (buf);
1328
1319
const bool excludeIRFromZEBinary =
@@ -1334,12 +1325,14 @@ bool TranslateBuildSPMD(const STB_TranslateInputArgs *pInputArgs, STB_TranslateO
1334
1325
spv_size = pInputArgs->InputSize ;
1335
1326
}
1336
1327
1337
- // IGC metrics
1338
- size_t metricDataSize = oclContext. metrics . getMetricDataSize () ;
1339
- auto metricData = reinterpret_cast < const char *>(oclContext. metrics . getMetricData () );
1328
+ // IGC metrics are empty
1329
+ auto metricData = " n \a " ;
1330
+ size_t metricDataSize = sizeof (metricData );
1340
1331
1332
+ unsigned PtrSzInBits = pKernelModule->getDataLayout ().getPointerSizeInBits ();
1333
+ unsigned int pointerSizeInBytes = (PtrSzInBits == 64 ) ? 8 : 4 ;
1341
1334
oclContext.m_programOutput .GetZEBinary (llvm_os, pointerSizeInBytes, spv_data, spv_size, metricData, metricDataSize,
1342
- pInputArgs->pOptions , pInputArgs->OptionsSize );
1335
+ pInputArgs->pOptions , pInputArgs->OptionsSize );
1343
1336
1344
1337
// FIXME: try to avoid memory copy here
1345
1338
binarySize = buf.size ();
0 commit comments