RFR: 8317976: Optimize SIMD sort for AMD Zen 4 [v3]
Rohit Arul Raj
rraj at openjdk.org
Thu Mar 27 06:37:54 UTC 2025
> In JDK-8309130, Array sort was optimized using AVX512 SIMD instructions for x86_64. Currently, this optimization has been disabled for AMD Zen 4 [JDK-8317763] due to bad performance of compressstoreu.
> Ref: https://www.reddit.com/r/java/comments/171t5sj/heads_up_openjdk_implementation_of_avx512_based/.
>
> This patch enables Zen 4 to pick optimized AVX2 version of SIMD sort and Zen 5 picks the AVX512 version.
>
> JTREG Tests: Completed Tier1 & Tier2 tests on Zen4 & Zen5 - No Regressions.
>
> Attaching ArraySort performance data for Zen4 & Zen5.
> [Zen4-ArraySort-Data.txt](https://github.com/user-attachments/files/19245831/Zen4-ArraySort-Data.txt)
> [Zen5-ArraySort-Data.txt](https://github.com/user-attachments/files/19245833/Zen5-ArraySort-Data.txt)
Rohit Arul Raj has updated the pull request incrementally with one additional commit since the last revision:
Refactor 'supports_avx512_simd_sort' code to make it easily readable
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/24053/files
- new: https://git.openjdk.org/jdk/pull/24053/files/42011911..b369de6f
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=24053&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=24053&range=01-02
Stats: 9 lines in 1 file changed: 7 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/24053.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/24053/head:pull/24053
PR: https://git.openjdk.org/jdk/pull/24053
More information about the hotspot-compiler-dev
mailing list