shibatch / sleef

SIMD Library for Evaluating Elementary Functions, vectorized libm and DFT
https://sleef.org
Boost Software License 1.0
628 stars 126 forks source link

Fix RVV intrinsic version detection. #530

Closed sh1boot closed 5 months ago

sh1boot commented 5 months ago

__riscv_vcreate* appear after RVV intrinsics v0.12, and the next version after that is v1.0 which is not yet ratified.

Nevertheless, clang-18 and up already have the support we need.

sh1boot commented 5 months ago

Again with this chaining thing... this PR contains #527 and will need to be rebased after that goes in. Meanwhile the diff is just the one patch: https://github.com/shibatch/sleef/pull/530/commits/3f42ca6f501b6c7a380e94d8d3a668f61ebc7719

blapie commented 5 months ago

This make sense to me, will merge after rebase. Wondering if we should consider testing with clang 18 soon, unless this introduces complications.

sh1boot commented 5 months ago

Clang-18 has only just been released, I think (at 18.1 with no 18.0?). I'm not sure how long it will take for all the tooling to propagate.

I've been testing locally using apt.llvm.org snapshots. It should be good to go.