diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2018-01-11 19:42:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-11 19:42:50 +0100 |
commit | 9b084d04093fdbfb22ee4790c6b3db5c55cd2719 (patch) | |
tree | d8f8bc1b3884c0340df9f6d95b4837ed3dff8deb /test/correctness/routines/levelx | |
parent | c988c2cdd166ebf6d5b5ec20f445de1a95a65b16 (diff) | |
parent | 99a4df88a6d808ea77c9116ce63621503c00b57a (diff) |
Merge pull request #239 from CNugteren/gemm_strided_batched
GemmStridedBatched
Diffstat (limited to 'test/correctness/routines/levelx')
-rw-r--r-- | test/correctness/routines/levelx/xgemmstridedbatched.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/correctness/routines/levelx/xgemmstridedbatched.cpp b/test/correctness/routines/levelx/xgemmstridedbatched.cpp new file mode 100644 index 00000000..d2ea19d0 --- /dev/null +++ b/test/correctness/routines/levelx/xgemmstridedbatched.cpp @@ -0,0 +1,26 @@ + +// ================================================================================================= +// 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 "test/correctness/testblas.hpp" +#include "test/routines/levelx/xgemmstridedbatched.hpp" + +// Main function (not within the clblast namespace) +int main(int argc, char *argv[]) { + auto errors = size_t{0}; + errors += clblast::RunTests<clblast::TestXgemmStridedBatched<float>, float, float>(argc, argv, false, "SGEMMSTRIDEDBATCHED"); + errors += clblast::RunTests<clblast::TestXgemmStridedBatched<double>, double, double>(argc, argv, true, "DGEMMSTRIDEDBATCHED"); + errors += clblast::RunTests<clblast::TestXgemmStridedBatched<clblast::float2>, clblast::float2, clblast::float2>(argc, argv, true, "CGEMMSTRIDEDBATCHED"); + errors += clblast::RunTests<clblast::TestXgemmStridedBatched<clblast::double2>, clblast::double2, clblast::double2>(argc, argv, true, "ZGEMMSTRIDEDBATCHED"); + errors += clblast::RunTests<clblast::TestXgemmStridedBatched<clblast::half>, clblast::half, clblast::half>(argc, argv, true, "HGEMMSTRIDEDBATCHED"); + if (errors > 0) { return 1; } else { return 0; } +} + +// ================================================================================================= |