summaryrefslogtreecommitdiff
path: root/test/routines/level1/xdot.h
diff options
context:
space:
mode:
authorcnugteren <web@cedricnugteren.nl>2016-03-30 21:37:56 -0700
committercnugteren <web@cedricnugteren.nl>2016-03-30 21:37:56 -0700
commit8c3c6db7d07adaacb702fdaabfdf18f74fbfea13 (patch)
treef6dcd3f9d4f987ec74f87b1939c4b3600a7d42d0 /test/routines/level1/xdot.h
parent6578102ae996ce0aa52b45704f38c1cd5a10d3c0 (diff)
parent5409f349a17f60ba68133fd0cc9789fb2918f790 (diff)
Merge branch 'level1_routines' into development
Diffstat (limited to 'test/routines/level1/xdot.h')
-rw-r--r--test/routines/level1/xdot.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/routines/level1/xdot.h b/test/routines/level1/xdot.h
index bfcfdaff..04669f52 100644
--- a/test/routines/level1/xdot.h
+++ b/test/routines/level1/xdot.h
@@ -54,7 +54,7 @@ class TestXdot {
static void SetSizes(Arguments<T> &args) {
args.x_size = GetSizeX(args);
args.y_size = GetSizeY(args);
- args.dot_size = GetSizeDot(args);
+ args.scalar_size = GetSizeDot(args);
}
// Describes what the default values of the leading dimensions of the matrices are
@@ -72,7 +72,7 @@ class TestXdot {
auto queue_plain = queue();
auto event = cl_event{};
auto status = Dot<T>(args.n,
- buffers.dot(), args.dot_offset,
+ buffers.scalar(), args.dot_offset,
buffers.x_vec(), args.x_offset, args.x_inc,
buffers.y_vec(), args.y_offset, args.y_inc,
&queue_plain, &event);
@@ -85,7 +85,7 @@ class TestXdot {
auto queue_plain = queue();
auto event = cl_event{};
auto status = clblasXdot<T>(args.n,
- buffers.dot(), args.dot_offset,
+ buffers.scalar(), args.dot_offset,
buffers.x_vec(), args.x_offset, args.x_inc,
buffers.y_vec(), args.y_offset, args.y_inc,
1, &queue_plain, 0, nullptr, &event);
@@ -95,8 +95,8 @@ class TestXdot {
// Describes how to download the results of the computation (more importantly: which buffer)
static std::vector<T> DownloadResult(const Arguments<T> &args, Buffers<T> &buffers, Queue &queue) {
- std::vector<T> result(args.dot_size, static_cast<T>(0));
- buffers.dot.Read(queue, args.dot_size, result);
+ std::vector<T> result(args.scalar_size, static_cast<T>(0));
+ buffers.scalar.Read(queue, args.scalar_size, result);
return result;
}