Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
// This file is auto-generated by wgsl-gen. Do not edit manually.
 
#ifndef INCLUDED_BY_WGSL_GEN_HEADER
#error "This file is expected to be included by wgsl-gen header. Do not include it directly."
#endif
 
//
// Template: math/matmul_gemv.wgsl.template
//
 
template <>
struct TemplateParameter<"math/matmul_gemv.wgsl.template"> {
  using type = struct {
    const ShaderVariableHelper* var_a;
    const ShaderVariableHelper* var_b;
    const ShaderVariableHelper* var_output;
  };
};
 
template <>
Status ApplyTemplate<"math/matmul_gemv.wgsl.template">(ShaderHelper& shader_helper, TemplateParameter<"math/matmul_gemv.wgsl.template">::type params);
 
//
// Template: math/subgroup_matrix_gemm_8x16x16.wgsl.template
//
 
template <>
struct TemplateParameter<"math/subgroup_matrix_gemm_8x16x16.wgsl.template"> {
  using type = struct {
    int param_has_c;
    int param_sg_mat_count_m;
    int param_sg_mat_count_n;
    int param_sg_mat_k;
    int param_sg_mat_m;
    int param_sg_mat_n;
    int param_split_k;
    int param_trans_a;
    int param_trans_b;
    const ShaderVariableHelper* var_output;
  };
};
 
template <>
Status ApplyTemplate<"math/subgroup_matrix_gemm_8x16x16.wgsl.template">(ShaderHelper& shader_helper, TemplateParameter<"math/subgroup_matrix_gemm_8x16x16.wgsl.template">::type params);
 
//
// Template: math/subgroup_matrix_matmul_8x16x16.wgsl.template
//
 
template <>
struct TemplateParameter<"math/subgroup_matrix_matmul_8x16x16.wgsl.template"> {
  using type = struct {
    int param_sg_mat_count_m;
    int param_sg_mat_count_n;
    int param_sg_mat_k;
    int param_sg_mat_m;
    int param_sg_mat_n;
    int param_split_k;
  };
};
 
template <>
Status ApplyTemplate<"math/subgroup_matrix_matmul_8x16x16.wgsl.template">(ShaderHelper& shader_helper, TemplateParameter<"math/subgroup_matrix_matmul_8x16x16.wgsl.template">::type params);
 
//
// Template: math/subgroup_matrix_matmul_pad_b.wgsl.template
//
 
template <>
struct TemplateParameter<"math/subgroup_matrix_matmul_pad_b.wgsl.template"> {
  using type = struct {
    const ShaderVariableHelper* var_input_b;
    const ShaderVariableHelper* var_output;
  };
};
 
template <>
Status ApplyTemplate<"math/subgroup_matrix_matmul_pad_b.wgsl.template">(ShaderHelper& shader_helper, TemplateParameter<"math/subgroup_matrix_matmul_pad_b.wgsl.template">::type params);
 
//
// Template: nn/im2col_matmul.wgsl.template
//
 
template <>
struct TemplateParameter<"nn/im2col_matmul.wgsl.template"> {
  using type = struct {
    int param_activation_kind;
    int param_has_bias;
    int param_quick_gelu_unit_alpha;
    int param_tile_m;
    int param_tile_n;
    int param_use_subgroup;
    int param_vec_size;
    const ShaderVariableHelper* var_output;
    const ShaderVariableHelper* var_src;
    const ShaderVariableHelper* var_weight;
  };
};
 
template <>
Status ApplyTemplate<"nn/im2col_matmul.wgsl.template">(ShaderHelper& shader_helper, TemplateParameter<"nn/im2col_matmul.wgsl.template">::type params);
 
//
// Template: tensor/oihw_to_ohwi.wgsl.template
//
 
template <>
struct TemplateParameter<"tensor/oihw_to_ohwi.wgsl.template"> {
  using type = struct {
    const ShaderVariableHelper* var_output;
    const ShaderVariableHelper* var_src;
  };
};
 
template <>
Status ApplyTemplate<"tensor/oihw_to_ohwi.wgsl.template">(ShaderHelper& shader_helper, TemplateParameter<"tensor/oihw_to_ohwi.wgsl.template">::type params);
 
//
// Template: tensor/pad.wgsl.template
//
 
template <>
struct TemplateParameter<"tensor/pad.wgsl.template"> {
  using type = struct {
    int param_dim_value_zero;
    int param_is_float16;
    int param_pad_mode;
    const ShaderVariableHelper* var_output;
  };
};
 
template <>
Status ApplyTemplate<"tensor/pad.wgsl.template">(ShaderHelper& shader_helper, TemplateParameter<"tensor/pad.wgsl.template">::type params);
 
//
// Template: nn/conv_transpose3d.wgsl.template
//
 
template <>
struct TemplateParameter<"nn/conv_transpose3d.wgsl.template"> {
  using type = struct {
    int param_components;
    int param_has_bias;
    int param_is_channels_last;
    int param_is_prepacked;
    const ShaderVariableHelper* var_bias;
    const ShaderVariableHelper* var_output;
    const ShaderVariableHelper* var_w;
    const ShaderVariableHelper* var_x;
  };
};
 
template <>
Status ApplyTemplate<"nn/conv_transpose3d.wgsl.template">(ShaderHelper& shader_helper, TemplateParameter<"nn/conv_transpose3d.wgsl.template">::type params);