From 66addcae440909d87b81b076843cdc1c9c7140f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Math=C3=A9o=20CIMBARO?= Date: Fri, 17 Jun 2022 00:23:30 +0200 Subject: [PATCH 1/2] Added support for SIMD operation JVM flag Pufferfish and its forks can use SIMD operation optimization when a JVM flag is given --- README.md | 8 ++++++++ scripts/start-finalExec | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/README.md b/README.md index dc9e5d93669..b903942684e 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 SIMD operations + +To enable support for SIMD operations, the JVM flag can be set with the following variable: + + -e USE_SIMD_FLAGS=true + +SIMD 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 e354b468299..1f5c7e3bf00 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 From f487ace2a8b2a925790f28d21cc15d44c7402e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Math=C3=A9o=20CIMBARO?= Date: Fri, 17 Jun 2022 00:36:08 +0200 Subject: [PATCH 2/2] More explanation about the flag --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b903942684e..f3dcaea4023 100644 --- a/README.md +++ b/README.md @@ -1570,13 +1570,13 @@ 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 SIMD operations +### Enable support for optimized SIMD operations -To enable support for SIMD operations, the JVM flag can be set with the following variable: +To enable support for optimized SIMD operations, the JVM flag can be set with the following variable: -e USE_SIMD_FLAGS=true -SIMD operations are supported by Pufferfish and Purpur. +SIMD optimized operations are supported by Pufferfish and Purpur. ### Enable timestamps in init logs