From eb2ebaf700ec2fd90d65c1ab3b36391d4c44c462 Mon Sep 17 00:00:00 2001 From: Alexandra Sidorova Date: Thu, 24 Oct 2024 15:23:20 +0400 Subject: [PATCH] [RV64] Added compilation check for overloaded intrinsics --- cmake/platform.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/platform.cmake b/cmake/platform.cmake index 87ae6e9745a..bc703faa0e4 100644 --- a/cmake/platform.cmake +++ b/cmake/platform.cmake @@ -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 - 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)