summaryrefslogtreecommitdiff
path: root/src/tuning/tuning.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tuning/tuning.hpp')
-rw-r--r--src/tuning/tuning.hpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/tuning/tuning.hpp b/src/tuning/tuning.hpp
index 2c7f6a0b..12826d0c 100644
--- a/src/tuning/tuning.hpp
+++ b/src/tuning/tuning.hpp
@@ -180,12 +180,9 @@ void Tuner(int argc, char* argv[]) {
auto host_buffer = std::vector<T>(size);
PopulateVector(host_buffer, mt, dist);
source_buffers.push_back(host_buffer);
- auto reference_buffer = std::vector<T>(size);
- reference_buffers.push_back(reference_buffer);
- auto result_buffer = std::vector<T>(size);
- result_buffers.push_back(result_buffer);
- auto device_buffer = Buffer<T>(context, size);
- device_buffers.push_back(device_buffer);
+ reference_buffers.push_back(std::vector<T>(size));
+ result_buffers.push_back(std::vector<T>(size));
+ device_buffers.push_back(Buffer<T>(context, size));
}
// Sets the tunable parameters and their possible values
@@ -329,7 +326,7 @@ void Tuner(int argc, char* argv[]) {
printf(" %6.1lf |", settings.metric_amount / (time_ms * 1.0e6));
printf(" %sresults match%s |\n", kPrintSuccess.c_str(), kPrintEnd.c_str());
}
- catch (const CLCudaAPIBuildError &e) {
+ catch (CLCudaAPIBuildError) {
const auto status_code = DispatchExceptionCatchAll(true);
printf(" %scompilation error: %5d%s |",
kPrintError.c_str(), static_cast<int>(status_code), kPrintEnd.c_str());