cumo 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +590 -152
- data/CHANGELOG.md +73 -2
- data/README.md +273 -0
- data/bench/cumo_probe.rb +1 -1
- data/bench/cumo_sync_probe.rb +71 -8
- data/cumo.gemspec +1 -1
- data/ext/cumo/cuda/cublas.c +0 -40
- data/ext/cumo/cuda/cudnn.c +66 -0
- data/ext/cumo/cuda/cudnn_impl.cpp +148 -73
- data/ext/cumo/cuda/driver.c +11 -9
- data/ext/cumo/cuda/runtime.c +59 -4
- data/ext/cumo/cumo.c +38 -0
- data/ext/cumo/extconf.rb +4 -0
- data/ext/cumo/include/cumo/bit_reduce_kernel.h +6 -6
- data/ext/cumo/include/cumo/cuda/cudnn.h +61 -2
- data/ext/cumo/include/cumo/cuda/cumo_thrust.hpp +1 -0
- data/ext/cumo/include/cumo/cuda/runtime.h +30 -0
- data/ext/cumo/include/cumo/intern.h +13 -1
- data/ext/cumo/include/cumo/narray.h +60 -3
- data/ext/cumo/include/cumo/reduce_kernel.h +32 -28
- data/ext/cumo/include/cumo/row_kernel.h +170 -0
- data/ext/cumo/include/cumo/row_method.h +48 -0
- data/ext/cumo/include/cumo/template.h +35 -10
- data/ext/cumo/include/cumo/template_kernel.h +122 -0
- data/ext/cumo/include/cumo/types/bf16_def.h +82 -0
- data/ext/cumo/include/cumo/types/bf16_def_kernel.h +28 -0
- data/ext/cumo/include/cumo/types/bf16_macro.h +186 -0
- data/ext/cumo/include/cumo/types/bf16_macro_kernel.h +213 -0
- data/ext/cumo/include/cumo/types/bfloat.h +22 -0
- data/ext/cumo/include/cumo/types/bfloat_kernel.h +16 -0
- data/ext/cumo/include/cumo/types/bit.h +5 -0
- data/ext/cumo/include/cumo/types/bit_kernel.h +5 -0
- data/ext/cumo/include/cumo/types/complex_macro.h +4 -0
- data/ext/cumo/include/cumo/types/complex_macro_kernel.h +4 -0
- data/ext/cumo/include/cumo/types/float_def.h +8 -0
- data/ext/cumo/include/cumo/types/float_def_kernel.h +8 -0
- data/ext/cumo/include/cumo/types/float_macro.h +21 -17
- data/ext/cumo/include/cumo/types/float_macro_kernel.h +21 -19
- data/ext/cumo/include/cumo/types/half_def.h +129 -0
- data/ext/cumo/include/cumo/types/half_def_kernel.h +28 -0
- data/ext/cumo/include/cumo/types/half_macro.h +186 -0
- data/ext/cumo/include/cumo/types/half_macro_kernel.h +213 -0
- data/ext/cumo/include/cumo/types/hfloat.h +22 -0
- data/ext/cumo/include/cumo/types/hfloat_kernel.h +16 -0
- data/ext/cumo/include/cumo/types/real_accum.h +2 -0
- data/ext/cumo/include/cumo/types/real_accum_kernel.h +2 -0
- data/ext/cumo/include/cumo/types/robj_macro.h +5 -0
- data/ext/cumo/include/cumo/types/xint_macro.h +5 -6
- data/ext/cumo/include/cumo/types/xint_macro_kernel.h +4 -0
- data/ext/cumo/include/cumo.h +2 -2
- data/ext/cumo/narray/data.c +49 -174
- data/ext/cumo/narray/gen/def/bfloat.rb +56 -0
- data/ext/cumo/narray/gen/def/bit.rb +12 -0
- data/ext/cumo/narray/gen/def/dcomplex.rb +12 -0
- data/ext/cumo/narray/gen/def/dfloat.rb +17 -0
- data/ext/cumo/narray/gen/def/hfloat.rb +56 -0
- data/ext/cumo/narray/gen/def/int16.rb +12 -0
- data/ext/cumo/narray/gen/def/int32.rb +12 -0
- data/ext/cumo/narray/gen/def/int64.rb +12 -0
- data/ext/cumo/narray/gen/def/int8.rb +12 -0
- data/ext/cumo/narray/gen/def/robject.rb +12 -0
- data/ext/cumo/narray/gen/def/scomplex.rb +12 -0
- data/ext/cumo/narray/gen/def/sfloat.rb +17 -0
- data/ext/cumo/narray/gen/def/uint16.rb +13 -1
- data/ext/cumo/narray/gen/def/uint32.rb +13 -1
- data/ext/cumo/narray/gen/def/uint64.rb +12 -0
- data/ext/cumo/narray/gen/def/uint8.rb +13 -1
- data/ext/cumo/narray/gen/erbpp2.rb +6 -0
- data/ext/cumo/narray/gen/narray_def.rb +0 -5
- data/ext/cumo/narray/gen/spec.rb +12 -14
- data/ext/cumo/narray/gen/tmpl/accum.c +1 -1
- data/ext/cumo/narray/gen/tmpl/accum_arg.c +2 -2
- data/ext/cumo/narray/gen/tmpl/accum_arg_kernel.cu +5 -5
- data/ext/cumo/narray/gen/tmpl/accum_binary_kernel.cu +14 -1
- data/ext/cumo/narray/gen/tmpl/accum_index.c +2 -2
- data/ext/cumo/narray/gen/tmpl/accum_index_kernel.cu +5 -5
- data/ext/cumo/narray/gen/tmpl/alloc_func.c +4 -7
- data/ext/cumo/narray/gen/tmpl/allocate.c +1 -2
- data/ext/cumo/narray/gen/tmpl/aref_cpu.c +1 -1
- data/ext/cumo/narray/gen/tmpl/batch_norm.c +14 -26
- data/ext/cumo/narray/gen/tmpl/batch_norm_backward.c +15 -27
- data/ext/cumo/narray/gen/tmpl/binary_kernel.cu +69 -2
- data/ext/cumo/narray/gen/tmpl/clip.c +3 -3
- data/ext/cumo/narray/gen/tmpl/complex_accum_kernel.cu +15 -5
- data/ext/cumo/narray/gen/tmpl/cond_unary.c +1 -1
- data/ext/cumo/narray/gen/tmpl/conv.c +88 -127
- data/ext/cumo/narray/gen/tmpl/conv_grad_w.c +89 -87
- data/ext/cumo/narray/gen/tmpl/conv_transpose.c +88 -127
- data/ext/cumo/narray/gen/tmpl/cum.c +25 -1
- data/ext/cumo/narray/gen/tmpl/cum_kernel.cu +30 -4
- data/ext/cumo/narray/gen/tmpl/each.c +2 -3
- data/ext/cumo/narray/gen/tmpl/each_with_index.c +5 -21
- data/ext/cumo/narray/gen/tmpl/extract_cpu.c +1 -1
- data/ext/cumo/narray/gen/tmpl/extract_data.c +1 -1
- data/ext/cumo/narray/gen/tmpl/fill.c +1 -1
- data/ext/cumo/narray/gen/tmpl/fixed_batch_norm.c +12 -24
- data/ext/cumo/narray/gen/tmpl/float_accum_kernel.cu +59 -42
- data/ext/cumo/narray/gen/tmpl/format.c +1 -1
- data/ext/cumo/narray/gen/tmpl/format_to_a.c +1 -1
- data/ext/cumo/narray/gen/tmpl/gemm.c +77 -50
- data/ext/cumo/narray/gen/tmpl/init_class.c +0 -7
- data/ext/cumo/narray/gen/tmpl/init_upcast.c +6 -0
- data/ext/cumo/narray/gen/tmpl/inspect.c +1 -1
- data/ext/cumo/narray/gen/tmpl/layer_norm.c +91 -0
- data/ext/cumo/narray/gen/tmpl/layer_norm_kernel.cu +54 -0
- data/ext/cumo/narray/gen/tmpl/lib.c +12 -1
- data/ext/cumo/narray/gen/tmpl/lib_kernel.cu +1 -0
- data/ext/cumo/narray/gen/tmpl/map_with_index.c +7 -14
- data/ext/cumo/narray/gen/tmpl/median.c +10 -48
- data/ext/cumo/narray/gen/tmpl/minmax.c +1 -1
- data/ext/cumo/narray/gen/tmpl/poly.c +0 -3
- data/ext/cumo/narray/gen/tmpl/poly_kernel.cu +1 -1
- data/ext/cumo/narray/gen/tmpl/pooling_backward.c +4 -15
- data/ext/cumo/narray/gen/tmpl/pooling_forward.c +4 -15
- data/ext/cumo/narray/gen/tmpl/rand.c +20 -2
- data/ext/cumo/narray/gen/tmpl/rand_kernel.cu +13 -0
- data/ext/cumo/narray/gen/tmpl/rand_norm.c +4 -4
- data/ext/cumo/narray/gen/tmpl/rand_norm_kernel.cu +7 -5
- data/ext/cumo/narray/gen/tmpl/real_accum_kernel.cu +85 -99
- data/ext/cumo/narray/gen/tmpl/softmax.c +56 -0
- data/ext/cumo/narray/gen/tmpl/softmax_kernel.cu +157 -0
- data/ext/cumo/narray/gen/tmpl/sort.c +9 -32
- data/ext/cumo/narray/gen/tmpl/sort_index.c +16 -92
- data/ext/cumo/narray/gen/tmpl/store_array.c +33 -31
- data/ext/cumo/narray/gen/tmpl/store_bit.c +1 -1
- data/ext/cumo/narray/gen/tmpl/store_from.c +1 -1
- data/ext/cumo/narray/gen/tmpl/store_from_kernel.cu +37 -2
- data/ext/cumo/narray/gen/tmpl/to_a.c +1 -1
- data/ext/cumo/narray/gen/tmpl/unary.c +20 -3
- data/ext/cumo/narray/gen/tmpl/unary2.c +1 -1
- data/ext/cumo/narray/gen/tmpl/unary_s.c +1 -1
- data/ext/cumo/narray/gen/tmpl_bit/allocate.c +2 -3
- data/ext/cumo/narray/gen/tmpl_bit/aref_cpu.c +1 -1
- data/ext/cumo/narray/gen/tmpl_bit/bit_count_cpu.c +1 -1
- data/ext/cumo/narray/gen/tmpl_bit/each.c +2 -2
- data/ext/cumo/narray/gen/tmpl_bit/each_with_index.c +5 -20
- data/ext/cumo/narray/gen/tmpl_bit/extract_cpu.c +1 -1
- data/ext/cumo/narray/gen/tmpl_bit/format.c +1 -1
- data/ext/cumo/narray/gen/tmpl_bit/format_to_a.c +1 -1
- data/ext/cumo/narray/gen/tmpl_bit/inspect.c +1 -1
- data/ext/cumo/narray/gen/tmpl_bit/mask.c +42 -21
- data/ext/cumo/narray/gen/tmpl_bit/mask_kernel.cu +4 -4
- data/ext/cumo/narray/gen/tmpl_bit/store_array.c +15 -20
- data/ext/cumo/narray/gen/tmpl_bit/store_from.c +1 -1
- data/ext/cumo/narray/gen/tmpl_bit/to_a.c +1 -1
- data/ext/cumo/narray/gen/tmpl_bit/where.c +109 -17
- data/ext/cumo/narray/gen/tmpl_bit/where2.c +59 -23
- data/ext/cumo/narray/gen/tmpl_bit/where_kernel.cu +7 -8
- data/ext/cumo/narray/index.c +65 -19
- data/ext/cumo/narray/index_kernel.cu +15 -0
- data/ext/cumo/narray/math.c +4 -0
- data/ext/cumo/narray/narray.c +316 -184
- data/ext/cumo/narray/ndloop.c +164 -30
- data/ext/cumo/narray/sort_kernel.cu +97 -56
- data/ext/cumo/narray/struct.c +17 -17
- data/lib/cumo/cuda/cudnn.rb +1 -1
- data/lib/cumo/narray/extra.rb +11 -2
- data/test/bfloat_test.rb +238 -0
- data/test/bit_test.rb +147 -0
- data/test/cuda/memory_pool_test.rb +8 -7
- data/test/cuda/runtime_test.rb +25 -0
- data/test/cudnn_test.rb +216 -46
- data/test/extra_test.rb +1 -1
- data/test/fused_test.rb +311 -0
- data/test/hfloat_test.rb +717 -0
- data/test/math_test.rb +79 -1
- data/test/narray_alt_coverage_test.rb +8 -0
- data/test/narray_test.rb +1086 -19
- data/test/test_helper.rb +74 -0
- metadata +30 -4
- data/ext/cumo/narray/gen/tmpl/qsort.c +0 -206
data/.rubocop_todo.yml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2026-
|
|
3
|
+
# on 2026-09-15 01:10:56 UTC using RuboCop version 1.91.0.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
|
-
# Offense count:
|
|
10
|
-
# Configuration parameters:
|
|
9
|
+
# Offense count: 8
|
|
10
|
+
# Configuration parameters: AllowedGems, OnlyFor.
|
|
11
11
|
Bundler/GemComment:
|
|
12
12
|
Exclude:
|
|
13
13
|
- 'Gemfile'
|
|
14
14
|
|
|
15
|
-
# Offense count:
|
|
15
|
+
# Offense count: 8
|
|
16
16
|
# Configuration parameters: AllowedGems.
|
|
17
17
|
# SupportedStyles: required, forbidden
|
|
18
18
|
Bundler/GemVersion:
|
|
@@ -59,33 +59,40 @@ Layout/AccessModifierIndentation:
|
|
|
59
59
|
Exclude:
|
|
60
60
|
- 'lib/cumo/narray/extra.rb'
|
|
61
61
|
|
|
62
|
-
# Offense count:
|
|
62
|
+
# Offense count: 7
|
|
63
63
|
# This cop supports safe autocorrection (--autocorrect).
|
|
64
64
|
Layout/BlockEndNewline:
|
|
65
65
|
Exclude:
|
|
66
66
|
- 'test/narray_test.rb'
|
|
67
67
|
|
|
68
|
-
# Offense count:
|
|
68
|
+
# Offense count: 8
|
|
69
69
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
70
70
|
# Configuration parameters: Categories, ExpectedOrder.
|
|
71
|
-
# ExpectedOrder: module_inclusion, constants, public_class_methods, initializer, public_methods, protected_methods, private_methods
|
|
71
|
+
# ExpectedOrder: module_inclusion, constants, public_class_methods, initializer, public_methods, protected_methods, private_class_methods, private_methods
|
|
72
72
|
Layout/ClassStructure:
|
|
73
73
|
Exclude:
|
|
74
74
|
- '3rd_party/mkmf-cu/lib/mkmf-cu/cli.rb'
|
|
75
75
|
- 'lib/cumo/narray/extra.rb'
|
|
76
|
+
- 'test/cuda/driver_test.rb'
|
|
77
|
+
- 'test/cumo_test.rb'
|
|
78
|
+
- 'test/math_test.rb'
|
|
76
79
|
|
|
77
|
-
# Offense count:
|
|
80
|
+
# Offense count: 38
|
|
78
81
|
# This cop supports safe autocorrection (--autocorrect).
|
|
79
82
|
Layout/EmptyLineAfterGuardClause:
|
|
80
83
|
Exclude:
|
|
81
84
|
- '3rd_party/mkmf-cu/lib/mkmf-cu/cli.rb'
|
|
85
|
+
- 'bench/bench.rb'
|
|
82
86
|
- 'ext/cumo/narray/gen/erbln.rb'
|
|
83
87
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
84
88
|
- 'lib/cumo/cuda/compiler.rb'
|
|
85
89
|
- 'lib/cumo/cuda/device.rb'
|
|
86
90
|
- 'lib/cumo/cuda/link_state.rb'
|
|
87
91
|
- 'lib/cumo/cuda/module.rb'
|
|
92
|
+
- 'lib/cumo/cuda/nvrtc_program.rb'
|
|
88
93
|
- 'lib/cumo/narray/extra.rb'
|
|
94
|
+
- 'test/bit_test.rb'
|
|
95
|
+
- 'test/narray_test.rb'
|
|
89
96
|
|
|
90
97
|
# Offense count: 1
|
|
91
98
|
# This cop supports safe autocorrection (--autocorrect).
|
|
@@ -93,15 +100,17 @@ Layout/EmptyLineAfterMultilineCondition:
|
|
|
93
100
|
Exclude:
|
|
94
101
|
- 'lib/cumo/narray/extra.rb'
|
|
95
102
|
|
|
96
|
-
# Offense count:
|
|
103
|
+
# Offense count: 36
|
|
97
104
|
# This cop supports safe autocorrection (--autocorrect).
|
|
98
105
|
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, DefLikeMacros, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
|
99
106
|
Layout/EmptyLineBetweenDefs:
|
|
100
107
|
Exclude:
|
|
101
108
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
102
109
|
- 'lib/cumo/narray/extra.rb'
|
|
110
|
+
- 'test/narray_alt_coverage_test.rb'
|
|
111
|
+
- 'test/narray_test.rb'
|
|
103
112
|
|
|
104
|
-
# Offense count:
|
|
113
|
+
# Offense count: 8
|
|
105
114
|
# This cop supports safe autocorrection (--autocorrect).
|
|
106
115
|
Layout/EmptyLines:
|
|
107
116
|
Exclude:
|
|
@@ -126,16 +135,17 @@ Layout/EmptyLinesAroundAccessModifier:
|
|
|
126
135
|
Exclude:
|
|
127
136
|
- 'lib/cumo/narray/extra.rb'
|
|
128
137
|
|
|
129
|
-
# Offense count:
|
|
138
|
+
# Offense count: 8
|
|
130
139
|
# This cop supports safe autocorrection (--autocorrect).
|
|
131
140
|
# Configuration parameters: EnforcedStyle.
|
|
132
141
|
# SupportedStyles: empty_lines, no_empty_lines
|
|
133
142
|
Layout/EmptyLinesAroundBlockBody:
|
|
134
143
|
Exclude:
|
|
135
144
|
- 'test/bit_test.rb'
|
|
145
|
+
- 'test/cudnn_test.rb'
|
|
136
146
|
- 'test/narray_test.rb'
|
|
137
147
|
|
|
138
|
-
# Offense count:
|
|
148
|
+
# Offense count: 12
|
|
139
149
|
# This cop supports safe autocorrection (--autocorrect).
|
|
140
150
|
# Configuration parameters: EnforcedStyle.
|
|
141
151
|
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
|
@@ -145,6 +155,7 @@ Layout/EmptyLinesAroundClassBody:
|
|
|
145
155
|
- 'ext/cumo/narray/gen/erbln.rb'
|
|
146
156
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
147
157
|
- 'lib/cumo/narray/extra.rb'
|
|
158
|
+
- 'test/hfloat_test.rb'
|
|
148
159
|
|
|
149
160
|
# Offense count: 4
|
|
150
161
|
# This cop supports safe autocorrection (--autocorrect).
|
|
@@ -154,6 +165,25 @@ Layout/EmptyLinesAroundModuleBody:
|
|
|
154
165
|
Exclude:
|
|
155
166
|
- 'ext/cumo/narray/gen/narray_def.rb'
|
|
156
167
|
|
|
168
|
+
# Offense count: 16
|
|
169
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
170
|
+
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
|
171
|
+
Layout/ExtraSpacing:
|
|
172
|
+
Exclude:
|
|
173
|
+
- 'bench/bench.rb'
|
|
174
|
+
- 'bench/cumo_probe.rb'
|
|
175
|
+
- 'bench/kmeans_bench.rb'
|
|
176
|
+
- 'bench/transformer_bench.rb'
|
|
177
|
+
- 'ext/cumo/narray/gen/def/bit.rb'
|
|
178
|
+
- 'ext/cumo/narray/gen/def/int16.rb'
|
|
179
|
+
- 'ext/cumo/narray/gen/def/int32.rb'
|
|
180
|
+
- 'ext/cumo/narray/gen/def/int64.rb'
|
|
181
|
+
- 'ext/cumo/narray/gen/def/int8.rb'
|
|
182
|
+
- 'ext/cumo/narray/gen/def/uint16.rb'
|
|
183
|
+
- 'ext/cumo/narray/gen/def/uint32.rb'
|
|
184
|
+
- 'ext/cumo/narray/gen/def/uint64.rb'
|
|
185
|
+
- 'ext/cumo/narray/gen/def/uint8.rb'
|
|
186
|
+
|
|
157
187
|
# Offense count: 1
|
|
158
188
|
# This cop supports safe autocorrection (--autocorrect).
|
|
159
189
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
@@ -162,30 +192,36 @@ Layout/FirstArrayElementIndentation:
|
|
|
162
192
|
Exclude:
|
|
163
193
|
- 'ext/cumo/extconf.rb'
|
|
164
194
|
|
|
165
|
-
# Offense count:
|
|
195
|
+
# Offense count: 54
|
|
166
196
|
# This cop supports safe autocorrection (--autocorrect).
|
|
167
|
-
# Configuration parameters: AllowMultilineFinalElement.
|
|
197
|
+
# Configuration parameters: AllowImplicitArrayLiterals, AllowMultilineFinalElement.
|
|
168
198
|
Layout/FirstArrayElementLineBreak:
|
|
169
199
|
Exclude:
|
|
170
200
|
- '3rd_party/mkmf-cu/test/test_mkmf-cu.rb'
|
|
201
|
+
- 'bench/cumo_probe.rb'
|
|
202
|
+
- 'test/bit_test.rb'
|
|
203
|
+
- 'test/extra_test.rb'
|
|
204
|
+
- 'test/fused_test.rb'
|
|
205
|
+
- 'test/hfloat_test.rb'
|
|
171
206
|
- 'test/narray_test.rb'
|
|
172
207
|
|
|
173
|
-
# Offense count:
|
|
208
|
+
# Offense count: 9
|
|
174
209
|
# This cop supports safe autocorrection (--autocorrect).
|
|
175
210
|
# Configuration parameters: AllowMultilineFinalElement.
|
|
176
211
|
Layout/FirstHashElementLineBreak:
|
|
177
212
|
Exclude:
|
|
213
|
+
- 'bench/cg_bench.rb'
|
|
214
|
+
- 'bench/cumo_probe.rb'
|
|
215
|
+
- 'bench/cumo_shape_probe.rb'
|
|
216
|
+
- 'bench/cumo_sync_probe.rb'
|
|
178
217
|
- 'ext/cumo/narray/gen/narray_def.rb'
|
|
218
|
+
- 'test/fused_test.rb'
|
|
179
219
|
|
|
180
|
-
# Offense count:
|
|
220
|
+
# Offense count: 114
|
|
181
221
|
# This cop supports safe autocorrection (--autocorrect).
|
|
182
222
|
# Configuration parameters: AllowMultilineFinalElement, AllowedMethods.
|
|
183
223
|
Layout/FirstMethodArgumentLineBreak:
|
|
184
|
-
|
|
185
|
-
- '3rd_party/mkmf-cu/test/test_mkmf-cu.rb'
|
|
186
|
-
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
187
|
-
- 'test/narray_test.rb'
|
|
188
|
-
- 'test/ractor_test.rb'
|
|
224
|
+
Enabled: false
|
|
189
225
|
|
|
190
226
|
# Offense count: 1
|
|
191
227
|
# This cop supports safe autocorrection (--autocorrect).
|
|
@@ -205,17 +241,25 @@ Layout/HashAlignment:
|
|
|
205
241
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
206
242
|
- 'ext/cumo/narray/gen/narray_def.rb'
|
|
207
243
|
|
|
208
|
-
# Offense count:
|
|
244
|
+
# Offense count: 1
|
|
245
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
246
|
+
Layout/HeredocIndentation:
|
|
247
|
+
Exclude:
|
|
248
|
+
- 'ext/cumo/extconf.rb'
|
|
249
|
+
|
|
250
|
+
# Offense count: 11
|
|
209
251
|
# This cop supports safe autocorrection (--autocorrect).
|
|
210
|
-
# Configuration parameters: Width, AllowedPatterns.
|
|
252
|
+
# Configuration parameters: Width, EnforcedStyleAlignWith, AllowedPatterns.
|
|
253
|
+
# SupportedStylesAlignWith: start_of_line, relative_to_receiver
|
|
211
254
|
Layout/IndentationWidth:
|
|
212
255
|
Exclude:
|
|
213
256
|
- 'ext/cumo/narray/gen/spec.rb'
|
|
214
257
|
- 'lib/cumo/narray/extra.rb'
|
|
258
|
+
- 'test/cudnn_test.rb'
|
|
215
259
|
|
|
216
260
|
# Offense count: 16
|
|
217
261
|
# This cop supports safe autocorrection (--autocorrect).
|
|
218
|
-
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment, AllowRBSInlineAnnotation, AllowSteepAnnotation.
|
|
262
|
+
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment, AllowRBSInlineAnnotation, AllowSteepAnnotation, AllowYARDCommentBlockSeparator.
|
|
219
263
|
Layout/LeadingCommentSpace:
|
|
220
264
|
Exclude:
|
|
221
265
|
- 'ext/cumo/extconf.rb'
|
|
@@ -224,31 +268,80 @@ Layout/LeadingCommentSpace:
|
|
|
224
268
|
- 'lib/cumo/narray/extra.rb'
|
|
225
269
|
- 'test/narray_test.rb'
|
|
226
270
|
|
|
227
|
-
# Offense count:
|
|
271
|
+
# Offense count: 157
|
|
228
272
|
# This cop supports safe autocorrection (--autocorrect).
|
|
229
273
|
# Configuration parameters: AllowMultilineFinalElement.
|
|
230
274
|
Layout/MultilineArrayLineBreaks:
|
|
231
275
|
Exclude:
|
|
232
276
|
- '3rd_party/mkmf-cu/test/test_mkmf-cu.rb'
|
|
277
|
+
- 'bench/cumo_probe.rb'
|
|
278
|
+
- 'test/bit_test.rb'
|
|
279
|
+
- 'test/extra_test.rb'
|
|
280
|
+
- 'test/fused_test.rb'
|
|
281
|
+
- 'test/hfloat_test.rb'
|
|
282
|
+
- 'test/narray_test.rb'
|
|
233
283
|
|
|
234
|
-
# Offense count:
|
|
284
|
+
# Offense count: 109
|
|
235
285
|
# This cop supports safe autocorrection (--autocorrect).
|
|
236
286
|
# Configuration parameters: EnforcedStyle.
|
|
237
287
|
# SupportedTypes: block, case, class, if, kwbegin, module
|
|
238
288
|
# SupportedStyles: same_line, new_line
|
|
239
289
|
Layout/MultilineAssignmentLayout:
|
|
240
|
-
|
|
241
|
-
- '3rd_party/mkmf-cu/lib/mkmf-cu/cli.rb'
|
|
242
|
-
- 'cumo.gemspec'
|
|
243
|
-
- 'lib/cumo/narray/extra.rb'
|
|
244
|
-
- 'test/ractor_test.rb'
|
|
290
|
+
Enabled: false
|
|
245
291
|
|
|
246
|
-
# Offense count:
|
|
292
|
+
# Offense count: 7
|
|
247
293
|
# This cop supports safe autocorrection (--autocorrect).
|
|
248
294
|
Layout/MultilineBlockLayout:
|
|
249
295
|
Exclude:
|
|
250
296
|
- 'test/narray_test.rb'
|
|
251
297
|
|
|
298
|
+
# Offense count: 1
|
|
299
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
300
|
+
# Configuration parameters: EnforcedStyle.
|
|
301
|
+
# SupportedStyles: symmetrical, new_line, same_line
|
|
302
|
+
Layout/MultilineHashBraceLayout:
|
|
303
|
+
Exclude:
|
|
304
|
+
- 'test/fused_test.rb'
|
|
305
|
+
|
|
306
|
+
# Offense count: 36
|
|
307
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
308
|
+
# Configuration parameters: AllowMultilineFinalElement.
|
|
309
|
+
Layout/MultilineHashKeyLineBreaks:
|
|
310
|
+
Exclude:
|
|
311
|
+
- 'bench/cg_bench.rb'
|
|
312
|
+
- 'bench/crossover_bench.rb'
|
|
313
|
+
- 'bench/cumo_probe.rb'
|
|
314
|
+
- 'bench/cumo_shape_probe.rb'
|
|
315
|
+
- 'bench/cumo_sync_probe.rb'
|
|
316
|
+
- 'bench/particle_bench.rb'
|
|
317
|
+
|
|
318
|
+
# Offense count: 189
|
|
319
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
320
|
+
# Configuration parameters: AllowMultilineFinalElement.
|
|
321
|
+
Layout/MultilineMethodArgumentLineBreaks:
|
|
322
|
+
Exclude:
|
|
323
|
+
- 'bench/cg_bench.rb'
|
|
324
|
+
- 'bench/crossover_bench.rb'
|
|
325
|
+
- 'bench/cumo_probe.rb'
|
|
326
|
+
- 'bench/cumo_sync_probe.rb'
|
|
327
|
+
- 'bench/ising_bench.rb'
|
|
328
|
+
- 'bench/transformer_bench.rb'
|
|
329
|
+
- 'test/bit_test.rb'
|
|
330
|
+
- 'test/extra_test.rb'
|
|
331
|
+
- 'test/fused_test.rb'
|
|
332
|
+
- 'test/hfloat_test.rb'
|
|
333
|
+
- 'test/math_test.rb'
|
|
334
|
+
- 'test/narray_alt_coverage_test.rb'
|
|
335
|
+
- 'test/narray_test.rb'
|
|
336
|
+
|
|
337
|
+
# Offense count: 1
|
|
338
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
339
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
340
|
+
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
|
341
|
+
Layout/MultilineMethodCallIndentation:
|
|
342
|
+
Exclude:
|
|
343
|
+
- 'bench/cumo_probe.rb'
|
|
344
|
+
|
|
252
345
|
# Offense count: 2
|
|
253
346
|
# This cop supports safe autocorrection (--autocorrect).
|
|
254
347
|
# Configuration parameters: AllowMultilineFinalElement.
|
|
@@ -265,31 +358,30 @@ Layout/MultilineOperationIndentation:
|
|
|
265
358
|
- 'lib/cumo/narray/extra.rb'
|
|
266
359
|
- 'test/narray_test.rb'
|
|
267
360
|
|
|
268
|
-
# Offense count:
|
|
361
|
+
# Offense count: 191
|
|
269
362
|
# This cop supports safe autocorrection (--autocorrect).
|
|
270
363
|
# Configuration parameters: InspectBlocks.
|
|
271
364
|
Layout/RedundantLineBreak:
|
|
272
|
-
|
|
273
|
-
- '3rd_party/mkmf-cu/lib/mkmf-cu/cli.rb'
|
|
274
|
-
- '3rd_party/mkmf-cu/mkmf-cu.gemspec'
|
|
275
|
-
- '3rd_party/mkmf-cu/test/test_mkmf-cu.rb'
|
|
276
|
-
- 'ext/cumo/extconf.rb'
|
|
277
|
-
- 'ext/cumo/narray/gen/narray_def.rb'
|
|
278
|
-
- 'test/bit_test.rb'
|
|
279
|
-
- 'test/cudnn_test.rb'
|
|
280
|
-
- 'test/narray_test.rb'
|
|
281
|
-
- 'test/ractor_test.rb'
|
|
282
|
-
- 'test/test_helper.rb'
|
|
365
|
+
Enabled: false
|
|
283
366
|
|
|
284
|
-
# Offense count:
|
|
367
|
+
# Offense count: 37
|
|
285
368
|
# This cop supports safe autocorrection (--autocorrect).
|
|
286
369
|
Layout/SingleLineBlockChain:
|
|
287
370
|
Exclude:
|
|
288
371
|
- '3rd_party/mkmf-cu/test/test_mkmf-cu.rb'
|
|
372
|
+
- 'bench/cg_bench.rb'
|
|
373
|
+
- 'bench/cumo_probe.rb'
|
|
374
|
+
- 'bench/ising_bench.rb'
|
|
375
|
+
- 'bench/kmeans_bench.rb'
|
|
376
|
+
- 'bench/particle_bench.rb'
|
|
377
|
+
- 'bench/transformer_bench.rb'
|
|
289
378
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
290
379
|
- 'lib/cumo/narray/extra.rb'
|
|
380
|
+
- 'test/bit_test.rb'
|
|
381
|
+
- 'test/math_test.rb'
|
|
382
|
+
- 'test/narray_test.rb'
|
|
291
383
|
|
|
292
|
-
# Offense count:
|
|
384
|
+
# Offense count: 86
|
|
293
385
|
# This cop supports safe autocorrection (--autocorrect).
|
|
294
386
|
Layout/SpaceAfterColon:
|
|
295
387
|
Exclude:
|
|
@@ -298,6 +390,14 @@ Layout/SpaceAfterColon:
|
|
|
298
390
|
- 'ext/cumo/narray/gen/spec.rb'
|
|
299
391
|
- 'lib/cumo/narray/extra.rb'
|
|
300
392
|
|
|
393
|
+
# Offense count: 6
|
|
394
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
395
|
+
Layout/SpaceAfterComma:
|
|
396
|
+
Exclude:
|
|
397
|
+
- 'ext/cumo/narray/gen/spec.rb'
|
|
398
|
+
- 'lib/cumo/narray/extra.rb'
|
|
399
|
+
- 'test/bit_test.rb'
|
|
400
|
+
|
|
301
401
|
# Offense count: 49
|
|
302
402
|
# This cop supports safe autocorrection (--autocorrect).
|
|
303
403
|
# Configuration parameters: EnforcedStyle.
|
|
@@ -310,13 +410,41 @@ Layout/SpaceAroundEqualsInParameterDefault:
|
|
|
310
410
|
- 'lib/cumo/narray/extra.rb'
|
|
311
411
|
- 'test/ractor_test.rb'
|
|
312
412
|
|
|
413
|
+
# Offense count: 2
|
|
414
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
415
|
+
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
|
|
416
|
+
# SupportedStylesForExponentOperator: space, no_space
|
|
417
|
+
# SupportedStylesForRationalLiterals: space, no_space
|
|
418
|
+
Layout/SpaceAroundOperators:
|
|
419
|
+
Exclude:
|
|
420
|
+
- 'bench/cg_bench.rb'
|
|
421
|
+
- 'bench/kmeans_bench.rb'
|
|
422
|
+
|
|
423
|
+
# Offense count: 1
|
|
424
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
425
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
426
|
+
# SupportedStyles: space, no_space
|
|
427
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
|
428
|
+
Layout/SpaceBeforeBlockBraces:
|
|
429
|
+
Exclude:
|
|
430
|
+
- 'test/bit_test.rb'
|
|
431
|
+
|
|
313
432
|
# Offense count: 4
|
|
314
433
|
# This cop supports safe autocorrection (--autocorrect).
|
|
315
434
|
Layout/SpaceBeforeComma:
|
|
316
435
|
Exclude:
|
|
317
436
|
- 'ext/cumo/narray/gen/spec.rb'
|
|
318
437
|
|
|
319
|
-
# Offense count:
|
|
438
|
+
# Offense count: 4
|
|
439
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
440
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
|
441
|
+
# SupportedStyles: space, no_space
|
|
442
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
|
443
|
+
Layout/SpaceInsideBlockBraces:
|
|
444
|
+
Exclude:
|
|
445
|
+
- 'test/bit_test.rb'
|
|
446
|
+
|
|
447
|
+
# Offense count: 25
|
|
320
448
|
# This cop supports safe autocorrection (--autocorrect).
|
|
321
449
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
322
450
|
# SupportedStyles: space, no_space, compact
|
|
@@ -325,6 +453,7 @@ Layout/SpaceInsideHashLiteralBraces:
|
|
|
325
453
|
Exclude:
|
|
326
454
|
- '3rd_party/mkmf-cu/test/test_mkmf-cu.rb'
|
|
327
455
|
- 'ext/cumo/narray/gen/narray_def.rb'
|
|
456
|
+
- 'test/fused_test.rb'
|
|
328
457
|
|
|
329
458
|
# Offense count: 2
|
|
330
459
|
# This cop supports safe autocorrection (--autocorrect).
|
|
@@ -332,23 +461,21 @@ Layout/SpaceInsideRangeLiteral:
|
|
|
332
461
|
Exclude:
|
|
333
462
|
- 'lib/cumo/narray/extra.rb'
|
|
334
463
|
|
|
335
|
-
# Offense count:
|
|
464
|
+
# Offense count: 24
|
|
336
465
|
# This cop supports safe autocorrection (--autocorrect).
|
|
337
466
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
338
467
|
Lint/AmbiguousBlockAssociation:
|
|
339
468
|
Exclude:
|
|
340
469
|
- 'test/cudnn_test.rb'
|
|
470
|
+
- 'test/hfloat_test.rb'
|
|
471
|
+
- 'test/narray_test.rb'
|
|
341
472
|
|
|
342
|
-
# Offense count:
|
|
473
|
+
# Offense count: 170
|
|
343
474
|
# This cop supports safe autocorrection (--autocorrect).
|
|
344
475
|
Lint/AmbiguousOperatorPrecedence:
|
|
345
|
-
|
|
346
|
-
- '3rd_party/mkmf-cu/lib/mkmf-cu/nvcc.rb'
|
|
347
|
-
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
348
|
-
- 'lib/cumo/narray/extra.rb'
|
|
349
|
-
- 'test/narray_test.rb'
|
|
476
|
+
Enabled: false
|
|
350
477
|
|
|
351
|
-
# Offense count:
|
|
478
|
+
# Offense count: 10
|
|
352
479
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
353
480
|
# Configuration parameters: RequireParenthesesForMethodChains.
|
|
354
481
|
Lint/AmbiguousRange:
|
|
@@ -364,6 +491,11 @@ Lint/AssignmentInCondition:
|
|
|
364
491
|
- '3rd_party/mkmf-cu/lib/mkmf-cu/nvcc.rb'
|
|
365
492
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
366
493
|
|
|
494
|
+
# Offense count: 1
|
|
495
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
|
496
|
+
Exclude:
|
|
497
|
+
- 'test/bit_test.rb'
|
|
498
|
+
|
|
367
499
|
# Offense count: 1
|
|
368
500
|
# Configuration parameters: AllowedMethods.
|
|
369
501
|
# AllowedMethods: enums
|
|
@@ -371,11 +503,17 @@ Lint/ConstantDefinitionInBlock:
|
|
|
371
503
|
Exclude:
|
|
372
504
|
- 'test/cuda/compiler_test.rb'
|
|
373
505
|
|
|
374
|
-
# Offense count:
|
|
506
|
+
# Offense count: 4669
|
|
375
507
|
# Configuration parameters: Only, Ignore.
|
|
376
508
|
Lint/ConstantResolution:
|
|
377
509
|
Enabled: false
|
|
378
510
|
|
|
511
|
+
# Offense count: 1
|
|
512
|
+
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
|
|
513
|
+
Lint/DuplicateBranch:
|
|
514
|
+
Exclude:
|
|
515
|
+
- 'bench/kmeans_bench.rb'
|
|
516
|
+
|
|
379
517
|
# Offense count: 1
|
|
380
518
|
# Configuration parameters: AllowComments.
|
|
381
519
|
Lint/EmptyWhen:
|
|
@@ -388,9 +526,11 @@ Lint/ErbNewArguments:
|
|
|
388
526
|
Exclude:
|
|
389
527
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
390
528
|
|
|
391
|
-
# Offense count:
|
|
529
|
+
# Offense count: 29
|
|
392
530
|
Lint/FloatComparison:
|
|
393
531
|
Exclude:
|
|
532
|
+
- 'test/cudnn_test.rb'
|
|
533
|
+
- 'test/fused_test.rb'
|
|
394
534
|
- 'test/narray_test.rb'
|
|
395
535
|
|
|
396
536
|
# Offense count: 4
|
|
@@ -411,28 +551,41 @@ Lint/NonAtomicFileOperation:
|
|
|
411
551
|
Exclude:
|
|
412
552
|
- 'lib/cumo/cuda/compiler.rb'
|
|
413
553
|
|
|
414
|
-
# Offense count:
|
|
554
|
+
# Offense count: 294
|
|
415
555
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
416
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns,
|
|
417
|
-
#
|
|
556
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, AllowedClasses.
|
|
557
|
+
# AllowedClasses: Time, DateTime
|
|
418
558
|
Lint/NumberConversion:
|
|
419
|
-
|
|
420
|
-
- '3rd_party/mkmf-cu/lib/mkmf-cu/cli.rb'
|
|
421
|
-
- 'bench/cumo_bench.rb'
|
|
422
|
-
- 'bench/numo_bench.rb'
|
|
423
|
-
- 'ext/cumo/narray/gen/cogen_kernel.rb'
|
|
424
|
-
- 'ext/cumo/narray/gen/erbln.rb'
|
|
425
|
-
- 'lib/cumo/narray/extra.rb'
|
|
426
|
-
- 'test/cudnn_test.rb'
|
|
427
|
-
- 'test/narray_test.rb'
|
|
559
|
+
Enabled: false
|
|
428
560
|
|
|
429
|
-
# Offense count:
|
|
561
|
+
# Offense count: 12
|
|
430
562
|
# This cop supports safe autocorrection (--autocorrect).
|
|
431
563
|
Lint/ScriptPermission:
|
|
432
564
|
Exclude:
|
|
565
|
+
- 'bench/bench.rb'
|
|
566
|
+
- 'bench/cg_bench.rb'
|
|
567
|
+
- 'bench/crossover_bench.rb'
|
|
568
|
+
- 'bench/cumo_probe.rb'
|
|
569
|
+
- 'bench/cumo_shape_probe.rb'
|
|
570
|
+
- 'bench/cumo_sync_probe.rb'
|
|
571
|
+
- 'bench/ising_bench.rb'
|
|
572
|
+
- 'bench/kmeans_bench.rb'
|
|
573
|
+
- 'bench/particle_bench.rb'
|
|
574
|
+
- 'bench/transformer_bench.rb'
|
|
433
575
|
- 'ext/cumo/narray/gen/cogen.rb'
|
|
434
576
|
- 'ext/cumo/narray/gen/cogen_kernel.rb'
|
|
435
577
|
|
|
578
|
+
# Offense count: 3
|
|
579
|
+
Lint/ShadowingOuterLocalVariable:
|
|
580
|
+
Exclude:
|
|
581
|
+
- 'bench/cumo_probe.rb'
|
|
582
|
+
- 'test/hfloat_test.rb'
|
|
583
|
+
|
|
584
|
+
# Offense count: 1
|
|
585
|
+
Lint/StructNewOverride:
|
|
586
|
+
Exclude:
|
|
587
|
+
- 'test/narray_test.rb'
|
|
588
|
+
|
|
436
589
|
# Offense count: 1
|
|
437
590
|
# Configuration parameters: AllowComments, AllowNil.
|
|
438
591
|
Lint/SuppressedException:
|
|
@@ -445,13 +598,14 @@ Lint/UnderscorePrefixedVariableName:
|
|
|
445
598
|
Exclude:
|
|
446
599
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
447
600
|
|
|
448
|
-
# Offense count:
|
|
601
|
+
# Offense count: 13
|
|
449
602
|
# This cop supports safe autocorrection (--autocorrect).
|
|
450
603
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
451
604
|
Lint/UnusedBlockArgument:
|
|
452
605
|
Exclude:
|
|
453
606
|
- '3rd_party/mkmf-cu/lib/mkmf-cu/nvcc.rb'
|
|
454
607
|
- 'lib/cumo/narray/extra.rb'
|
|
608
|
+
- 'test/bit_test.rb'
|
|
455
609
|
|
|
456
610
|
# Offense count: 2
|
|
457
611
|
# This cop supports safe autocorrection (--autocorrect).
|
|
@@ -462,14 +616,23 @@ Lint/UnusedMethodArgument:
|
|
|
462
616
|
- '3rd_party/mkmf-cu/lib/mkmf-cu/nvcc.rb'
|
|
463
617
|
- 'ext/cumo/narray/gen/narray_def.rb'
|
|
464
618
|
|
|
465
|
-
# Offense count:
|
|
619
|
+
# Offense count: 7
|
|
466
620
|
# This cop supports safe autocorrection (--autocorrect).
|
|
467
621
|
Lint/UselessAssignment:
|
|
468
622
|
Exclude:
|
|
469
623
|
- '3rd_party/mkmf-cu/lib/mkmf-cu/nvcc.rb'
|
|
624
|
+
- 'bench/cg_bench.rb'
|
|
470
625
|
- 'bench/numo_bench.rb'
|
|
626
|
+
- 'bench/particle_bench.rb'
|
|
627
|
+
- 'test/narray_test.rb'
|
|
471
628
|
|
|
472
|
-
# Offense count:
|
|
629
|
+
# Offense count: 2
|
|
630
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
631
|
+
Lint/UselessNumericOperation:
|
|
632
|
+
Exclude:
|
|
633
|
+
- 'test/narray_test.rb'
|
|
634
|
+
|
|
635
|
+
# Offense count: 6
|
|
473
636
|
# This cop supports safe autocorrection (--autocorrect).
|
|
474
637
|
# Configuration parameters: CheckForMethodsWithNoSideEffects.
|
|
475
638
|
Lint/Void:
|
|
@@ -493,28 +656,33 @@ Naming/FileName:
|
|
|
493
656
|
- '3rd_party/mkmf-cu/lib/mkmf-cu.rb'
|
|
494
657
|
- '3rd_party/mkmf-cu/test/test_mkmf-cu.rb'
|
|
495
658
|
|
|
496
|
-
# Offense count:
|
|
659
|
+
# Offense count: 20
|
|
497
660
|
# Configuration parameters: EnforcedStyle, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns.
|
|
498
661
|
# SupportedStyles: snake_case, camelCase
|
|
499
662
|
# ForbiddenIdentifiers: __id__, __send__
|
|
500
663
|
Naming/MethodName:
|
|
501
664
|
Exclude:
|
|
502
665
|
- '3rd_party/mkmf-cu/test/test_mkmf-cu.rb'
|
|
666
|
+
- 'test/cuda/driver_test.rb'
|
|
503
667
|
- 'test/cuda/nvrtc_test.rb'
|
|
504
668
|
- 'test/cuda/runtime_test.rb'
|
|
505
669
|
|
|
506
|
-
# Offense count:
|
|
670
|
+
# Offense count: 145
|
|
507
671
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
508
672
|
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
|
509
673
|
Naming/MethodParameterName:
|
|
674
|
+
Enabled: false
|
|
675
|
+
|
|
676
|
+
# Offense count: 1
|
|
677
|
+
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros, UseSorbetSigs.
|
|
678
|
+
# NamePrefix: is_, has_, have_, does_
|
|
679
|
+
# ForbiddenPrefixes: is_, has_, have_, does_
|
|
680
|
+
# AllowedMethods: is_a?
|
|
681
|
+
# MethodDefinitionMacros: define_method, define_singleton_method
|
|
682
|
+
Naming/PredicatePrefix:
|
|
510
683
|
Exclude:
|
|
511
|
-
- '
|
|
512
|
-
- 'ext/cumo/
|
|
513
|
-
- 'ext/cumo/narray/gen/narray_def.rb'
|
|
514
|
-
- 'lib/cumo/cuda/cudnn.rb'
|
|
515
|
-
- 'lib/cumo/linalg.rb'
|
|
516
|
-
- 'lib/cumo/narray/extra.rb'
|
|
517
|
-
- 'test/ractor_test.rb'
|
|
684
|
+
- 'spec/**/*'
|
|
685
|
+
- 'ext/cumo/extconf.rb'
|
|
518
686
|
|
|
519
687
|
# Offense count: 1
|
|
520
688
|
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
|
|
@@ -524,18 +692,21 @@ Naming/VariableNumber:
|
|
|
524
692
|
Exclude:
|
|
525
693
|
- 'test/cudnn_test.rb'
|
|
526
694
|
|
|
527
|
-
# Offense count:
|
|
695
|
+
# Offense count: 5
|
|
528
696
|
Security/Eval:
|
|
529
697
|
Exclude:
|
|
530
698
|
- 'ext/cumo/narray/gen/cogen.rb'
|
|
531
699
|
- 'ext/cumo/narray/gen/cogen_kernel.rb'
|
|
532
700
|
- 'ext/cumo/narray/gen/erbln.rb'
|
|
533
|
-
- 'lib/cumo/narray/extra.rb'
|
|
534
701
|
|
|
535
|
-
# Offense count:
|
|
702
|
+
# Offense count: 1
|
|
703
|
+
Security/MarshalLoad:
|
|
704
|
+
Exclude:
|
|
705
|
+
- 'test/narray_test.rb'
|
|
706
|
+
|
|
707
|
+
# Offense count: 1
|
|
536
708
|
Security/Open:
|
|
537
709
|
Exclude:
|
|
538
|
-
- 'ext/cumo/narray/gen/cogen.rb'
|
|
539
710
|
- 'ext/cumo/narray/gen/cogen_kernel.rb'
|
|
540
711
|
|
|
541
712
|
# Offense count: 2
|
|
@@ -566,17 +737,10 @@ Style/ArgumentsForwarding:
|
|
|
566
737
|
Exclude:
|
|
567
738
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
568
739
|
|
|
569
|
-
# Offense count:
|
|
740
|
+
# Offense count: 110
|
|
570
741
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
571
742
|
Style/ArrayFirstLast:
|
|
572
|
-
|
|
573
|
-
- 'ext/cumo/narray/gen/cogen.rb'
|
|
574
|
-
- 'ext/cumo/narray/gen/cogen_kernel.rb'
|
|
575
|
-
- 'ext/cumo/narray/gen/erbln.rb'
|
|
576
|
-
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
577
|
-
- 'lib/cumo/narray/extra.rb'
|
|
578
|
-
- 'test/bit_test.rb'
|
|
579
|
-
- 'test/narray_test.rb'
|
|
743
|
+
Enabled: false
|
|
580
744
|
|
|
581
745
|
# Offense count: 1
|
|
582
746
|
# Configuration parameters: AllowedChars.
|
|
@@ -585,7 +749,7 @@ Style/AsciiComments:
|
|
|
585
749
|
Exclude:
|
|
586
750
|
- '3rd_party/mkmf-cu/lib/mkmf-cu/cli.rb'
|
|
587
751
|
|
|
588
|
-
# Offense count:
|
|
752
|
+
# Offense count: 17
|
|
589
753
|
# This cop supports safe autocorrection (--autocorrect).
|
|
590
754
|
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
|
591
755
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
|
@@ -604,7 +768,7 @@ Style/CaseEquality:
|
|
|
604
768
|
Exclude:
|
|
605
769
|
- 'lib/cumo/narray/extra.rb'
|
|
606
770
|
|
|
607
|
-
# Offense count:
|
|
771
|
+
# Offense count: 12
|
|
608
772
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
609
773
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForClasses, EnforcedStyleForModules.
|
|
610
774
|
# SupportedStyles: nested, compact
|
|
@@ -620,11 +784,12 @@ Style/ClassAndModuleChildren:
|
|
|
620
784
|
- 'lib/cumo/cuda/nvrtc_program.rb'
|
|
621
785
|
- 'test/cuda/compiler_test.rb'
|
|
622
786
|
- 'test/cuda/device_test.rb'
|
|
787
|
+
- 'test/cuda/driver_test.rb'
|
|
623
788
|
- 'test/cuda/memory_pool_test.rb'
|
|
624
789
|
- 'test/cuda/nvrtc_test.rb'
|
|
625
790
|
- 'test/cuda/runtime_test.rb'
|
|
626
791
|
|
|
627
|
-
# Offense count:
|
|
792
|
+
# Offense count: 4
|
|
628
793
|
# This cop supports safe autocorrection (--autocorrect).
|
|
629
794
|
# Configuration parameters: EnforcedStyle.
|
|
630
795
|
# SupportedStyles: is_a?, kind_of?
|
|
@@ -633,6 +798,14 @@ Style/ClassCheck:
|
|
|
633
798
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
634
799
|
- 'lib/cumo/narray/extra.rb'
|
|
635
800
|
|
|
801
|
+
# Offense count: 3
|
|
802
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
803
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
804
|
+
# AllowedMethods: ==, equal?, eql?
|
|
805
|
+
Style/ClassEqualityComparison:
|
|
806
|
+
Exclude:
|
|
807
|
+
- 'test/cudnn_test.rb'
|
|
808
|
+
|
|
636
809
|
# Offense count: 4
|
|
637
810
|
# This cop supports safe autocorrection (--autocorrect).
|
|
638
811
|
# Configuration parameters: EnforcedStyle.
|
|
@@ -650,6 +823,22 @@ Style/ClassVars:
|
|
|
650
823
|
- 'lib/cumo/cuda/compiler.rb'
|
|
651
824
|
- 'lib/cumo/narray/extra.rb'
|
|
652
825
|
|
|
826
|
+
# Offense count: 7
|
|
827
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
828
|
+
# Configuration parameters: PreferredMethods, MethodsAcceptingSymbol.
|
|
829
|
+
# MethodsAcceptingSymbol: inject, reduce
|
|
830
|
+
Style/CollectionMethods:
|
|
831
|
+
Exclude:
|
|
832
|
+
- 'test/bit_test.rb'
|
|
833
|
+
- 'test/narray_test.rb'
|
|
834
|
+
|
|
835
|
+
# Offense count: 2
|
|
836
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
837
|
+
Style/CombinableLoops:
|
|
838
|
+
Exclude:
|
|
839
|
+
- 'bench/crossover_bench.rb'
|
|
840
|
+
- 'test/narray_test.rb'
|
|
841
|
+
|
|
653
842
|
# Offense count: 2
|
|
654
843
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
655
844
|
Style/CommentedKeyword:
|
|
@@ -657,6 +846,12 @@ Style/CommentedKeyword:
|
|
|
657
846
|
- 'ext/cumo/narray/gen/spec.rb'
|
|
658
847
|
- 'lib/cumo/narray/extra.rb'
|
|
659
848
|
|
|
849
|
+
# Offense count: 2
|
|
850
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
851
|
+
Style/ComparableBetween:
|
|
852
|
+
Exclude:
|
|
853
|
+
- 'test/narray_test.rb'
|
|
854
|
+
|
|
660
855
|
# Offense count: 10
|
|
661
856
|
# This cop supports safe autocorrection (--autocorrect).
|
|
662
857
|
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
@@ -671,13 +866,19 @@ Style/ConditionalAssignment:
|
|
|
671
866
|
- 'lib/cumo/cuda/device.rb'
|
|
672
867
|
- 'lib/cumo/narray/extra.rb'
|
|
673
868
|
|
|
674
|
-
# Offense count:
|
|
869
|
+
# Offense count: 23
|
|
675
870
|
# Configuration parameters: IgnoreModules.
|
|
676
871
|
Style/ConstantVisibility:
|
|
677
872
|
Exclude:
|
|
678
873
|
- '3rd_party/mkmf-cu/lib/mkmf-cu.rb'
|
|
679
874
|
- '3rd_party/mkmf-cu/lib/mkmf-cu/cli.rb'
|
|
680
875
|
- 'lib/cumo/cuda/compiler.rb'
|
|
876
|
+
- 'test/cuda/driver_test.rb'
|
|
877
|
+
- 'test/cumo_test.rb'
|
|
878
|
+
- 'test/fused_test.rb'
|
|
879
|
+
- 'test/hfloat_test.rb'
|
|
880
|
+
- 'test/math_test.rb'
|
|
881
|
+
- 'test/narray_alt_coverage_test.rb'
|
|
681
882
|
- 'test/test_helper.rb'
|
|
682
883
|
|
|
683
884
|
# Offense count: 38
|
|
@@ -702,7 +903,7 @@ Style/Documentation:
|
|
|
702
903
|
- 'lib/cumo/linalg.rb'
|
|
703
904
|
- 'lib/cumo/narray/extra.rb'
|
|
704
905
|
|
|
705
|
-
# Offense count:
|
|
906
|
+
# Offense count: 270
|
|
706
907
|
# Configuration parameters: AllowedMethods, RequireForNonPublicMethods.
|
|
707
908
|
Style/DocumentationMethod:
|
|
708
909
|
Enabled: false
|
|
@@ -715,7 +916,7 @@ Style/EmptyElse:
|
|
|
715
916
|
Exclude:
|
|
716
917
|
- 'ext/cumo/narray/gen/erbln.rb'
|
|
717
918
|
|
|
718
|
-
# Offense count:
|
|
919
|
+
# Offense count: 2
|
|
719
920
|
# This cop supports safe autocorrection (--autocorrect).
|
|
720
921
|
# Configuration parameters: EnforcedStyle.
|
|
721
922
|
# SupportedStyles: compact, expanded
|
|
@@ -729,19 +930,31 @@ Style/EvalWithLocation:
|
|
|
729
930
|
Exclude:
|
|
730
931
|
- 'test/narray_test.rb'
|
|
731
932
|
|
|
732
|
-
# Offense count:
|
|
933
|
+
# Offense count: 4
|
|
733
934
|
# This cop supports safe autocorrection (--autocorrect).
|
|
734
935
|
Style/ExpandPathArguments:
|
|
735
936
|
Exclude:
|
|
736
937
|
- 'cumo.gemspec'
|
|
737
938
|
- 'ext/cumo/narray/gen/cogen_kernel.rb'
|
|
939
|
+
- 'test/cuda/driver_test.rb'
|
|
738
940
|
- 'test/test_helper.rb'
|
|
739
941
|
|
|
740
|
-
# Offense count:
|
|
942
|
+
# Offense count: 3
|
|
741
943
|
# This cop supports safe autocorrection (--autocorrect).
|
|
742
|
-
|
|
944
|
+
Style/ExplicitBlockArgument:
|
|
945
|
+
Exclude:
|
|
946
|
+
- 'bench/cumo_probe.rb'
|
|
947
|
+
- 'bench/cumo_shape_probe.rb'
|
|
948
|
+
|
|
949
|
+
# Offense count: 11
|
|
950
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
951
|
+
# Configuration parameters: AllowedVariables, DefaultToNil.
|
|
743
952
|
Style/FetchEnvVar:
|
|
744
953
|
Exclude:
|
|
954
|
+
- 'bench/crossover_bench.rb'
|
|
955
|
+
- 'bench/cumo_probe.rb'
|
|
956
|
+
- 'bench/cumo_shape_probe.rb'
|
|
957
|
+
- 'bench/cumo_sync_probe.rb'
|
|
745
958
|
- 'lib/cumo/cuda/compiler.rb'
|
|
746
959
|
|
|
747
960
|
# Offense count: 2
|
|
@@ -750,7 +963,20 @@ Style/FileWrite:
|
|
|
750
963
|
Exclude:
|
|
751
964
|
- 'lib/cumo/cuda/compiler.rb'
|
|
752
965
|
|
|
753
|
-
# Offense count:
|
|
966
|
+
# Offense count: 204
|
|
967
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
968
|
+
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, Mode, AllowedMethods, AllowedPatterns.
|
|
969
|
+
# SupportedStyles: annotated, template, unannotated
|
|
970
|
+
Style/FormatStringToken:
|
|
971
|
+
EnforcedStyle: unannotated
|
|
972
|
+
|
|
973
|
+
# Offense count: 10
|
|
974
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
975
|
+
Style/GlobalStdStream:
|
|
976
|
+
Exclude:
|
|
977
|
+
- 'bench/cumo_sync_probe.rb'
|
|
978
|
+
|
|
979
|
+
# Offense count: 29
|
|
754
980
|
# Configuration parameters: AllowedVariables.
|
|
755
981
|
Style/GlobalVars:
|
|
756
982
|
Exclude:
|
|
@@ -758,7 +984,7 @@ Style/GlobalVars:
|
|
|
758
984
|
- 'ext/cumo/narray/gen/cogen.rb'
|
|
759
985
|
- 'ext/cumo/narray/gen/cogen_kernel.rb'
|
|
760
986
|
|
|
761
|
-
# Offense count:
|
|
987
|
+
# Offense count: 11
|
|
762
988
|
# This cop supports safe autocorrection (--autocorrect).
|
|
763
989
|
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
|
764
990
|
Style/GuardClause:
|
|
@@ -768,7 +994,15 @@ Style/GuardClause:
|
|
|
768
994
|
- 'lib/cumo/cuda/module.rb'
|
|
769
995
|
- 'lib/cumo/narray/extra.rb'
|
|
770
996
|
|
|
771
|
-
# Offense count:
|
|
997
|
+
# Offense count: 3
|
|
998
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
999
|
+
# Configuration parameters: EnforcedStyle.
|
|
1000
|
+
# SupportedStyles: brackets, fetch
|
|
1001
|
+
Style/HashLookupMethod:
|
|
1002
|
+
Exclude:
|
|
1003
|
+
- 'test/ractor_test.rb'
|
|
1004
|
+
|
|
1005
|
+
# Offense count: 6
|
|
772
1006
|
# This cop supports safe autocorrection (--autocorrect).
|
|
773
1007
|
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
774
1008
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
@@ -778,11 +1012,11 @@ Style/HashSyntax:
|
|
|
778
1012
|
- '3rd_party/mkmf-cu/Rakefile'
|
|
779
1013
|
- 'Rakefile'
|
|
780
1014
|
|
|
781
|
-
# Offense count:
|
|
1015
|
+
# Offense count: 3
|
|
782
1016
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
783
1017
|
Style/IdenticalConditionalBranches:
|
|
784
1018
|
Exclude:
|
|
785
|
-
- '
|
|
1019
|
+
- 'bench/cumo_probe.rb'
|
|
786
1020
|
|
|
787
1021
|
# Offense count: 1
|
|
788
1022
|
# This cop supports safe autocorrection (--autocorrect).
|
|
@@ -791,12 +1025,14 @@ Style/IfInsideElse:
|
|
|
791
1025
|
Exclude:
|
|
792
1026
|
- 'ext/cumo/narray/gen/erbln.rb'
|
|
793
1027
|
|
|
794
|
-
# Offense count:
|
|
1028
|
+
# Offense count: 52
|
|
795
1029
|
# This cop supports safe autocorrection (--autocorrect).
|
|
796
1030
|
Style/IfUnlessModifier:
|
|
797
1031
|
Exclude:
|
|
798
1032
|
- '3rd_party/mkmf-cu/lib/mkmf-cu/cli.rb'
|
|
799
1033
|
- '3rd_party/mkmf-cu/lib/mkmf-cu/nvcc.rb'
|
|
1034
|
+
- 'bench/cumo_probe.rb'
|
|
1035
|
+
- 'bench/cumo_sync_probe.rb'
|
|
800
1036
|
- 'ext/cumo/extconf.rb'
|
|
801
1037
|
- 'ext/cumo/narray/gen/erbln.rb'
|
|
802
1038
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
@@ -806,11 +1042,14 @@ Style/IfUnlessModifier:
|
|
|
806
1042
|
- 'test/cudnn_test.rb'
|
|
807
1043
|
- 'test/narray_test.rb'
|
|
808
1044
|
|
|
809
|
-
# Offense count:
|
|
1045
|
+
# Offense count: 10
|
|
810
1046
|
Style/ImplicitRuntimeError:
|
|
811
1047
|
Exclude:
|
|
812
1048
|
- '3rd_party/mkmf-cu/lib/mkmf-cu/cli.rb'
|
|
813
1049
|
- '3rd_party/mkmf-cu/lib/mkmf-cu/nvcc.rb'
|
|
1050
|
+
- 'bench/ising_bench.rb'
|
|
1051
|
+
- 'bench/kmeans_bench.rb'
|
|
1052
|
+
- 'bench/transformer_bench.rb'
|
|
814
1053
|
- 'ext/cumo/narray/gen/narray_def.rb'
|
|
815
1054
|
- 'lib/cumo/cuda/cudnn.rb'
|
|
816
1055
|
|
|
@@ -821,33 +1060,64 @@ Style/InfiniteLoop:
|
|
|
821
1060
|
- 'ext/cumo/narray/gen/cogen.rb'
|
|
822
1061
|
- 'ext/cumo/narray/gen/cogen_kernel.rb'
|
|
823
1062
|
|
|
824
|
-
# Offense count:
|
|
1063
|
+
# Offense count: 91
|
|
825
1064
|
Style/InlineComment:
|
|
826
|
-
|
|
827
|
-
- '3rd_party/mkmf-cu/lib/mkmf-cu/cli.rb'
|
|
828
|
-
- 'bench/cumo_bench.rb'
|
|
829
|
-
- 'ext/cumo/extconf.rb'
|
|
830
|
-
- 'ext/cumo/narray/gen/spec.rb'
|
|
831
|
-
- 'lib/cumo/cuda/nvrtc_program.rb'
|
|
832
|
-
- 'lib/cumo/narray/extra.rb'
|
|
833
|
-
- 'test/narray_test.rb'
|
|
1065
|
+
Enabled: false
|
|
834
1066
|
|
|
835
|
-
# Offense count:
|
|
1067
|
+
# Offense count: 4
|
|
836
1068
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
837
1069
|
# Configuration parameters: InverseMethods, InverseBlocks.
|
|
838
1070
|
Style/InverseMethods:
|
|
839
1071
|
Exclude:
|
|
840
1072
|
- 'test/bit_test.rb'
|
|
841
1073
|
|
|
842
|
-
# Offense count:
|
|
1074
|
+
# Offense count: 5
|
|
843
1075
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
844
1076
|
# Configuration parameters: InverseMethods.
|
|
845
1077
|
Style/InvertibleUnlessCondition:
|
|
846
1078
|
Exclude:
|
|
1079
|
+
- 'bench/ising_bench.rb'
|
|
1080
|
+
- 'bench/kmeans_bench.rb'
|
|
1081
|
+
- 'bench/transformer_bench.rb'
|
|
847
1082
|
- 'lib/cumo/cuda/compiler.rb'
|
|
848
1083
|
- 'lib/cumo/cuda/device.rb'
|
|
849
1084
|
|
|
850
|
-
# Offense count:
|
|
1085
|
+
# Offense count: 2
|
|
1086
|
+
Style/ItAssignment:
|
|
1087
|
+
Exclude:
|
|
1088
|
+
- 'bench/cg_bench.rb'
|
|
1089
|
+
- 'bench/kmeans_bench.rb'
|
|
1090
|
+
|
|
1091
|
+
# Offense count: 2
|
|
1092
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1093
|
+
# Configuration parameters: EnforcedStyle.
|
|
1094
|
+
# SupportedStyles: line_count_dependent, lambda, literal
|
|
1095
|
+
Style/Lambda:
|
|
1096
|
+
Exclude:
|
|
1097
|
+
- 'test/narray_test.rb'
|
|
1098
|
+
|
|
1099
|
+
# Offense count: 13
|
|
1100
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1101
|
+
# Configuration parameters: EnforcedStyle.
|
|
1102
|
+
# SupportedStyles: call, braces
|
|
1103
|
+
Style/LambdaCall:
|
|
1104
|
+
Exclude:
|
|
1105
|
+
- 'test/narray_test.rb'
|
|
1106
|
+
|
|
1107
|
+
# Offense count: 3
|
|
1108
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1109
|
+
Style/MapIntoArray:
|
|
1110
|
+
Exclude:
|
|
1111
|
+
- 'test/narray_alt_coverage_test.rb'
|
|
1112
|
+
- 'test/narray_test.rb'
|
|
1113
|
+
|
|
1114
|
+
# Offense count: 1
|
|
1115
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1116
|
+
Style/MapJoin:
|
|
1117
|
+
Exclude:
|
|
1118
|
+
- 'bench/cumo_probe.rb'
|
|
1119
|
+
|
|
1120
|
+
# Offense count: 173
|
|
851
1121
|
# This cop supports safe autocorrection (--autocorrect).
|
|
852
1122
|
# Configuration parameters: IgnoreMacros, AllowedMethods, AllowedPatterns, IncludedMacros, IncludedMacroPatterns, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, AllowParenthesesInStringInterpolation, EnforcedStyle.
|
|
853
1123
|
# SupportedStyles: require_parentheses, omit_parentheses
|
|
@@ -863,14 +1133,21 @@ Style/MethodCallWithoutArgsParentheses:
|
|
|
863
1133
|
- '3rd_party/mkmf-cu/test/test_mkmf-cu.rb'
|
|
864
1134
|
- 'lib/cumo/cuda/compiler.rb'
|
|
865
1135
|
|
|
866
|
-
# Offense count:
|
|
1136
|
+
# Offense count: 4
|
|
867
1137
|
Style/MethodCalledOnDoEndBlock:
|
|
868
1138
|
Exclude:
|
|
869
1139
|
- 'ext/cumo/narray/gen/cogen.rb'
|
|
870
1140
|
- 'ext/cumo/narray/gen/cogen_kernel.rb'
|
|
871
1141
|
- 'lib/cumo/narray/extra.rb'
|
|
1142
|
+
- 'test/narray_test.rb'
|
|
1143
|
+
|
|
1144
|
+
# Offense count: 2
|
|
1145
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1146
|
+
Style/MinMaxComparison:
|
|
1147
|
+
Exclude:
|
|
1148
|
+
- 'test/narray_test.rb'
|
|
872
1149
|
|
|
873
|
-
# Offense count:
|
|
1150
|
+
# Offense count: 155
|
|
874
1151
|
# This cop supports safe autocorrection (--autocorrect).
|
|
875
1152
|
# Configuration parameters: EnforcedStyle.
|
|
876
1153
|
# SupportedStyles: if, case, both
|
|
@@ -882,13 +1159,18 @@ Style/MissingRespondToMissing:
|
|
|
882
1159
|
Exclude:
|
|
883
1160
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
884
1161
|
|
|
1162
|
+
# Offense count: 1
|
|
1163
|
+
Style/MultilineBlockChain:
|
|
1164
|
+
Exclude:
|
|
1165
|
+
- 'test/narray_test.rb'
|
|
1166
|
+
|
|
885
1167
|
# Offense count: 1
|
|
886
1168
|
# This cop supports safe autocorrection (--autocorrect).
|
|
887
1169
|
Style/MultilineMethodSignature:
|
|
888
1170
|
Exclude:
|
|
889
1171
|
- 'lib/cumo/narray/extra.rb'
|
|
890
1172
|
|
|
891
|
-
# Offense count:
|
|
1173
|
+
# Offense count: 8
|
|
892
1174
|
# This cop supports safe autocorrection (--autocorrect).
|
|
893
1175
|
# Configuration parameters: AllowMethodComparison, ComparisonsThreshold.
|
|
894
1176
|
Style/MultipleComparison:
|
|
@@ -896,16 +1178,24 @@ Style/MultipleComparison:
|
|
|
896
1178
|
- 'test/cudnn_test.rb'
|
|
897
1179
|
- 'test/narray_test.rb'
|
|
898
1180
|
|
|
899
|
-
# Offense count:
|
|
1181
|
+
# Offense count: 13
|
|
900
1182
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
901
|
-
# Configuration parameters: EnforcedStyle.
|
|
1183
|
+
# Configuration parameters: EnforcedStyle, Recursive.
|
|
902
1184
|
# SupportedStyles: literals, strict
|
|
903
1185
|
Style/MutableConstant:
|
|
904
1186
|
Exclude:
|
|
905
1187
|
- '3rd_party/mkmf-cu/lib/mkmf-cu/cli.rb'
|
|
1188
|
+
- 'bench/cg_bench.rb'
|
|
1189
|
+
- 'bench/crossover_bench.rb'
|
|
1190
|
+
- 'bench/cumo_probe.rb'
|
|
1191
|
+
- 'bench/cumo_shape_probe.rb'
|
|
1192
|
+
- 'bench/cumo_sync_probe.rb'
|
|
1193
|
+
- 'test/fused_test.rb'
|
|
1194
|
+
- 'test/math_test.rb'
|
|
1195
|
+
- 'test/narray_alt_coverage_test.rb'
|
|
906
1196
|
- 'test/test_helper.rb'
|
|
907
1197
|
|
|
908
|
-
# Offense count:
|
|
1198
|
+
# Offense count: 14
|
|
909
1199
|
# This cop supports safe autocorrection (--autocorrect).
|
|
910
1200
|
# Configuration parameters: EnforcedStyle.
|
|
911
1201
|
# SupportedStyles: both, prefix, postfix
|
|
@@ -915,6 +1205,13 @@ Style/NegatedIf:
|
|
|
915
1205
|
- 'ext/cumo/narray/gen/spec.rb'
|
|
916
1206
|
- 'lib/cumo/narray/extra.rb'
|
|
917
1207
|
|
|
1208
|
+
# Offense count: 2
|
|
1209
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1210
|
+
Style/NestedTernaryOperator:
|
|
1211
|
+
Exclude:
|
|
1212
|
+
- 'bench/cumo_probe.rb'
|
|
1213
|
+
- 'test/bit_test.rb'
|
|
1214
|
+
|
|
918
1215
|
# Offense count: 2
|
|
919
1216
|
# This cop supports safe autocorrection (--autocorrect).
|
|
920
1217
|
# Configuration parameters: EnforcedStyle, MinBodyLength, AllowConsecutiveConditionals.
|
|
@@ -924,13 +1221,13 @@ Style/Next:
|
|
|
924
1221
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
925
1222
|
- 'lib/cumo/narray/extra.rb'
|
|
926
1223
|
|
|
927
|
-
# Offense count:
|
|
1224
|
+
# Offense count: 70
|
|
928
1225
|
# This cop supports safe autocorrection (--autocorrect).
|
|
929
1226
|
# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
|
|
930
1227
|
Style/NumericLiterals:
|
|
931
|
-
MinDigits:
|
|
1228
|
+
MinDigits: 21
|
|
932
1229
|
|
|
933
|
-
# Offense count:
|
|
1230
|
+
# Offense count: 81
|
|
934
1231
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
935
1232
|
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
|
936
1233
|
# SupportedStyles: predicate, comparison
|
|
@@ -938,6 +1235,7 @@ Style/NumericPredicate:
|
|
|
938
1235
|
Exclude:
|
|
939
1236
|
- 'spec/**/*'
|
|
940
1237
|
- '3rd_party/mkmf-cu/lib/mkmf-cu/nvcc.rb'
|
|
1238
|
+
- 'bench/cumo_probe.rb'
|
|
941
1239
|
- 'lib/cumo/cuda/compiler.rb'
|
|
942
1240
|
- 'lib/cumo/cuda/cudnn.rb'
|
|
943
1241
|
- 'lib/cumo/narray/extra.rb'
|
|
@@ -946,6 +1244,17 @@ Style/NumericPredicate:
|
|
|
946
1244
|
- 'test/cuda/runtime_test.rb'
|
|
947
1245
|
- 'test/narray_test.rb'
|
|
948
1246
|
|
|
1247
|
+
# Offense count: 23
|
|
1248
|
+
# Configuration parameters: AllowedClasses.
|
|
1249
|
+
Style/OneClassPerFile:
|
|
1250
|
+
Exclude:
|
|
1251
|
+
- 'spec/**/*'
|
|
1252
|
+
- 'test/**/*'
|
|
1253
|
+
- 'bench/particle_bench.rb'
|
|
1254
|
+
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
1255
|
+
- 'ext/cumo/narray/gen/narray_def.rb'
|
|
1256
|
+
- 'lib/cumo/cuda/cudnn.rb'
|
|
1257
|
+
|
|
949
1258
|
# Offense count: 1
|
|
950
1259
|
Style/OptionalArguments:
|
|
951
1260
|
Exclude:
|
|
@@ -957,6 +1266,13 @@ Style/OrAssignment:
|
|
|
957
1266
|
Exclude:
|
|
958
1267
|
- 'ext/cumo/narray/gen/narray_def.rb'
|
|
959
1268
|
|
|
1269
|
+
# Offense count: 6
|
|
1270
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1271
|
+
Style/ParallelAssignment:
|
|
1272
|
+
Exclude:
|
|
1273
|
+
- 'test/bit_test.rb'
|
|
1274
|
+
- 'test/narray_test.rb'
|
|
1275
|
+
|
|
960
1276
|
# Offense count: 2
|
|
961
1277
|
# This cop supports safe autocorrection (--autocorrect).
|
|
962
1278
|
# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
|
|
@@ -998,17 +1314,25 @@ Style/RedundantArgument:
|
|
|
998
1314
|
|
|
999
1315
|
# Offense count: 1
|
|
1000
1316
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1317
|
+
Style/RedundantAssignment:
|
|
1318
|
+
Exclude:
|
|
1319
|
+
- 'bench/kmeans_bench.rb'
|
|
1320
|
+
|
|
1321
|
+
# Offense count: 2
|
|
1322
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1001
1323
|
Style/RedundantBegin:
|
|
1002
1324
|
Exclude:
|
|
1003
1325
|
- 'lib/cumo/cuda/nvrtc_program.rb'
|
|
1326
|
+
- 'test/test_helper.rb'
|
|
1004
1327
|
|
|
1005
|
-
# Offense count:
|
|
1328
|
+
# Offense count: 3
|
|
1006
1329
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1007
1330
|
# Configuration parameters: AllowedMethods.
|
|
1008
|
-
# AllowedMethods: nonzero?
|
|
1331
|
+
# AllowedMethods: infinite?, nonzero?
|
|
1009
1332
|
Style/RedundantCondition:
|
|
1010
1333
|
Exclude:
|
|
1011
1334
|
- 'lib/cumo/cuda/device.rb'
|
|
1335
|
+
- 'test/narray_test.rb'
|
|
1012
1336
|
|
|
1013
1337
|
# Offense count: 1
|
|
1014
1338
|
# This cop supports safe autocorrection (--autocorrect).
|
|
@@ -1016,15 +1340,37 @@ Style/RedundantFileExtensionInRequire:
|
|
|
1016
1340
|
Exclude:
|
|
1017
1341
|
- 'ext/cumo/extconf.rb'
|
|
1018
1342
|
|
|
1019
|
-
# Offense count:
|
|
1343
|
+
# Offense count: 9
|
|
1344
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1345
|
+
Style/RedundantFormat:
|
|
1346
|
+
Exclude:
|
|
1347
|
+
- 'bench/crossover_bench.rb'
|
|
1348
|
+
- 'bench/cumo_probe.rb'
|
|
1349
|
+
- 'bench/cumo_shape_probe.rb'
|
|
1350
|
+
- 'bench/cumo_sync_probe.rb'
|
|
1351
|
+
- 'bench/ising_bench.rb'
|
|
1352
|
+
- 'bench/transformer_bench.rb'
|
|
1353
|
+
|
|
1354
|
+
# Offense count: 10
|
|
1355
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1356
|
+
Style/RedundantHeredocDelimiterQuotes:
|
|
1357
|
+
Exclude:
|
|
1358
|
+
- 'test/narray_test.rb'
|
|
1359
|
+
|
|
1360
|
+
# Offense count: 32
|
|
1020
1361
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1021
1362
|
Style/RedundantParentheses:
|
|
1022
1363
|
Exclude:
|
|
1364
|
+
- 'bench/cg_bench.rb'
|
|
1023
1365
|
- 'bench/cumo_bench.rb'
|
|
1366
|
+
- 'bench/ising_bench.rb'
|
|
1367
|
+
- 'bench/kmeans_bench.rb'
|
|
1024
1368
|
- 'bench/numo_bench.rb'
|
|
1369
|
+
- 'bench/particle_bench.rb'
|
|
1025
1370
|
- 'ext/cumo/narray/gen/erbln.rb'
|
|
1026
1371
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
1027
1372
|
- 'test/bit_test.rb'
|
|
1373
|
+
- 'test/cumo_test.rb'
|
|
1028
1374
|
- 'test/ractor_test.rb'
|
|
1029
1375
|
|
|
1030
1376
|
# Offense count: 2
|
|
@@ -1056,7 +1402,7 @@ Style/RedundantReturn:
|
|
|
1056
1402
|
- 'lib/cumo/cuda/nvrtc_program.rb'
|
|
1057
1403
|
- 'lib/cumo/narray/extra.rb'
|
|
1058
1404
|
|
|
1059
|
-
# Offense count:
|
|
1405
|
+
# Offense count: 12
|
|
1060
1406
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1061
1407
|
Style/RedundantSelf:
|
|
1062
1408
|
Exclude:
|
|
@@ -1084,19 +1430,23 @@ Style/RequireOrder:
|
|
|
1084
1430
|
- 'lib/cumo/cuda.rb'
|
|
1085
1431
|
- 'lib/cumo/cuda/compiler.rb'
|
|
1086
1432
|
|
|
1087
|
-
# Offense count:
|
|
1433
|
+
# Offense count: 2
|
|
1088
1434
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1089
1435
|
Style/RescueModifier:
|
|
1090
1436
|
Exclude:
|
|
1437
|
+
- 'bench/cumo_probe.rb'
|
|
1091
1438
|
- 'lib/cumo/cuda/compiler.rb'
|
|
1092
1439
|
|
|
1093
|
-
# Offense count:
|
|
1440
|
+
# Offense count: 4
|
|
1094
1441
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1095
1442
|
# Configuration parameters: EnforcedStyle.
|
|
1096
1443
|
# SupportedStyles: return, return_nil
|
|
1097
1444
|
Style/ReturnNil:
|
|
1098
1445
|
Exclude:
|
|
1446
|
+
- 'bench/crossover_bench.rb'
|
|
1447
|
+
- 'bench/cumo_probe.rb'
|
|
1099
1448
|
- 'lib/cumo/cuda/compiler.rb'
|
|
1449
|
+
- 'lib/cumo/narray/extra.rb'
|
|
1100
1450
|
|
|
1101
1451
|
# Offense count: 1
|
|
1102
1452
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
@@ -1106,25 +1456,46 @@ Style/SafeNavigation:
|
|
|
1106
1456
|
Exclude:
|
|
1107
1457
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
1108
1458
|
|
|
1109
|
-
# Offense count:
|
|
1459
|
+
# Offense count: 2
|
|
1110
1460
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1111
1461
|
Style/SelfAssignment:
|
|
1112
1462
|
Exclude:
|
|
1113
1463
|
- 'lib/cumo/narray/extra.rb'
|
|
1114
1464
|
|
|
1115
|
-
# Offense count:
|
|
1465
|
+
# Offense count: 26
|
|
1116
1466
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1117
1467
|
# Configuration parameters: AllowAsExpressionSeparator.
|
|
1118
1468
|
Style/Semicolon:
|
|
1119
1469
|
Exclude:
|
|
1470
|
+
- 'bench/cumo_probe.rb'
|
|
1471
|
+
- 'bench/cumo_sync_probe.rb'
|
|
1120
1472
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
1473
|
+
- 'test/bit_test.rb'
|
|
1474
|
+
- 'test/narray_alt_coverage_test.rb'
|
|
1475
|
+
- 'test/narray_test.rb'
|
|
1121
1476
|
|
|
1122
|
-
# Offense count:
|
|
1477
|
+
# Offense count: 53
|
|
1123
1478
|
Style/Send:
|
|
1124
1479
|
Exclude:
|
|
1480
|
+
- 'bench/cumo_probe.rb'
|
|
1481
|
+
- 'bench/cumo_shape_probe.rb'
|
|
1482
|
+
- 'bench/particle_bench.rb'
|
|
1125
1483
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
1484
|
+
- 'test/cudnn_test.rb'
|
|
1485
|
+
- 'test/extra_test.rb'
|
|
1486
|
+
- 'test/math_test.rb'
|
|
1487
|
+
- 'test/narray_test.rb'
|
|
1126
1488
|
|
|
1127
|
-
# Offense count:
|
|
1489
|
+
# Offense count: 4
|
|
1490
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1491
|
+
# Configuration parameters: Methods.
|
|
1492
|
+
# Methods: {"reduce" => ["acc", "elem"]}, {"inject" => ["acc", "elem"]}
|
|
1493
|
+
Style/SingleLineBlockParams:
|
|
1494
|
+
Exclude:
|
|
1495
|
+
- 'test/bit_test.rb'
|
|
1496
|
+
- 'test/narray_test.rb'
|
|
1497
|
+
|
|
1498
|
+
# Offense count: 25
|
|
1128
1499
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1129
1500
|
Style/SlicingWithRange:
|
|
1130
1501
|
Exclude:
|
|
@@ -1165,33 +1536,49 @@ Style/StringConcatenation:
|
|
|
1165
1536
|
- 'ext/cumo/narray/gen/narray_def.rb'
|
|
1166
1537
|
- 'ext/cumo/narray/gen/spec.rb'
|
|
1167
1538
|
|
|
1168
|
-
# Offense count:
|
|
1539
|
+
# Offense count: 132
|
|
1169
1540
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1170
1541
|
Style/StringHashKeys:
|
|
1171
1542
|
Exclude:
|
|
1172
1543
|
- '3rd_party/mkmf-cu/test/test_mkmf-cu.rb'
|
|
1544
|
+
- 'bench/cumo_probe.rb'
|
|
1545
|
+
- 'bench/cumo_shape_probe.rb'
|
|
1546
|
+
- 'test/bit_test.rb'
|
|
1547
|
+
- 'test/fused_test.rb'
|
|
1548
|
+
- 'test/narray_test.rb'
|
|
1173
1549
|
|
|
1174
|
-
# Offense count:
|
|
1550
|
+
# Offense count: 2364
|
|
1175
1551
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1176
1552
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
1177
1553
|
# SupportedStyles: single_quotes, double_quotes
|
|
1178
1554
|
Style/StringLiterals:
|
|
1179
1555
|
Enabled: false
|
|
1180
1556
|
|
|
1557
|
+
# Offense count: 1
|
|
1558
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1559
|
+
# Configuration parameters: EnforcedStyle.
|
|
1560
|
+
# SupportedStyles: single_quotes, double_quotes
|
|
1561
|
+
Style/StringLiteralsInInterpolation:
|
|
1562
|
+
Exclude:
|
|
1563
|
+
- 'test/fused_test.rb'
|
|
1564
|
+
|
|
1181
1565
|
# Offense count: 2
|
|
1182
1566
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1183
1567
|
Style/SuperArguments:
|
|
1184
1568
|
Exclude:
|
|
1185
1569
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
1186
1570
|
|
|
1187
|
-
# Offense count:
|
|
1571
|
+
# Offense count: 12
|
|
1188
1572
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1189
|
-
# Configuration parameters: MinSize.
|
|
1573
|
+
# Configuration parameters: EnforcedStyle, MinSize.
|
|
1190
1574
|
# SupportedStyles: percent, brackets
|
|
1191
1575
|
Style/SymbolArray:
|
|
1192
|
-
|
|
1576
|
+
Exclude:
|
|
1577
|
+
- 'Rakefile'
|
|
1578
|
+
- 'test/narray_test.rb'
|
|
1579
|
+
- 'test/test_helper.rb'
|
|
1193
1580
|
|
|
1194
|
-
# Offense count:
|
|
1581
|
+
# Offense count: 23
|
|
1195
1582
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1196
1583
|
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
|
|
1197
1584
|
# AllowedMethods: define_method
|
|
@@ -1199,25 +1586,40 @@ Style/SymbolProc:
|
|
|
1199
1586
|
Exclude:
|
|
1200
1587
|
- '3rd_party/mkmf-cu/lib/mkmf-cu/cli.rb'
|
|
1201
1588
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
1589
|
+
- 'test/fused_test.rb'
|
|
1590
|
+
- 'test/narray_test.rb'
|
|
1202
1591
|
|
|
1203
|
-
# Offense count:
|
|
1592
|
+
# Offense count: 13
|
|
1204
1593
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1205
1594
|
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
|
1206
1595
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
|
1207
1596
|
Style/TernaryParentheses:
|
|
1208
1597
|
Exclude:
|
|
1598
|
+
- 'bench/crossover_bench.rb'
|
|
1209
1599
|
- 'ext/cumo/narray/gen/erbpp2.rb'
|
|
1210
1600
|
- 'ext/cumo/narray/gen/narray_def.rb'
|
|
1211
1601
|
- 'lib/cumo/narray/extra.rb'
|
|
1602
|
+
- 'test/cudnn_test.rb'
|
|
1603
|
+
- 'test/narray_test.rb'
|
|
1212
1604
|
|
|
1213
|
-
# Offense count:
|
|
1605
|
+
# Offense count: 107
|
|
1214
1606
|
Style/TopLevelMethodDefinition:
|
|
1215
1607
|
Exclude:
|
|
1608
|
+
- 'bench/bench.rb'
|
|
1609
|
+
- 'bench/cg_bench.rb'
|
|
1610
|
+
- 'bench/crossover_bench.rb'
|
|
1216
1611
|
- 'bench/cumo_bench.rb'
|
|
1612
|
+
- 'bench/cumo_probe.rb'
|
|
1613
|
+
- 'bench/cumo_shape_probe.rb'
|
|
1614
|
+
- 'bench/cumo_sync_probe.rb'
|
|
1615
|
+
- 'bench/ising_bench.rb'
|
|
1616
|
+
- 'bench/kmeans_bench.rb'
|
|
1217
1617
|
- 'bench/numo_bench.rb'
|
|
1618
|
+
- 'bench/particle_bench.rb'
|
|
1619
|
+
- 'bench/transformer_bench.rb'
|
|
1218
1620
|
- 'ext/cumo/extconf.rb'
|
|
1219
1621
|
|
|
1220
|
-
# Offense count:
|
|
1622
|
+
# Offense count: 24
|
|
1221
1623
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1222
1624
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
1223
1625
|
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
|
@@ -1225,9 +1627,23 @@ Style/TrailingCommaInArrayLiteral:
|
|
|
1225
1627
|
Exclude:
|
|
1226
1628
|
- 'test/bit_test.rb'
|
|
1227
1629
|
- 'test/cudnn_test.rb'
|
|
1630
|
+
- 'test/fused_test.rb'
|
|
1631
|
+
- 'test/math_test.rb'
|
|
1632
|
+
- 'test/narray_alt_coverage_test.rb'
|
|
1228
1633
|
- 'test/narray_test.rb'
|
|
1229
1634
|
- 'test/test_helper.rb'
|
|
1230
1635
|
|
|
1636
|
+
# Offense count: 20
|
|
1637
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
1638
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
|
1639
|
+
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
|
1640
|
+
Style/TrailingCommaInHashLiteral:
|
|
1641
|
+
Exclude:
|
|
1642
|
+
- 'test/cumo_test.rb'
|
|
1643
|
+
- 'test/fused_test.rb'
|
|
1644
|
+
- 'test/math_test.rb'
|
|
1645
|
+
- 'test/narray_test.rb'
|
|
1646
|
+
|
|
1231
1647
|
# Offense count: 7
|
|
1232
1648
|
# This cop supports safe autocorrection (--autocorrect).
|
|
1233
1649
|
Style/WhenThen:
|
|
@@ -1236,18 +1652,40 @@ Style/WhenThen:
|
|
|
1236
1652
|
|
|
1237
1653
|
# Offense count: 3
|
|
1238
1654
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1655
|
+
# Configuration parameters: EnforcedStyle.
|
|
1656
|
+
# SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only
|
|
1657
|
+
Style/YodaCondition:
|
|
1658
|
+
Exclude:
|
|
1659
|
+
- 'test/bit_test.rb'
|
|
1660
|
+
- 'test/narray_test.rb'
|
|
1661
|
+
|
|
1662
|
+
# Offense count: 117
|
|
1663
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1239
1664
|
# Configuration parameters: .
|
|
1240
1665
|
# SupportedOperators: *, +, &, |, ^
|
|
1241
1666
|
Style/YodaExpression:
|
|
1242
1667
|
Exclude:
|
|
1668
|
+
- 'bench/bench.rb'
|
|
1669
|
+
- 'bench/cg_bench.rb'
|
|
1670
|
+
- 'bench/cumo_probe.rb'
|
|
1671
|
+
- 'bench/cumo_shape_probe.rb'
|
|
1672
|
+
- 'bench/ising_bench.rb'
|
|
1673
|
+
- 'bench/kmeans_bench.rb'
|
|
1674
|
+
- 'bench/particle_bench.rb'
|
|
1675
|
+
- 'bench/transformer_bench.rb'
|
|
1243
1676
|
- 'lib/cumo/narray/extra.rb'
|
|
1677
|
+
- 'test/bit_test.rb'
|
|
1678
|
+
- 'test/hfloat_test.rb'
|
|
1679
|
+
- 'test/math_test.rb'
|
|
1680
|
+
- 'test/narray_alt_coverage_test.rb'
|
|
1244
1681
|
- 'test/narray_test.rb'
|
|
1245
1682
|
|
|
1246
|
-
# Offense count:
|
|
1683
|
+
# Offense count: 10
|
|
1247
1684
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
1248
1685
|
Style/ZeroLengthPredicate:
|
|
1249
1686
|
Exclude:
|
|
1250
1687
|
- '3rd_party/mkmf-cu/lib/mkmf-cu/nvcc.rb'
|
|
1688
|
+
- 'bench/kmeans_bench.rb'
|
|
1251
1689
|
- 'lib/cumo/cuda/compiler.rb'
|
|
1252
1690
|
- 'test/bit_test.rb'
|
|
1253
1691
|
- 'test/narray_test.rb'
|