Skip to content

Commit

Permalink
disable runtime dispatch experiment on RVV, clang 19 is not yet ready.
Browse files Browse the repository at this point in the history
…Fixes google#2311

PiperOrigin-RevId: 667993979
  • Loading branch information
jan-wassenberg authored and copybara-github committed Aug 27, 2024
1 parent 4d38d26 commit 389fbc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hwy/detect_targets.h
Original file line number Diff line number Diff line change
Expand Up @@ -605,11 +605,12 @@
#endif // HWY_HAVE_AUXV

#ifndef HWY_HAVE_RUNTIME_DISPATCH_RVV // allow override
// The riscv_vector.h in Clang 16-18 requires compiler flags, see
// The riscv_vector.h in Clang 16-18 requires compiler flags, and 19 still has
// some missing intrinsics, see
// https://github.com/llvm/llvm-project/issues/56592. GCC 13.3 also has an
// #error check, whereas 14.1 fails with "argument type 'vuint16m8_t' requires
// the V ISA extension": https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115325.
#if HWY_ARCH_RISCV && HWY_COMPILER_CLANG >= 1900
#if HWY_ARCH_RISCV && HWY_COMPILER_CLANG >= 1900 && 0
#define HWY_HAVE_RUNTIME_DISPATCH_RVV 1
#else
#define HWY_HAVE_RUNTIME_DISPATCH_RVV 0
Expand Down

0 comments on commit 389fbc6

Please sign in to comment.