|
1 | | -// SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors |
| 1 | +// SPDX-FileCopyrightText: 2017 - 2025 The Ginkgo authors |
2 | 2 | // |
3 | 3 | // SPDX-License-Identifier: BSD-3-Clause |
4 | 4 |
|
|
21 | 21 | namespace formats { |
22 | 22 |
|
23 | 23 |
|
24 | | -std::string available_format = |
25 | | - "coo, csr, ell, ell_mixed, sellp, hybrid, hybrid0, hybrid25, hybrid33, " |
26 | | - "hybrid40, " |
27 | | - "hybrid60, hybrid80, hybridlimit0, hybridlimit25, hybridlimit33, " |
28 | | - "hybridminstorage" |
29 | | -#ifdef HAS_CUDA |
30 | | - ", cusparse_csr, cusparse_csrex, cusparse_coo" |
31 | | - ", cusparse_csrmp, cusparse_csrmm, cusparse_ell, cusparse_hybrid" |
32 | | - ", cusparse_gcsr, cusparse_gcsr2, cusparse_gcoo" |
33 | | -#endif // HAS_CUDA |
34 | | -#ifdef HAS_HIP |
35 | | - ", hipsparse_csr, hipsparse_csrmm, hipsparse_coo, hipsparse_ell, " |
36 | | - "hipsparse_hybrid" |
37 | | -#endif // HAS_HIP |
38 | | -#ifdef HAS_DPCPP |
39 | | - ", onemkl_csr, onemkl_optimized_csr" |
40 | | -#endif // HAS_DPCPP |
41 | | - ".\n"; |
42 | | - |
43 | | -std::string format_description = |
| 24 | +inline std::string format_description = |
44 | 25 | "coo: Coordinate storage. The GPU kernels use the load-balancing " |
45 | 26 | "approach\n" |
46 | 27 | " suggested in Flegar et al.: Overcoming Load Imbalance for\n" |
@@ -105,17 +86,11 @@ std::string format_description = |
105 | 86 | #endif // HAS_DPCPP |
106 | 87 | ; |
107 | 88 |
|
108 | | -std::string format_command = |
109 | | - "A comma-separated list of formats to run. Supported values are: " + |
110 | | - available_format + format_description; |
111 | | - |
112 | 89 |
|
113 | 90 | } // namespace formats |
114 | 91 |
|
115 | 92 |
|
116 | 93 | // the formats command-line argument |
117 | | -DEFINE_string(formats, "coo", formats::format_command.c_str()); |
118 | | - |
119 | 94 | DEFINE_int64(ell_imbalance_limit, 100, |
120 | 95 | "Maximal storage overhead above which ELL benchmarks will be " |
121 | 96 | "skipped. Negative values mean no limit."); |
|
0 commit comments