You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/LegalizeVectors.cpp
+20-18Lines changed: 20 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@
8
8
#include"Util.h"
9
9
10
10
#include<optional>
11
+
#include<unordered_set>
12
+
#include<vector>
11
13
12
14
namespaceHalide {
13
15
namespaceInternal {
@@ -16,13 +18,19 @@ namespace {
16
18
17
19
usingnamespacestd;
18
20
19
-
constchar *legalization_error_guide = "\n(This issue can most likely be resolved by reducing lane count for vectorize() calls in the schedule, or disabling it.)";
21
+
constchar *legalization_error_guide = "\n"
22
+
"(This is an implemenation limitation in Halide right now. This issue can most likely be \n"
23
+
" worked around by reducing lane count for vectorize() calls in GPU schedules, or disabling it.)";
20
24
21
25
intmax_lanes_for_device(DeviceAPI api, int parent_max_lanes) {
26
+
// The environment variable below (HL_FORCE_VECTOR_LEGALIZATION) is here solely for testing purposes.
27
+
// It is useful to "stress-test" this lowering pass by forcing a shorter maximal vector size across
28
+
// all codegen across the entire test suite. This should not be used in real uses of Halide.
0 commit comments