summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-06-26 21:38:04 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2017-06-26 21:38:04 +0200
commitce528a9d39a976760f84c194016f22fc493a5d57 (patch)
treedc0bd7d633f18ad3281bae9c68b48b9818b573e3 /test
parenta823edb65ffadd21bb825b9e2184e09a06879c1d (diff)
Fixed and suppresses several warnings for MSVC
Diffstat (limited to 'test')
-rw-r--r--test/routines/levelx/xaxpybatched.hpp2
-rw-r--r--test/routines/levelx/xgemmbatched.hpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/routines/levelx/xaxpybatched.hpp b/test/routines/levelx/xaxpybatched.hpp
index 5385e86e..4a8fc564 100644
--- a/test/routines/levelx/xaxpybatched.hpp
+++ b/test/routines/levelx/xaxpybatched.hpp
@@ -62,7 +62,7 @@ class TestXaxpyBatched {
for (auto batch = size_t{0}; batch < args.batch_count; ++batch) {
args.x_offsets[batch] = batch * PerBatchSizeX(args) + args.x_offset;
args.y_offsets[batch] = batch * PerBatchSizeY(args) + args.y_offset;
- args.alphas[batch] = args.alpha + Constant<T>(batch);
+ args.alphas[batch] = args.alpha + Constant<T>(static_cast<double>(batch));
}
}
diff --git a/test/routines/levelx/xgemmbatched.hpp b/test/routines/levelx/xgemmbatched.hpp
index ebfd8b19..56823e47 100644
--- a/test/routines/levelx/xgemmbatched.hpp
+++ b/test/routines/levelx/xgemmbatched.hpp
@@ -86,8 +86,8 @@ class TestXgemmBatched {
args.a_offsets[batch] = batch * PerBatchSizeA(args) + args.a_offset;
args.b_offsets[batch] = batch * PerBatchSizeB(args) + args.b_offset;
args.c_offsets[batch] = batch * PerBatchSizeC(args) + args.c_offset;
- args.alphas[batch] = args.alpha + Constant<T>(batch);
- args.betas[batch] = args.beta + Constant<T>(batch);
+ args.alphas[batch] = args.alpha + Constant<T>(static_cast<double>(batch));
+ args.betas[batch] = args.beta + Constant<T>(static_cast<double>(batch));
}
}