summaryrefslogtreecommitdiff
path: root/test/performance/routines/level3
diff options
context:
space:
mode:
authorCNugteren <web@cedricnugteren.nl>2015-09-18 10:19:03 +0200
committerCNugteren <web@cedricnugteren.nl>2015-09-18 10:19:03 +0200
commit4796c9bcbd84a9e8be1e2864ba47e0d6bf3e6632 (patch)
treed74289f024341071ec11324a9827e2e33428f895 /test/performance/routines/level3
parent6105ad6f5b40b319477be7b51b8631e510d58672 (diff)
Added generated main functions for correctness/performance tests for level 2 routines
Diffstat (limited to 'test/performance/routines/level3')
-rw-r--r--test/performance/routines/level3/xgemm.cc7
-rw-r--r--test/performance/routines/level3/xhemm.cc13
-rw-r--r--test/performance/routines/level3/xher2k.cc13
-rw-r--r--test/performance/routines/level3/xherk.cc13
-rw-r--r--test/performance/routines/level3/xsymm.cc7
-rw-r--r--test/performance/routines/level3/xsyr2k.cc7
-rw-r--r--test/performance/routines/level3/xsyrk.cc7
-rw-r--r--test/performance/routines/level3/xtrmm.cc7
-rw-r--r--test/performance/routines/level3/xtrsm.cc35
9 files changed, 49 insertions, 60 deletions
diff --git a/test/performance/routines/level3/xgemm.cc b/test/performance/routines/level3/xgemm.cc
index c45c238f..2082ceac 100644
--- a/test/performance/routines/level3/xgemm.cc
+++ b/test/performance/routines/level3/xgemm.cc
@@ -7,15 +7,11 @@
// Author(s):
// Cedric Nugteren <www.cedricnugteren.nl>
//
-// This file implements the Xgemm command-line interface performance tester.
-//
// =================================================================================================
#include "performance/client.h"
#include "routines/level3/xgemm.h"
-// =================================================================================================
-
// Shortcuts to the clblast namespace
using float2 = clblast::float2;
using double2 = clblast::double2;
@@ -23,8 +19,7 @@ using double2 = clblast::double2;
// Main function (not within the clblast namespace)
int main(int argc, char *argv[]) {
switch(clblast::GetPrecision(argc, argv)) {
- case clblast::Precision::kHalf:
- throw std::runtime_error("Unsupported precision mode");
+ case clblast::Precision::kHalf: throw std::runtime_error("Unsupported precision mode");
case clblast::Precision::kSingle:
clblast::RunClient<clblast::TestXgemm<float>, float, float>(argc, argv); break;
case clblast::Precision::kDouble:
diff --git a/test/performance/routines/level3/xhemm.cc b/test/performance/routines/level3/xhemm.cc
index d215653b..cc68e937 100644
--- a/test/performance/routines/level3/xhemm.cc
+++ b/test/performance/routines/level3/xhemm.cc
@@ -7,15 +7,11 @@
// Author(s):
// Cedric Nugteren <www.cedricnugteren.nl>
//
-// This file implements the Xhemm command-line interface performance tester.
-//
// =================================================================================================
#include "performance/client.h"
#include "routines/level3/xhemm.h"
-// =================================================================================================
-
// Shortcuts to the clblast namespace
using float2 = clblast::float2;
using double2 = clblast::double2;
@@ -23,12 +19,9 @@ using double2 = clblast::double2;
// Main function (not within the clblast namespace)
int main(int argc, char *argv[]) {
switch(clblast::GetPrecision(argc, argv)) {
- case clblast::Precision::kHalf:
- throw std::runtime_error("Unsupported precision mode");
- case clblast::Precision::kSingle:
- throw std::runtime_error("Unsupported precision mode");
- case clblast::Precision::kDouble:
- throw std::runtime_error("Unsupported precision mode");
+ case clblast::Precision::kHalf: throw std::runtime_error("Unsupported precision mode");
+ case clblast::Precision::kSingle: throw std::runtime_error("Unsupported precision mode");
+ case clblast::Precision::kDouble: throw std::runtime_error("Unsupported precision mode");
case clblast::Precision::kComplexSingle:
clblast::RunClient<clblast::TestXhemm<float2>, float2, float2>(argc, argv); break;
case clblast::Precision::kComplexDouble:
diff --git a/test/performance/routines/level3/xher2k.cc b/test/performance/routines/level3/xher2k.cc
index 2e1f248a..70d76bed 100644
--- a/test/performance/routines/level3/xher2k.cc
+++ b/test/performance/routines/level3/xher2k.cc
@@ -7,15 +7,11 @@
// Author(s):
// Cedric Nugteren <www.cedricnugteren.nl>
//
-// This file implements the Xher2k command-line interface performance tester.
-//
// =================================================================================================
#include "performance/client.h"
#include "routines/level3/xher2k.h"
-// =================================================================================================
-
// Shortcuts to the clblast namespace
using float2 = clblast::float2;
using double2 = clblast::double2;
@@ -23,12 +19,9 @@ using double2 = clblast::double2;
// Main function (not within the clblast namespace)
int main(int argc, char *argv[]) {
switch(clblast::GetPrecision(argc, argv)) {
- case clblast::Precision::kHalf:
- throw std::runtime_error("Unsupported precision mode");
- case clblast::Precision::kSingle:
- throw std::runtime_error("Unsupported precision mode");
- case clblast::Precision::kDouble:
- throw std::runtime_error("Unsupported precision mode");
+ case clblast::Precision::kHalf: throw std::runtime_error("Unsupported precision mode");
+ case clblast::Precision::kSingle: throw std::runtime_error("Unsupported precision mode");
+ case clblast::Precision::kDouble: throw std::runtime_error("Unsupported precision mode");
case clblast::Precision::kComplexSingle:
clblast::RunClient<clblast::TestXher2k<float2,float>, float2, float>(argc, argv); break;
case clblast::Precision::kComplexDouble:
diff --git a/test/performance/routines/level3/xherk.cc b/test/performance/routines/level3/xherk.cc
index 4386f78c..b3b5dddf 100644
--- a/test/performance/routines/level3/xherk.cc
+++ b/test/performance/routines/level3/xherk.cc
@@ -7,15 +7,11 @@
// Author(s):
// Cedric Nugteren <www.cedricnugteren.nl>
//
-// This file implements the Xherk command-line interface performance tester.
-//
// =================================================================================================
#include "performance/client.h"
#include "routines/level3/xherk.h"
-// =================================================================================================
-
// Shortcuts to the clblast namespace
using float2 = clblast::float2;
using double2 = clblast::double2;
@@ -23,12 +19,9 @@ using double2 = clblast::double2;
// Main function (not within the clblast namespace)
int main(int argc, char *argv[]) {
switch(clblast::GetPrecision(argc, argv)) {
- case clblast::Precision::kHalf:
- throw std::runtime_error("Unsupported precision mode");
- case clblast::Precision::kSingle:
- throw std::runtime_error("Unsupported precision mode");
- case clblast::Precision::kDouble:
- throw std::runtime_error("Unsupported precision mode");
+ case clblast::Precision::kHalf: throw std::runtime_error("Unsupported precision mode");
+ case clblast::Precision::kSingle: throw std::runtime_error("Unsupported precision mode");
+ case clblast::Precision::kDouble: throw std::runtime_error("Unsupported precision mode");
case clblast::Precision::kComplexSingle:
clblast::RunClient<clblast::TestXherk<float2,float>, float2, float>(argc, argv); break;
case clblast::Precision::kComplexDouble:
diff --git a/test/performance/routines/level3/xsymm.cc b/test/performance/routines/level3/xsymm.cc
index bd014cee..f2292273 100644
--- a/test/performance/routines/level3/xsymm.cc
+++ b/test/performance/routines/level3/xsymm.cc
@@ -7,15 +7,11 @@
// Author(s):
// Cedric Nugteren <www.cedricnugteren.nl>
//
-// This file implements the Xsymm command-line interface performance tester.
-//
// =================================================================================================
#include "performance/client.h"
#include "routines/level3/xsymm.h"
-// =================================================================================================
-
// Shortcuts to the clblast namespace
using float2 = clblast::float2;
using double2 = clblast::double2;
@@ -23,8 +19,7 @@ using double2 = clblast::double2;
// Main function (not within the clblast namespace)
int main(int argc, char *argv[]) {
switch(clblast::GetPrecision(argc, argv)) {
- case clblast::Precision::kHalf:
- throw std::runtime_error("Unsupported precision mode");
+ case clblast::Precision::kHalf: throw std::runtime_error("Unsupported precision mode");
case clblast::Precision::kSingle:
clblast::RunClient<clblast::TestXsymm<float>, float, float>(argc, argv); break;
case clblast::Precision::kDouble:
diff --git a/test/performance/routines/level3/xsyr2k.cc b/test/performance/routines/level3/xsyr2k.cc
index 1261be88..0c8f8f7c 100644
--- a/test/performance/routines/level3/xsyr2k.cc
+++ b/test/performance/routines/level3/xsyr2k.cc
@@ -7,15 +7,11 @@
// Author(s):
// Cedric Nugteren <www.cedricnugteren.nl>
//
-// This file implements the Xsyr2k command-line interface performance tester.
-//
// =================================================================================================
#include "performance/client.h"
#include "routines/level3/xsyr2k.h"
-// =================================================================================================
-
// Shortcuts to the clblast namespace
using float2 = clblast::float2;
using double2 = clblast::double2;
@@ -23,8 +19,7 @@ using double2 = clblast::double2;
// Main function (not within the clblast namespace)
int main(int argc, char *argv[]) {
switch(clblast::GetPrecision(argc, argv)) {
- case clblast::Precision::kHalf:
- throw std::runtime_error("Unsupported precision mode");
+ case clblast::Precision::kHalf: throw std::runtime_error("Unsupported precision mode");
case clblast::Precision::kSingle:
clblast::RunClient<clblast::TestXsyr2k<float>, float, float>(argc, argv); break;
case clblast::Precision::kDouble:
diff --git a/test/performance/routines/level3/xsyrk.cc b/test/performance/routines/level3/xsyrk.cc
index 5799130f..ccd4511a 100644
--- a/test/performance/routines/level3/xsyrk.cc
+++ b/test/performance/routines/level3/xsyrk.cc
@@ -7,15 +7,11 @@
// Author(s):
// Cedric Nugteren <www.cedricnugteren.nl>
//
-// This file implements the Xsyrk command-line interface performance tester.
-//
// =================================================================================================
#include "performance/client.h"
#include "routines/level3/xsyrk.h"
-// =================================================================================================
-
// Shortcuts to the clblast namespace
using float2 = clblast::float2;
using double2 = clblast::double2;
@@ -23,8 +19,7 @@ using double2 = clblast::double2;
// Main function (not within the clblast namespace)
int main(int argc, char *argv[]) {
switch(clblast::GetPrecision(argc, argv)) {
- case clblast::Precision::kHalf:
- throw std::runtime_error("Unsupported precision mode");
+ case clblast::Precision::kHalf: throw std::runtime_error("Unsupported precision mode");
case clblast::Precision::kSingle:
clblast::RunClient<clblast::TestXsyrk<float>, float, float>(argc, argv); break;
case clblast::Precision::kDouble:
diff --git a/test/performance/routines/level3/xtrmm.cc b/test/performance/routines/level3/xtrmm.cc
index c30866e9..8278d077 100644
--- a/test/performance/routines/level3/xtrmm.cc
+++ b/test/performance/routines/level3/xtrmm.cc
@@ -7,15 +7,11 @@
// Author(s):
// Cedric Nugteren <www.cedricnugteren.nl>
//
-// This file implements the Xtrmm command-line interface performance tester.
-//
// =================================================================================================
#include "performance/client.h"
#include "routines/level3/xtrmm.h"
-// =================================================================================================
-
// Shortcuts to the clblast namespace
using float2 = clblast::float2;
using double2 = clblast::double2;
@@ -23,8 +19,7 @@ using double2 = clblast::double2;
// Main function (not within the clblast namespace)
int main(int argc, char *argv[]) {
switch(clblast::GetPrecision(argc, argv)) {
- case clblast::Precision::kHalf:
- throw std::runtime_error("Unsupported precision mode");
+ case clblast::Precision::kHalf: throw std::runtime_error("Unsupported precision mode");
case clblast::Precision::kSingle:
clblast::RunClient<clblast::TestXtrmm<float>, float, float>(argc, argv); break;
case clblast::Precision::kDouble:
diff --git a/test/performance/routines/level3/xtrsm.cc b/test/performance/routines/level3/xtrsm.cc
new file mode 100644
index 00000000..45f71c5e
--- /dev/null
+++ b/test/performance/routines/level3/xtrsm.cc
@@ -0,0 +1,35 @@
+
+// =================================================================================================
+// 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 "performance/client.h"
+#include "routines/level3/xtrsm.h"
+
+// 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[]) {
+ switch(clblast::GetPrecision(argc, argv)) {
+ case clblast::Precision::kHalf: throw std::runtime_error("Unsupported precision mode");
+ case clblast::Precision::kSingle:
+ clblast::RunClient<clblast::TestXtrsm<float>, float, float>(argc, argv); break;
+ case clblast::Precision::kDouble:
+ clblast::RunClient<clblast::TestXtrsm<double>, double, double>(argc, argv); break;
+ case clblast::Precision::kComplexSingle:
+ clblast::RunClient<clblast::TestXtrsm<float2>, float2, float2>(argc, argv); break;
+ case clblast::Precision::kComplexDouble:
+ clblast::RunClient<clblast::TestXtrsm<double2>, double2, double2>(argc, argv); break;
+ }
+ return 0;
+}
+
+// =================================================================================================