Skip to content

Commit 97d588c

Browse files
a-sidorovaxczhai
authored andcommitted
[RV64] Added compilation check for overloaded intrinsics
1 parent dea537b commit 97d588c

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
@@ -437,7 +437,10 @@ if (DNNL_TARGET_ARCH STREQUAL "RV64")
437437
# Check if the RVV Intrinsics can be compiled with the current toolchain and flags
438438
include(CheckCXXSourceCompiles)
439439
check_cxx_source_compiles("#include <riscv_vector.h>
440-
int main() { return 0; };"
440+
int main() {
441+
size_t size = 64;
442+
return vsetvl_e32m2(size);
443+
};"
441444
CAN_COMPILE_RVV_INTRINSICS
442445
)
443446
# set CAN_COMPILE_RVV_INTRINSICS to TRUE / FALSE instead of 1 / "" (Undefined)

0 commit comments

Comments
 (0)