Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
rocm_bandwidth_test
Commits
964e03c0
Commit
964e03c0
authored
Jun 07, 2021
by
Michael Klemm
Browse files
Fix issue #73 by using the proper delete[] operator
parent
13fe6442
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
rocm_bandwidth_test_report.cpp
rocm_bandwidth_test_report.cpp
+2
-2
No files found.
rocm_bandwidth_test_report.cpp
View file @
964e03c0
...
...
@@ -341,7 +341,7 @@ void RocmBandwidthTest::DisplayCopyTimeMatrix(bool peak) const {
double
*
perf_matrix
=
new
double
[
agent_index_
*
agent_index_
]();
PopulatePerfMatrix
(
peak
,
perf_matrix
);
PrintPerfMatrix
(
false
,
peak
,
perf_matrix
);
free
(
perf_matrix
)
;
delete
[]
perf_matrix
;
}
void
RocmBandwidthTest
::
DisplayValidationMatrix
()
const
{
...
...
@@ -349,7 +349,7 @@ void RocmBandwidthTest::DisplayValidationMatrix() const {
double
*
perf_matrix
=
new
double
[
agent_index_
*
agent_index_
]();
PopulatePerfMatrix
(
true
,
perf_matrix
);
PrintPerfMatrix
(
true
,
true
,
perf_matrix
);
free
(
perf_matrix
)
;
delete
[]
perf_matrix
;
}
void
RocmBandwidthTest
::
DisplayDevInfo
()
const
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment