From 61203453aaca4e47c05c598a673150522160ca87 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Sun, 19 Jun 2016 13:55:49 +0200 Subject: Renamed all C++ source files to .cpp to match the .hpp extension better --- test/correctness/routines/level3/xgemm.cc | 30 ----------------------------- test/correctness/routines/level3/xgemm.cpp | 30 +++++++++++++++++++++++++++++ test/correctness/routines/level3/xhemm.cc | 27 -------------------------- test/correctness/routines/level3/xhemm.cpp | 27 ++++++++++++++++++++++++++ test/correctness/routines/level3/xher2k.cc | 27 -------------------------- test/correctness/routines/level3/xher2k.cpp | 27 ++++++++++++++++++++++++++ test/correctness/routines/level3/xherk.cc | 27 -------------------------- test/correctness/routines/level3/xherk.cpp | 27 ++++++++++++++++++++++++++ test/correctness/routines/level3/xsymm.cc | 30 ----------------------------- test/correctness/routines/level3/xsymm.cpp | 30 +++++++++++++++++++++++++++++ test/correctness/routines/level3/xsyr2k.cc | 30 ----------------------------- test/correctness/routines/level3/xsyr2k.cpp | 30 +++++++++++++++++++++++++++++ test/correctness/routines/level3/xsyrk.cc | 30 ----------------------------- test/correctness/routines/level3/xsyrk.cpp | 30 +++++++++++++++++++++++++++++ test/correctness/routines/level3/xtrmm.cc | 30 ----------------------------- test/correctness/routines/level3/xtrmm.cpp | 30 +++++++++++++++++++++++++++++ test/correctness/routines/level3/xtrsm.cc | 30 ----------------------------- test/correctness/routines/level3/xtrsm.cpp | 30 +++++++++++++++++++++++++++++ 18 files changed, 261 insertions(+), 261 deletions(-) delete mode 100644 test/correctness/routines/level3/xgemm.cc create mode 100644 test/correctness/routines/level3/xgemm.cpp delete mode 100644 test/correctness/routines/level3/xhemm.cc create mode 100644 test/correctness/routines/level3/xhemm.cpp delete mode 100644 test/correctness/routines/level3/xher2k.cc create mode 100644 test/correctness/routines/level3/xher2k.cpp delete mode 100644 test/correctness/routines/level3/xherk.cc create mode 100644 test/correctness/routines/level3/xherk.cpp delete mode 100644 test/correctness/routines/level3/xsymm.cc create mode 100644 test/correctness/routines/level3/xsymm.cpp delete mode 100644 test/correctness/routines/level3/xsyr2k.cc create mode 100644 test/correctness/routines/level3/xsyr2k.cpp delete mode 100644 test/correctness/routines/level3/xsyrk.cc create mode 100644 test/correctness/routines/level3/xsyrk.cpp delete mode 100644 test/correctness/routines/level3/xtrmm.cc create mode 100644 test/correctness/routines/level3/xtrmm.cpp delete mode 100644 test/correctness/routines/level3/xtrsm.cc create mode 100644 test/correctness/routines/level3/xtrsm.cpp (limited to 'test/correctness/routines/level3') diff --git a/test/correctness/routines/level3/xgemm.cc b/test/correctness/routines/level3/xgemm.cc deleted file mode 100644 index 54d41719..00000000 --- a/test/correctness/routines/level3/xgemm.cc +++ /dev/null @@ -1,30 +0,0 @@ - -// ================================================================================================= -// 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/level3/xgemm.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, "SGEMM"); - errors += clblast::RunTests, double, double>(argc, argv, true, "DGEMM"); - errors += clblast::RunTests, float2, float2>(argc, argv, true, "CGEMM"); - errors += clblast::RunTests, double2, double2>(argc, argv, true, "ZGEMM"); - errors += clblast::RunTests, half, half>(argc, argv, true, "HGEMM"); - if (errors > 0) { return 1; } else { return 0; } -} - -// ================================================================================================= diff --git a/test/correctness/routines/level3/xgemm.cpp b/test/correctness/routines/level3/xgemm.cpp new file mode 100644 index 00000000..54d41719 --- /dev/null +++ b/test/correctness/routines/level3/xgemm.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/level3/xgemm.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, "SGEMM"); + errors += clblast::RunTests, double, double>(argc, argv, true, "DGEMM"); + errors += clblast::RunTests, float2, float2>(argc, argv, true, "CGEMM"); + errors += clblast::RunTests, double2, double2>(argc, argv, true, "ZGEMM"); + errors += clblast::RunTests, half, half>(argc, argv, true, "HGEMM"); + if (errors > 0) { return 1; } else { return 0; } +} + +// ================================================================================================= diff --git a/test/correctness/routines/level3/xhemm.cc b/test/correctness/routines/level3/xhemm.cc deleted file mode 100644 index 76c970a7..00000000 --- a/test/correctness/routines/level3/xhemm.cc +++ /dev/null @@ -1,27 +0,0 @@ - -// ================================================================================================= -// 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/level3/xhemm.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, float2, float2>(argc, argv, false, "CHEMM"); - errors += clblast::RunTests, double2, double2>(argc, argv, true, "ZHEMM"); - if (errors > 0) { return 1; } else { return 0; } -} - -// ================================================================================================= diff --git a/test/correctness/routines/level3/xhemm.cpp b/test/correctness/routines/level3/xhemm.cpp new file mode 100644 index 00000000..76c970a7 --- /dev/null +++ b/test/correctness/routines/level3/xhemm.cpp @@ -0,0 +1,27 @@ + +// ================================================================================================= +// 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/level3/xhemm.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, float2, float2>(argc, argv, false, "CHEMM"); + errors += clblast::RunTests, double2, double2>(argc, argv, true, "ZHEMM"); + if (errors > 0) { return 1; } else { return 0; } +} + +// ================================================================================================= diff --git a/test/correctness/routines/level3/xher2k.cc b/test/correctness/routines/level3/xher2k.cc deleted file mode 100644 index c653265e..00000000 --- a/test/correctness/routines/level3/xher2k.cc +++ /dev/null @@ -1,27 +0,0 @@ - -// ================================================================================================= -// 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/level3/xher2k.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, float2, float>(argc, argv, false, "CHER2K"); - errors += clblast::RunTests, double2, double>(argc, argv, true, "ZHER2K"); - if (errors > 0) { return 1; } else { return 0; } -} - -// ================================================================================================= diff --git a/test/correctness/routines/level3/xher2k.cpp b/test/correctness/routines/level3/xher2k.cpp new file mode 100644 index 00000000..c653265e --- /dev/null +++ b/test/correctness/routines/level3/xher2k.cpp @@ -0,0 +1,27 @@ + +// ================================================================================================= +// 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/level3/xher2k.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, float2, float>(argc, argv, false, "CHER2K"); + errors += clblast::RunTests, double2, double>(argc, argv, true, "ZHER2K"); + if (errors > 0) { return 1; } else { return 0; } +} + +// ================================================================================================= diff --git a/test/correctness/routines/level3/xherk.cc b/test/correctness/routines/level3/xherk.cc deleted file mode 100644 index 09ea9e4d..00000000 --- a/test/correctness/routines/level3/xherk.cc +++ /dev/null @@ -1,27 +0,0 @@ - -// ================================================================================================= -// 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/level3/xherk.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, float2, float>(argc, argv, false, "CHERK"); - errors += clblast::RunTests, double2, double>(argc, argv, true, "ZHERK"); - if (errors > 0) { return 1; } else { return 0; } -} - -// ================================================================================================= diff --git a/test/correctness/routines/level3/xherk.cpp b/test/correctness/routines/level3/xherk.cpp new file mode 100644 index 00000000..09ea9e4d --- /dev/null +++ b/test/correctness/routines/level3/xherk.cpp @@ -0,0 +1,27 @@ + +// ================================================================================================= +// 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/level3/xherk.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, float2, float>(argc, argv, false, "CHERK"); + errors += clblast::RunTests, double2, double>(argc, argv, true, "ZHERK"); + if (errors > 0) { return 1; } else { return 0; } +} + +// ================================================================================================= diff --git a/test/correctness/routines/level3/xsymm.cc b/test/correctness/routines/level3/xsymm.cc deleted file mode 100644 index 3cb3515a..00000000 --- a/test/correctness/routines/level3/xsymm.cc +++ /dev/null @@ -1,30 +0,0 @@ - -// ================================================================================================= -// 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/level3/xsymm.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, "SSYMM"); - errors += clblast::RunTests, double, double>(argc, argv, true, "DSYMM"); - errors += clblast::RunTests, float2, float2>(argc, argv, true, "CSYMM"); - errors += clblast::RunTests, double2, double2>(argc, argv, true, "ZSYMM"); - errors += clblast::RunTests, half, half>(argc, argv, true, "HSYMM"); - if (errors > 0) { return 1; } else { return 0; } -} - -// ================================================================================================= diff --git a/test/correctness/routines/level3/xsymm.cpp b/test/correctness/routines/level3/xsymm.cpp new file mode 100644 index 00000000..3cb3515a --- /dev/null +++ b/test/correctness/routines/level3/xsymm.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/level3/xsymm.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, "SSYMM"); + errors += clblast::RunTests, double, double>(argc, argv, true, "DSYMM"); + errors += clblast::RunTests, float2, float2>(argc, argv, true, "CSYMM"); + errors += clblast::RunTests, double2, double2>(argc, argv, true, "ZSYMM"); + errors += clblast::RunTests, half, half>(argc, argv, true, "HSYMM"); + if (errors > 0) { return 1; } else { return 0; } +} + +// ================================================================================================= diff --git a/test/correctness/routines/level3/xsyr2k.cc b/test/correctness/routines/level3/xsyr2k.cc deleted file mode 100644 index 617af04d..00000000 --- a/test/correctness/routines/level3/xsyr2k.cc +++ /dev/null @@ -1,30 +0,0 @@ - -// ================================================================================================= -// 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/level3/xsyr2k.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, "SSYR2K"); - errors += clblast::RunTests, double, double>(argc, argv, true, "DSYR2K"); - errors += clblast::RunTests, float2, float2>(argc, argv, true, "CSYR2K"); - errors += clblast::RunTests, double2, double2>(argc, argv, true, "ZSYR2K"); - errors += clblast::RunTests, half, half>(argc, argv, true, "HSYR2K"); - if (errors > 0) { return 1; } else { return 0; } -} - -// ================================================================================================= diff --git a/test/correctness/routines/level3/xsyr2k.cpp b/test/correctness/routines/level3/xsyr2k.cpp new file mode 100644 index 00000000..617af04d --- /dev/null +++ b/test/correctness/routines/level3/xsyr2k.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/level3/xsyr2k.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, "SSYR2K"); + errors += clblast::RunTests, double, double>(argc, argv, true, "DSYR2K"); + errors += clblast::RunTests, float2, float2>(argc, argv, true, "CSYR2K"); + errors += clblast::RunTests, double2, double2>(argc, argv, true, "ZSYR2K"); + errors += clblast::RunTests, half, half>(argc, argv, true, "HSYR2K"); + if (errors > 0) { return 1; } else { return 0; } +} + +// ================================================================================================= diff --git a/test/correctness/routines/level3/xsyrk.cc b/test/correctness/routines/level3/xsyrk.cc deleted file mode 100644 index 2014b8d0..00000000 --- a/test/correctness/routines/level3/xsyrk.cc +++ /dev/null @@ -1,30 +0,0 @@ - -// ================================================================================================= -// 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/level3/xsyrk.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, "SSYRK"); - errors += clblast::RunTests, double, double>(argc, argv, true, "DSYRK"); - errors += clblast::RunTests, float2, float2>(argc, argv, true, "CSYRK"); - errors += clblast::RunTests, double2, double2>(argc, argv, true, "ZSYRK"); - errors += clblast::RunTests, half, half>(argc, argv, true, "HSYRK"); - if (errors > 0) { return 1; } else { return 0; } -} - -// ================================================================================================= diff --git a/test/correctness/routines/level3/xsyrk.cpp b/test/correctness/routines/level3/xsyrk.cpp new file mode 100644 index 00000000..2014b8d0 --- /dev/null +++ b/test/correctness/routines/level3/xsyrk.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/level3/xsyrk.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, "SSYRK"); + errors += clblast::RunTests, double, double>(argc, argv, true, "DSYRK"); + errors += clblast::RunTests, float2, float2>(argc, argv, true, "CSYRK"); + errors += clblast::RunTests, double2, double2>(argc, argv, true, "ZSYRK"); + errors += clblast::RunTests, half, half>(argc, argv, true, "HSYRK"); + if (errors > 0) { return 1; } else { return 0; } +} + +// ================================================================================================= diff --git a/test/correctness/routines/level3/xtrmm.cc b/test/correctness/routines/level3/xtrmm.cc deleted file mode 100644 index 32640d52..00000000 --- a/test/correctness/routines/level3/xtrmm.cc +++ /dev/null @@ -1,30 +0,0 @@ - -// ================================================================================================= -// 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/level3/xtrmm.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, "STRMM"); - errors += clblast::RunTests, double, double>(argc, argv, true, "DTRMM"); - errors += clblast::RunTests, float2, float2>(argc, argv, true, "CTRMM"); - errors += clblast::RunTests, double2, double2>(argc, argv, true, "ZTRMM"); - errors += clblast::RunTests, half, half>(argc, argv, true, "HTRMM"); - if (errors > 0) { return 1; } else { return 0; } -} - -// ================================================================================================= diff --git a/test/correctness/routines/level3/xtrmm.cpp b/test/correctness/routines/level3/xtrmm.cpp new file mode 100644 index 00000000..32640d52 --- /dev/null +++ b/test/correctness/routines/level3/xtrmm.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/level3/xtrmm.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, "STRMM"); + errors += clblast::RunTests, double, double>(argc, argv, true, "DTRMM"); + errors += clblast::RunTests, float2, float2>(argc, argv, true, "CTRMM"); + errors += clblast::RunTests, double2, double2>(argc, argv, true, "ZTRMM"); + errors += clblast::RunTests, half, half>(argc, argv, true, "HTRMM"); + if (errors > 0) { return 1; } else { return 0; } +} + +// ================================================================================================= diff --git a/test/correctness/routines/level3/xtrsm.cc b/test/correctness/routines/level3/xtrsm.cc deleted file mode 100644 index 6119bd17..00000000 --- a/test/correctness/routines/level3/xtrsm.cc +++ /dev/null @@ -1,30 +0,0 @@ - -// ================================================================================================= -// 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/level3/xtrsm.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, "STRSM"); - errors += clblast::RunTests, double, double>(argc, argv, true, "DTRSM"); - errors += clblast::RunTests, float2, float2>(argc, argv, true, "CTRSM"); - errors += clblast::RunTests, double2, double2>(argc, argv, true, "ZTRSM"); - errors += clblast::RunTests, half, half>(argc, argv, true, "HTRSM"); - if (errors > 0) { return 1; } else { return 0; } -} - -// ================================================================================================= diff --git a/test/correctness/routines/level3/xtrsm.cpp b/test/correctness/routines/level3/xtrsm.cpp new file mode 100644 index 00000000..6119bd17 --- /dev/null +++ b/test/correctness/routines/level3/xtrsm.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/level3/xtrsm.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, "STRSM"); + errors += clblast::RunTests, double, double>(argc, argv, true, "DTRSM"); + errors += clblast::RunTests, float2, float2>(argc, argv, true, "CTRSM"); + errors += clblast::RunTests, double2, double2>(argc, argv, true, "ZTRSM"); + errors += clblast::RunTests, half, half>(argc, argv, true, "HTRSM"); + if (errors > 0) { return 1; } else { return 0; } +} + +// ================================================================================================= -- cgit v1.2.3