diff options
Diffstat (limited to 'test/performance/routines/level1')
-rw-r--r-- | test/performance/routines/level1/xaxpy.cc | 7 | ||||
-rw-r--r-- | test/performance/routines/level1/xcopy.cc | 7 | ||||
-rw-r--r-- | test/performance/routines/level1/xdot.cc | 13 | ||||
-rw-r--r-- | test/performance/routines/level1/xdotc.cc | 13 | ||||
-rw-r--r-- | test/performance/routines/level1/xdotu.cc | 13 | ||||
-rw-r--r-- | test/performance/routines/level1/xscal.cc | 7 | ||||
-rw-r--r-- | test/performance/routines/level1/xswap.cc | 7 |
7 files changed, 13 insertions, 54 deletions
diff --git a/test/performance/routines/level1/xaxpy.cc b/test/performance/routines/level1/xaxpy.cc index fe90c697..7ab15f28 100644 --- a/test/performance/routines/level1/xaxpy.cc +++ b/test/performance/routines/level1/xaxpy.cc @@ -7,15 +7,11 @@ // Author(s): // Cedric Nugteren <www.cedricnugteren.nl> // -// This file implements the Xaxpy command-line interface performance tester. -// // ================================================================================================= #include "performance/client.h" #include "routines/level1/xaxpy.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::TestXaxpy<float>, float, float>(argc, argv); break; case clblast::Precision::kDouble: diff --git a/test/performance/routines/level1/xcopy.cc b/test/performance/routines/level1/xcopy.cc index 70b6b348..6277e8fb 100644 --- a/test/performance/routines/level1/xcopy.cc +++ b/test/performance/routines/level1/xcopy.cc @@ -7,15 +7,11 @@ // Author(s): // Cedric Nugteren <www.cedricnugteren.nl> // -// This file implements the Xcopy command-line interface performance tester. -// // ================================================================================================= #include "performance/client.h" #include "routines/level1/xcopy.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::TestXcopy<float>, float, float>(argc, argv); break; case clblast::Precision::kDouble: diff --git a/test/performance/routines/level1/xdot.cc b/test/performance/routines/level1/xdot.cc index c82547da..5aa76762 100644 --- a/test/performance/routines/level1/xdot.cc +++ b/test/performance/routines/level1/xdot.cc @@ -7,15 +7,11 @@ // Author(s): // Cedric Nugteren <www.cedricnugteren.nl> // -// This file implements the Xdot command-line interface performance tester. -// // ================================================================================================= #include "performance/client.h" #include "routines/level1/xdot.h" -// ================================================================================================= - // Shortcuts to the clblast namespace using float2 = clblast::float2; using double2 = clblast::double2; @@ -23,16 +19,13 @@ 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::TestXdot<float>, float, float>(argc, argv); break; case clblast::Precision::kDouble: clblast::RunClient<clblast::TestXdot<double>, double, double>(argc, argv); break; - case clblast::Precision::kComplexSingle: - throw std::runtime_error("Unsupported precision mode"); - case clblast::Precision::kComplexDouble: - throw std::runtime_error("Unsupported precision mode"); + case clblast::Precision::kComplexSingle: throw std::runtime_error("Unsupported precision mode"); + case clblast::Precision::kComplexDouble: throw std::runtime_error("Unsupported precision mode"); } return 0; } diff --git a/test/performance/routines/level1/xdotc.cc b/test/performance/routines/level1/xdotc.cc index 327975d8..81511085 100644 --- a/test/performance/routines/level1/xdotc.cc +++ b/test/performance/routines/level1/xdotc.cc @@ -7,15 +7,11 @@ // Author(s): // Cedric Nugteren <www.cedricnugteren.nl> // -// This file implements the Xdotc command-line interface performance tester. -// // ================================================================================================= #include "performance/client.h" #include "routines/level1/xdotc.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::TestXdotc<float2>, float2, float2>(argc, argv); break; case clblast::Precision::kComplexDouble: diff --git a/test/performance/routines/level1/xdotu.cc b/test/performance/routines/level1/xdotu.cc index 622ffb8e..888eede3 100644 --- a/test/performance/routines/level1/xdotu.cc +++ b/test/performance/routines/level1/xdotu.cc @@ -7,15 +7,11 @@ // Author(s): // Cedric Nugteren <www.cedricnugteren.nl> // -// This file implements the Xdotu command-line interface performance tester. -// // ================================================================================================= #include "performance/client.h" #include "routines/level1/xdotu.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::TestXdotu<float2>, float2, float2>(argc, argv); break; case clblast::Precision::kComplexDouble: diff --git a/test/performance/routines/level1/xscal.cc b/test/performance/routines/level1/xscal.cc index 3963ba3a..be49c066 100644 --- a/test/performance/routines/level1/xscal.cc +++ b/test/performance/routines/level1/xscal.cc @@ -7,15 +7,11 @@ // Author(s): // Cedric Nugteren <www.cedricnugteren.nl> // -// This file implements the Xscal command-line interface performance tester. -// // ================================================================================================= #include "performance/client.h" #include "routines/level1/xscal.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::TestXscal<float>, float, float>(argc, argv); break; case clblast::Precision::kDouble: diff --git a/test/performance/routines/level1/xswap.cc b/test/performance/routines/level1/xswap.cc index 94f271ee..52fdc580 100644 --- a/test/performance/routines/level1/xswap.cc +++ b/test/performance/routines/level1/xswap.cc @@ -7,15 +7,11 @@ // Author(s): // Cedric Nugteren <www.cedricnugteren.nl> // -// This file implements the Xswap command-line interface performance tester. -// // ================================================================================================= #include "performance/client.h" #include "routines/level1/xswap.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::TestXswap<float>, float, float>(argc, argv); break; case clblast::Precision::kDouble: |