Skip to content

Commit c60a994

Browse files
committed
[RV64] Added compilation check for overloaded intrinsics
1 parent 1ce2d72 commit c60a994

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmake/platform.cmake

+4-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,10 @@ if (DNNL_TARGET_ARCH STREQUAL "RV64")
419419
# Check if the RVV Intrinsics can be compiled with the current toolchain and flags
420420
include(CheckCXXSourceCompiles)
421421
check_cxx_source_compiles("#include <riscv_vector.h>
422-
int main() { return 0; };"
422+
int main() {
423+
size_t size = 64;
424+
return vsetvl_e32m2(size);
425+
};"
423426
CAN_COMPILE_RVV_INTRINSICS
424427
)
425428
# set CAN_COMPILE_RVV_INTRINSICS to TRUE / FALSE instead of 1 / "" (Undefined)

0 commit comments

Comments
 (0)