From f9a520b3aff7b4eec99d9e11a03f9467e7ab351c Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Sun, 5 Mar 2017 10:38:38 +0100 Subject: Prepared generator for batched routines; added batched AXPY routine interface --- test/correctness/routines/levelx/xaxpybatched.cpp | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 test/correctness/routines/levelx/xaxpybatched.cpp (limited to 'test/correctness/routines/levelx/xaxpybatched.cpp') 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 +// +// ================================================================================================= + +#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, float, float>(argc, argv, false, "SAXPYBATCHED"); + errors += clblast::RunTests, double, double>(argc, argv, true, "DAXPYBATCHED"); + errors += clblast::RunTests, float2, float2>(argc, argv, true, "CAXPYBATCHED"); + errors += clblast::RunTests, double2, double2>(argc, argv, true, "ZAXPYBATCHED"); + errors += clblast::RunTests, half, half>(argc, argv, true, "HAXPYBATCHED"); + if (errors > 0) { return 1; } else { return 0; } +} + +// ================================================================================================= -- cgit v1.2.3