On Sat, 29 Mar 2025 00:58:59 GMT, Vladimir Ivanov <vliva...@openjdk.org> wrote:

> Build and use SLEEF library as a backend implementation for Vector API 
> trigonometric functions on macosx-aarch64 platform.
> 
> It improves raw throughput and eliminates GC overhead of non-intrinsified 
> Vector API operation.
> 
> PR includes build changes and libsleef sources relocation from 
> `src/jdk.incubator.vector/linux/native/` to 
> `src/jdk.incubator.vector/share/native/`.
> 
> Once libsleef library is present, existing code in 
> `stubGenerator_aarch64.cpp` successfully links at JVM startup. 
> 
> Testing: hs-tier1 - hs-tier4, microbenchmarks

Instead of trying to guide you how to fix this, I made the unification of all 
libsleef stanzas myself. It is available here:

https://github.com/openjdk/jdk/commit/04feadda561b2f7a6afff440ab5b4e188361c048

That commit assumes that `vector_math_sve.c`  should have `$(SVE_CFLAGS)` on 
mac as well as on linux. If that is not correct, then it needs to be adjusted.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/24306#issuecomment-2766072866

Reply via email to