From a84cdaf35536dfd5e1e4097454a7db6c5c5ff571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Math=C3=A9o=20CIMBARO?= <25774021+DiscowZombie@users.noreply.github.com> Date: Fri, 17 Jun 2022 01:19:15 +0200 Subject: [PATCH] Added support for optimized SIMD operations (#1570) --- README.md | 8 ++++++++ scripts/start-finalExec | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/README.md b/README.md index dc9e5d93..f3dcaea4 100644 --- a/README.md +++ b/README.md @@ -1570,6 +1570,14 @@ To enable the JVM flags required to fully support the [Flare profiling suite](ht Flare is built-in to Airplane/Pufferfish/Purpur, and is available in [plugin form](https://github.com/TECHNOVE/FlarePlugin) for other server types. +### Enable support for optimized SIMD operations + +To enable support for optimized SIMD operations, the JVM flag can be set with the following variable: + + -e USE_SIMD_FLAGS=true + +SIMD optimized operations are supported by Pufferfish and Purpur. + ### Enable timestamps in init logs Before the container starts the Minecraft Server its output is prefixed with `[init]`, such as diff --git a/scripts/start-finalExec b/scripts/start-finalExec index e354b468..1f5c7e3b 100755 --- a/scripts/start-finalExec +++ b/scripts/start-finalExec @@ -186,6 +186,12 @@ if isTrue "${USE_FLARE_FLAGS}"; then " fi +if isTrue "${USE_SIMD_FLAGS}"; then + JVM_XX_OPTS="${JVM_XX_OPTS} + --add-modules=jdk.incubator.vector + " +fi + if isTrue "${DEBUG_MEMORY}"; then log "Memory usage and availability (in MB)" uname -a