From 6e049ff66aad54947a2dc73128408a399d04e740 Mon Sep 17 00:00:00 2001 From: Erin Power Date: Thu, 10 Oct 2024 12:01:17 +0200 Subject: [PATCH 1/4] perf: explicitly enable cpu features --- .github/workflows/ci.yml | 2 +- build/build-image/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d8d4ff2f..39d11e851 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ concurrency: env: CARGO_TERM_COLOR: always - RUSTFLAGS: "-C target-feature=+aes,+vaes,+avx2" + RUSTFLAGS: "-C target-feature=+aes,+vaes,+avx2,+mmx,+sse4.2,+sse4a,ssse3,+bmi2,+fma,+rdrand,+sha,+adx,+f16c" jobs: lint: diff --git a/build/build-image/Dockerfile b/build/build-image/Dockerfile index 5f00d6e09..491d5b94c 100644 --- a/build/build-image/Dockerfile +++ b/build/build-image/Dockerfile @@ -20,7 +20,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \ CARGO_HOME=/usr/local/cargo \ PATH=/usr/local/cargo/bin:$PATH \ CARGO_TERM_COLOR=always \ - RUSTFLAGS="-C target-feature=+aes,+vaes,+avx2" \ + RUSTFLAGS="-C target-feature=+aes,+vaes,+avx2,+mmx,+sse4.2,+sse4a,ssse3,+bmi2,+fma,+rdrand,+sha,+adx,+f16c" \ LC_ALL=C.UTF-8 \ LANG=C.UTF-8 From 3c93665756a9835c66334003161c17a8cb0f019d Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Thu, 10 Oct 2024 12:20:33 +0200 Subject: [PATCH 2/4] Update Dockerfile --- build/build-image/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build-image/Dockerfile b/build/build-image/Dockerfile index 491d5b94c..3b4f4744f 100644 --- a/build/build-image/Dockerfile +++ b/build/build-image/Dockerfile @@ -20,7 +20,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \ CARGO_HOME=/usr/local/cargo \ PATH=/usr/local/cargo/bin:$PATH \ CARGO_TERM_COLOR=always \ - RUSTFLAGS="-C target-feature=+aes,+vaes,+avx2,+mmx,+sse4.2,+sse4a,ssse3,+bmi2,+fma,+rdrand,+sha,+adx,+f16c" \ + RUSTFLAGS="-C target-feature=+aes,+vaes,+avx2,+mmx,+sse4.2,+sse4a,ssse3,+bmi2" \ LC_ALL=C.UTF-8 \ LANG=C.UTF-8 From 9de7dae1de3713e80e5ce92b4869f62d4e7f77cb Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Thu, 10 Oct 2024 12:49:36 +0200 Subject: [PATCH 3/4] Update Dockerfile --- build/build-image/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build-image/Dockerfile b/build/build-image/Dockerfile index 3b4f4744f..f692e0aed 100644 --- a/build/build-image/Dockerfile +++ b/build/build-image/Dockerfile @@ -20,7 +20,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \ CARGO_HOME=/usr/local/cargo \ PATH=/usr/local/cargo/bin:$PATH \ CARGO_TERM_COLOR=always \ - RUSTFLAGS="-C target-feature=+aes,+vaes,+avx2,+mmx,+sse4.2,+sse4a,ssse3,+bmi2" \ + RUSTFLAGS="-C target-feature=+aes,+vaes,+avx2,+mmx,+sse4.2,+sse4a,ssse3,+bmi2,+fma,+rdrand,+sha,+adx" \ LC_ALL=C.UTF-8 \ LANG=C.UTF-8 From fad7c43b22699e089084c6c502ee52780cf808bd Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Thu, 10 Oct 2024 13:02:34 +0200 Subject: [PATCH 4/4] Update Dockerfile --- build/build-image/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build-image/Dockerfile b/build/build-image/Dockerfile index f692e0aed..ceffd80bd 100644 --- a/build/build-image/Dockerfile +++ b/build/build-image/Dockerfile @@ -20,7 +20,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \ CARGO_HOME=/usr/local/cargo \ PATH=/usr/local/cargo/bin:$PATH \ CARGO_TERM_COLOR=always \ - RUSTFLAGS="-C target-feature=+aes,+vaes,+avx2,+mmx,+sse4.2,+sse4a,ssse3,+bmi2,+fma,+rdrand,+sha,+adx" \ + RUSTFLAGS="-C target-feature=+aes,+vaes,+avx2,+mmx,+sse4.2,+sse4a,ssse3,+bmi2,+fma" \ LC_ALL=C.UTF-8 \ LANG=C.UTF-8