summaryrefslogtreecommitdiff
path: root/dev-util/rocm_bandwidth_test/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-05-12 16:42:50 +0300
committerV3n3RiX <venerix@koprulu.sector>2022-05-12 16:42:50 +0300
commit752d6256e5204b958b0ef7905675a940b5e9172f (patch)
tree330d16e6362a49cbed8875a777fe641a43376cd3 /dev-util/rocm_bandwidth_test/files
parent0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff)
gentoo resync : 12.05.2022
Diffstat (limited to 'dev-util/rocm_bandwidth_test/files')
-rw-r--r--dev-util/rocm_bandwidth_test/files/4.3.0-use-proper-delete-operator.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-util/rocm_bandwidth_test/files/4.3.0-use-proper-delete-operator.patch b/dev-util/rocm_bandwidth_test/files/4.3.0-use-proper-delete-operator.patch
new file mode 100644
index 000000000000..d5a2998b3979
--- /dev/null
+++ b/dev-util/rocm_bandwidth_test/files/4.3.0-use-proper-delete-operator.patch
@@ -0,0 +1,31 @@
+From 964e03c013c6827cfa3f6ca0bed81b77d1884b40 Mon Sep 17 00:00:00 2001
+From: Michael Klemm <michael.klemm@amd.com>
+Date: Mon, 7 Jun 2021 16:55:46 +0200
+Subject: [PATCH] Fix issue #73 by using the proper delete[] operator
+
+---
+ rocm_bandwidth_test_report.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/rocm_bandwidth_test_report.cpp b/rocm_bandwidth_test_report.cpp
+index 8895705..d4a0f60 100755
+--- a/rocm_bandwidth_test_report.cpp
++++ b/rocm_bandwidth_test_report.cpp
+@@ -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 {