diff options
author | CNugteren <web@cedricnugteren.nl> | 2015-09-18 10:19:03 +0200 |
---|---|---|
committer | CNugteren <web@cedricnugteren.nl> | 2015-09-18 10:19:03 +0200 |
commit | 4796c9bcbd84a9e8be1e2864ba47e0d6bf3e6632 (patch) | |
tree | d74289f024341071ec11324a9827e2e33428f895 /test/performance/routines/level1/xdotc.cc | |
parent | 6105ad6f5b40b319477be7b51b8631e510d58672 (diff) |
Added generated main functions for correctness/performance tests for level 2 routines
Diffstat (limited to 'test/performance/routines/level1/xdotc.cc')
-rw-r--r-- | test/performance/routines/level1/xdotc.cc | 13 |
1 files changed, 3 insertions, 10 deletions
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: |