Debian Codegraph @

packages/kokkos-kernels/perf_test/blas/blas2/tracked_testing.hpp

raw
1 //@HEADER
2 // ************************************************************************
3 //
4 // Kokkos v. 4.0
5 // Copyright (2022) National Technology & Engineering
6 // Solutions of Sandia, LLC (NTESS).
7 //
8 // Under the terms of Contract DE-NA0003525 with NTESS,
9 // the U.S. Government retains certain rights in this software.
10 //
11 // Part of Kokkos, under the Apache License v2.0 with LLVM Exceptions.
12 // See https://kokkos.org/LICENSE for license information.
13 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
14 //
15 //@HEADER
16 //
17 // Created by Poliakoff, David Zoeller on 4/26/21.
18 //
19 #ifndef KOKKOSKERNELS_BLAS2_TRACKED_TESTING_HPP
20 #define KOKKOSKERNELS_BLAS2_TRACKED_TESTING_HPP
21
22 #include <common/RAJAPerfSuite.hpp>
23 #include <common/Executor.hpp>
24
25 #include "KokkosBlas2_gemv_perf_test.hpp"
26
27 namespace test {
28 namespace blas2 {
29
30 // Register kernels for a specific test
31 void build_gemv_executor(rajaperf::Executor& exec, int argc, char* argv[], const rajaperf::RunParams& params) {
32 for (auto* kernel : construct_gemv_kernel_base(params)) {
33 exec.registerKernel("BLAS2", kernel);
34 }
35 }
36
37 void build_blas2_executor(rajaperf::Executor& exec, int argc, char* argv[], const rajaperf::RunParams& params) {
38 exec.registerGroup("BLAS2");
39 build_gemv_executor(exec, argc, argv, params);
40 }
41
42 } // namespace blas2
43 } // namespace test
44
45 #endif // KOKKOSKERNELS_TRACKED_TESTING_HPP