Unverified Commit a566c2f8 authored by Ramesh Errabolu's avatar Ramesh Errabolu Committed by GitHub
Browse files

Merge pull request #74 from mjklemm/master

Fix issue #73 by using the proper delete[] operator
parents 13fe6442 964e03c0
...@@ -341,7 +341,7 @@ void RocmBandwidthTest::DisplayCopyTimeMatrix(bool peak) const { ...@@ -341,7 +341,7 @@ void RocmBandwidthTest::DisplayCopyTimeMatrix(bool peak) const {
double* perf_matrix = new double[agent_index_ * agent_index_](); double* perf_matrix = new double[agent_index_ * agent_index_]();
PopulatePerfMatrix(peak, perf_matrix); PopulatePerfMatrix(peak, perf_matrix);
PrintPerfMatrix(false, peak, perf_matrix); PrintPerfMatrix(false, peak, perf_matrix);
free(perf_matrix); delete[] perf_matrix;
} }
void RocmBandwidthTest::DisplayValidationMatrix() const { void RocmBandwidthTest::DisplayValidationMatrix() const {
...@@ -349,7 +349,7 @@ void RocmBandwidthTest::DisplayValidationMatrix() const { ...@@ -349,7 +349,7 @@ void RocmBandwidthTest::DisplayValidationMatrix() const {
double* perf_matrix = new double[agent_index_ * agent_index_](); double* perf_matrix = new double[agent_index_ * agent_index_]();
PopulatePerfMatrix(true, perf_matrix); PopulatePerfMatrix(true, perf_matrix);
PrintPerfMatrix(true, true, perf_matrix); PrintPerfMatrix(true, true, perf_matrix);
free(perf_matrix); delete[] perf_matrix;
} }
void RocmBandwidthTest::DisplayDevInfo() const { void RocmBandwidthTest::DisplayDevInfo() const {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment