Skip to content

Commit 951eb1c

Browse files
committed
Fix pmm data inconsistency
If dram values are negative, pmm values are not updated so contain invalid data
1 parent 3633a39 commit 951eb1c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/pcm-memory.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,12 @@ void display_bandwidth_csv(PCM *m, memdata_t *md, uint64 /*elapsedTime*/, const
535535
cout << "Ch" << channel << "PMM_Read,"
536536
<< "Ch" << channel << "PMM_Write,";
537537
},
538-
[&skt, &md, &channel]() {
539-
cout << setw(8) << md->iMC_PMM_Rd_socket_chan[skt][channel] << ','
540-
<< setw(8) << md->iMC_PMM_Wr_socket_chan[skt][channel] << ',';
538+
[&skt, &md, &channel, &invalid_data]() {
539+
if (invalid_data)
540+
cout << ",,";
541+
else
542+
cout << setw(8) << md->iMC_PMM_Rd_socket_chan[skt][channel] << ','
543+
<< setw(8) << md->iMC_PMM_Wr_socket_chan[skt][channel] << ',';
541544
});
542545
}
543546
}

0 commit comments

Comments
 (0)