Skip to content

Commit c2a6e34

Browse files
authored
Improves ARM SVE vector length error message (#8936)
1 parent add4d29 commit c2a6e34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CodeGen_ARM.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,8 +1001,8 @@ void CodeGen_ARM::init_module() {
10011001
// TODO: https://github.com/halide/Halide/issues/8872
10021002
// if (target.features_any_of({Target::SVE, Target::SVE2})) {
10031003
if (target.has_feature(Target::SVE2)) {
1004-
user_assert(target.vector_bits != 0) << "For SVE/SVE2 support, target_vector_bits=<size> must be set in target.\n";
1005-
user_assert((target.vector_bits % 128) == 0) << "For SVE/SVE2 support, target_vector_bits must be a multiple of 128.\n";
1004+
user_assert(target.vector_bits != 0) << "For SVE/SVE2 support, Target::vector_bits must be set. For generator target strings, add \"vector_bits_<bits>\".\n";
1005+
user_assert((target.vector_bits % 128) == 0) << "For SVE/SVE2 support, Target::vector_bits must be a multiple of 128.\n";
10061006
} else if (target.has_feature(Target::SVE)) {
10071007
user_warning << "Halide does not support SVE for now. Use SVE2 if your target device supports it.\n";
10081008
}

0 commit comments

Comments
 (0)