Skip to content

Commit feb4053

Browse files
committed
Addressed comments and tested with smoke; Rebase
1 parent 99d9b07 commit feb4053

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

offload/plugins-nextgen/common/include/PluginInterface.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,8 +1304,6 @@ struct KernelRunRecord {
13041304
struct TuningMetadata {
13051305
uint32_t IdxThread = 0;
13061306
uint32_t IdxCUMultiplier = 0;
1307-
// Tuning history.
1308-
std::vector<KernelRunEntry> RunEntries;
13091307
// Run counters.
13101308
uint32_t RunCounters;
13111309
// Entry with minimum running time.
@@ -1316,7 +1314,6 @@ struct KernelRunRecord {
13161314
void addEntry(std::string KernelName, uint32_t NumTeams, uint32_t NumThreads,
13171315
uint64_t RunDuration) {
13181316
KernelRunEntry NewRunEnry = {KernelName, NumTeams, NumThreads, RunDuration};
1319-
TuningData[KernelName].RunEntries.push_back(NewRunEnry);
13201317
TuningData[KernelName].RunCounters++;
13211318

13221319
// Update min entries.

offload/plugins-nextgen/common/src/PluginInterface.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,9 +1109,10 @@ Error GenericDeviceTy::deinit(GenericPluginTy &Plugin) {
11091109

11101110
// Delete autotuning related resources if the option is on.
11111111
if (OMPX_EnableRuntimeAutotuning) {
1112-
if (KernelRunRecords)
1112+
if (KernelRunRecords) {
11131113
delete KernelRunRecords;
1114-
KernelRunRecords = nullptr;
1114+
KernelRunRecords = nullptr;
1115+
}
11151116
}
11161117

11171118
#ifdef OMPT_SUPPORT

0 commit comments

Comments
 (0)