diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-03-05 10:38:38 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-03-05 10:38:38 +0100 |
commit | f9a520b3aff7b4eec99d9e11a03f9467e7ab351c (patch) | |
tree | 90612ac786448fa6e76681ecf6755f1c35c458a4 /test/correctness | |
parent | 37228c90988509acef9e8a892a752300b7645210 (diff) |
Prepared generator for batched routines; added batched AXPY routine interface
Diffstat (limited to 'test/correctness')
-rw-r--r-- | test/correctness/routines/levelx/xaxpybatched.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/correctness/routines/levelx/xaxpybatched.cpp b/test/correctness/routines/levelx/xaxpybatched.cpp new file mode 100644 index 00000000..a106440f --- /dev/null +++ b/test/correctness/routines/levelx/xaxpybatched.cpp @@ -0,0 +1,30 @@ + +// ================================================================================================= +// This file is part of the CLBlast project. The project is licensed under Apache Version 2.0. This +// project loosely follows the Google C++ styleguide and uses a tab-size of two spaces and a max- +// width of 100 characters per line. +// +// Author(s): +// Cedric Nugteren <www.cedricnugteren.nl> +// +// ================================================================================================= + +#include "test/correctness/testblas.hpp" +#include "test/routines/levelx/xaxpybatched.hpp" + +// Shortcuts to the clblast namespace +using float2 = clblast::float2; +using double2 = clblast::double2; + +// Main function (not within the clblast namespace) +int main(int argc, char *argv[]) { + auto errors = size_t{0}; + errors += clblast::RunTests<clblast::TestXaxpyBatched<float>, float, float>(argc, argv, false, "SAXPYBATCHED"); + errors += clblast::RunTests<clblast::TestXaxpyBatched<double>, double, double>(argc, argv, true, "DAXPYBATCHED"); + errors += clblast::RunTests<clblast::TestXaxpyBatched<float2>, float2, float2>(argc, argv, true, "CAXPYBATCHED"); + errors += clblast::RunTests<clblast::TestXaxpyBatched<double2>, double2, double2>(argc, argv, true, "ZAXPYBATCHED"); + errors += clblast::RunTests<clblast::TestXaxpyBatched<half>, half, half>(argc, argv, true, "HAXPYBATCHED"); + if (errors > 0) { return 1; } else { return 0; } +} + +// ================================================================================================= |