Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[risc-v] cmake: added rvv intrinsics compilation check #2195

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dmitry-gorokhov
Copy link
Contributor

Description

OneDNN build with https://github.com/riscv-collab/riscv-gnu-toolchain fails with the following error:
image

The GNU toolchain for RISC-V now supports RVV by default - ratified RVV1.0. All intrinsics have prefix __riscv64. Some compilers (clang, llvm) can compile a code contained intrinsics without this prefix (have overloaded functions). But GCC from riscv-gnu-toolchain doesn't have them - so cannot compile max pooling primitive from oneDNN.

The fix adds cmake configuration time check that corresponding intrinsics are really supported by the compiler.

This change is upstreamed from oneDNN fork repo maintained by OpenVINO organization.

@dmitry-gorokhov dmitry-gorokhov requested a review from a team as a code owner October 31, 2024 06:51
@vpirogov
Copy link
Member

vpirogov commented Nov 1, 2024

make test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants