• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

daisytuner / sdfglib / 17656823807

11 Sep 2025 08:42PM UTC coverage: 60.447% (+1.1%) from 59.335%
17656823807

Pull #219

github

web-flow
Merge d5416236f into 6c1992b40
Pull Request #219: stdlib Library Nodes and ConstantNodes

460 of 1635 new or added lines in 81 files covered. (28.13%)

93 existing lines in 35 files now uncovered.

9385 of 15526 relevant lines covered (60.45%)

107.21 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/include/sdfg/data_flow/library_nodes/math/blas/blas.h
1
#pragma once
2

3
#include "sdfg/data_flow/library_nodes/math/math_node.h"
4

5
namespace sdfg {
6
namespace math {
7
namespace blas {
8

9
enum BLAS_Precision {
10
    h = 'h',
11
    s = 's',
12
    d = 'd',
13
    c = 'c',
14
    z = 'z',
15
};
16

17
constexpr std::string_view BLAS_Precision_to_string(BLAS_Precision precision) {
×
18
    switch (precision) {
×
19
        case BLAS_Precision::h:
20
            return "h";
×
21
        case BLAS_Precision::s:
22
            return "s";
×
23
        case BLAS_Precision::d:
24
            return "d";
×
25
        case BLAS_Precision::c:
26
            return "c";
×
27
        case BLAS_Precision::z:
28
            return "z";
×
29
        default:
30
            throw std::runtime_error("Invalid BLAS_Precision value");
×
31
    }
32
}
×
33

34
enum BLAS_Transpose {
35
    No = 111,
36
    Trans = 112,
37
    ConjTrans = 113,
38
};
39

40
constexpr std::string_view BLAS_Transpose_to_string(BLAS_Transpose transpose) {
×
41
    switch (transpose) {
×
42
        case BLAS_Transpose::No:
43
            return "CblasNoTrans";
×
44
        case BLAS_Transpose::Trans:
45
            return "CblasTrans";
×
46
        case BLAS_Transpose::ConjTrans:
47
            return "CblasConjTrans";
×
48
        default:
49
            throw std::runtime_error("Invalid BLAS_Transpose value");
×
50
    }
51
}
×
52

UNCOV
53
inline constexpr char BLAS_Transpose_to_char(BLAS_Transpose transpose) {
×
UNCOV
54
    switch (transpose) {
×
55
        case BLAS_Transpose::No:
UNCOV
56
            return 'N';
×
57
        case BLAS_Transpose::Trans:
58
            return 'T';
×
59
        case BLAS_Transpose::ConjTrans:
60
            return 'C';
×
61
        default:
62
            throw std::runtime_error("Invalid BLAS_Transpose value");
×
63
    }
UNCOV
64
}
×
65

66
enum BLAS_Layout {
67
    RowMajor = 101,
68
    ColMajor = 102,
69
};
70

71
constexpr std::string_view BLAS_Layout_to_string(BLAS_Layout layout) {
×
72
    switch (layout) {
×
73
        case BLAS_Layout::RowMajor:
74
            return "CblasRowMajor";
×
75
        case BLAS_Layout::ColMajor:
76
            return "CblasColMajor";
×
77
    }
×
78
}
×
79

UNCOV
80
inline constexpr std::string_view BLAS_Layout_to_short_string(BLAS_Layout layout) {
×
UNCOV
81
    switch (layout) {
×
82
        case BLAS_Layout::RowMajor:
UNCOV
83
            return "RowM";
×
84
        case BLAS_Layout::ColMajor:
85
            return "ColM";
×
86
        default:
87
            throw std::runtime_error("Invalid BLAS_Layout value");
×
88
    }
UNCOV
89
}
×
90

91
inline data_flow::ImplementationType ImplementationType_BLAS{"BLAS"};
92
inline data_flow::ImplementationType ImplementationType_CUBLAS{"CUBLAS"};
93

94
} // namespace blas
95
} // namespace math
96
} // namespace sdfg
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc