diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2023-05-07 20:02:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-07 20:02:52 +0200 |
commit | 3d0c227fa5004067d857c74f7963876b34ed4170 (patch) | |
tree | 3ff7c3766f1c2f13717ecc4a819da0815fa7cdb3 /test/performance/client.cpp | |
parent | 1573f7d3040ddb6005e71bf4f770566f627236d2 (diff) |
AMAX/AMIN integer testing and bug fixes (#457)
* Fixed a bug in XAMAX/XMIN routines that caused the increment and offset to be included in the result
* Perform proper integer-output testing in XAMAX tests
* A few changes towards getting it ready for a PR
* Also fix compilation for clBLAS and cuBLAS references
* Fix a bug that would only use the real part of complex numbers in the amax/amin routines
* A few small fixes related to the AMAX tests
Diffstat (limited to 'test/performance/client.cpp')
-rw-r--r-- | test/performance/client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/performance/client.cpp b/test/performance/client.cpp index 34891429..e6930203 100644 --- a/test/performance/client.cpp +++ b/test/performance/client.cpp @@ -246,6 +246,7 @@ void Client<T,U>::PerformanceTest(Arguments<U> &args, const SetMetric set_sizes) auto c_mat = Buffer<T>(context, args.c_size); auto ap_mat = Buffer<T>(context, args.ap_size); auto scalar = Buffer<T>(context, args.scalar_size); + auto scalar_uint = Buffer<unsigned int>(context, args.scalar_size); x_vec.Write(queue, args.x_size, x_source); y_vec.Write(queue, args.y_size, y_source); a_mat.Write(queue, args.a_size, a_source); @@ -253,7 +254,7 @@ void Client<T,U>::PerformanceTest(Arguments<U> &args, const SetMetric set_sizes) c_mat.Write(queue, args.c_size, c_source); ap_mat.Write(queue, args.ap_size, ap_source); scalar.Write(queue, args.scalar_size, scalar_source); - auto buffers = Buffers<T>{x_vec, y_vec, a_mat, b_mat, c_mat, ap_mat, scalar}; + auto buffers = Buffers<T>{x_vec, y_vec, a_mat, b_mat, c_mat, ap_mat, scalar, scalar_uint}; // Runs the routines and collects the timings auto timings = std::vector<std::pair<std::string, TimeResult>>(); |