shithub: opus

Download patch

ref: 115edd9c0668ad07d9be1e4ea150689a4c32508a
parent: 9f4fc8bbfa4f8ddd518f85a7aa0a87ab8369c6a9
author: Marcus Asteborg <xnorpx@outlook.com>
date: Sun Jun 25 12:11:27 EDT 2023

Move build and tests for x86 to avx2 machines.

--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -56,6 +56,8 @@
 
 autoconf:
   stage: build
+  tags:
+    - avx2
   before_script:
     - apt-get update &&
       apt-get install -y zip doxygen git automake libtool make wget
@@ -62,9 +64,9 @@
     - !reference [.snippets, git_prep]
   script:
     - ./autogen.sh
-    - ./configure
-    - make -j4
-    - make distcheck
+    - CFLAGS="-mavx -mfma -mavx2 -O2 -ffast-math" ./configure --enable-float-approx
+    - make -j16
+    - DISTCHECK_CONFIGURE_FLAGS="--enable-float-approx CFLAGS='-mavx -mfma -mavx2 -O2'" make distcheck -j16
   cache:
     paths:
       - "src/*.o"
@@ -76,6 +78,8 @@
 
 cmake:
   stage: build
+  tags:
+    - avx2
   before_script:
     - apt-get update &&
       apt-get install -y cmake ninja-build git automake libtool wget
@@ -83,9 +87,9 @@
   script:
     - ./autogen.sh
     - mkdir build
-    - cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DOPUS_BUILD_TESTING=ON -DOPUS_BUILD_PROGRAMS=ON -DOPUS_NEURAL_FEC=ON
-    - cmake --build build -j 4
-    - cd build && ctest --output-on-failure -j 4
+    - cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DOPUS_BUILD_PROGRAMS=ON -DBUILD_TESTING=ON -DOPUS_FAST_MATH=ON -DOPUS_FLOAT_APPROX=ON -DOPUS_NEURAL_FEC=ON -DOPUS_X86_PRESUME_AVX2=ON
+    - cmake --build build
+    - cd build && ctest --output-on-failure -j 16
 
 .meson:
   image: 'debian:bookworm-slim'
@@ -104,6 +108,8 @@
 
 meson x86_64:
   extends: '.meson'
+  tags:
+    - avx2
   variables:
     MESON_EXTRA_ARGS: '--werror'
 
--