/* ************************************************************************ * Copyright (C) 2018-2023 Advanced Micro Devices, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell cop- * ies of the Software, and to permit persons to whom the Software is furnished * to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IM- * PLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNE- * CTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * ************************************************************************ */ #define ROCBLAS_BETA_FEATURES_API #include "rocblas_data.hpp" #include "rocblas_datatype2string.hpp" #include "rocblas_test.hpp" #include "testing_gemm_batched_ex_get_solutions.hpp" #include "testing_gemm_ex_get_solutions.hpp" #include "testing_gemm_strided_batched_ex_get_solutions.hpp" #include "type_dispatch.hpp" #include #include #include namespace { // Types of GEMM tests enum get_solutions_test_type { GEMM_EX, GEMM_BATCHED_EX, GEMM_STRIDED_BATCHED_EX, }; // ---------------------------------------------------------------------------- // get_solutions testing template // ---------------------------------------------------------------------------- // The first template parameter is a class template which determines which // combination of types applies to this test, and for those that do, instantiates // the test code based on the function named in the test Arguments. The second // template parameter is an enum which allows the different flavors of GEMM_EX to // be differentiated. // // The RocBLAS_Test base class takes this class (CRTP) and the first template // parameter as arguments, and provides common types such as type_filter_functor, // and derives from the Google Test parameterized base classes. // // This class defines functions for filtering the types and function names which // apply to this test, and for generating the suffix of the Google Test name // corresponding to each instance of this test. template