Skip to content

Commit

Permalink
[RV64] Added compilation check for overloaded intrinsics
Browse files Browse the repository at this point in the history
  • Loading branch information
a-sidorova authored and xczhai committed Dec 24, 2024
1 parent dea537b commit 97d588c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/platform.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,10 @@ if (DNNL_TARGET_ARCH STREQUAL "RV64")
# Check if the RVV Intrinsics can be compiled with the current toolchain and flags
include(CheckCXXSourceCompiles)
check_cxx_source_compiles("#include <riscv_vector.h>
int main() { return 0; };"
int main() {
size_t size = 64;
return vsetvl_e32m2(size);
};"
CAN_COMPILE_RVV_INTRINSICS
)
# set CAN_COMPILE_RVV_INTRINSICS to TRUE / FALSE instead of 1 / "" (Undefined)
Expand Down

0 comments on commit 97d588c

Please sign in to comment.