Enable generic clang backend tests.

<!-- 
Thanks for contributing a merge request!

We recommend that first-time contributors read our [contribution guidelines](https://eigen.tuxfamily.org/index.php?title=Contributing_to_Eigen).

Before submitting the MR, please complete the following checks:
- Create one PR per feature or bugfix,
- Run the test suite to verify your changes.
  See our [test guidelines](https://eigen.tuxfamily.org/index.php?title=Tests).
- Add tests to cover the bug addressed or any new feature.
- Document new features.  If it is a substantial change, add it to the [Changelog](https://gitlab.com/libeigen/eigen/-/blob/master/CHANGELOG.md).
- Leave the following box checked when submitting: `Allow commits from members who can merge to the target branch`.
  This allows us to rebase and merge your change.

Note that we are a team of volunteers; we appreciate your patience during the review process.
-->

### Description
<!--Please explain your changes.-->

Enable generic clang backend tests.

Added an AVX512 job using the generic clang backend.

Also fixed up some guards in the custom AVX512 gemm/trsm kernels so they don't
start defining things if they aren't used.

See merge request libeigen/eigen!2063
This commit is contained in:
Antonio Sánchez
2025-11-07 01:37:12 +00:00
committed by Rasmus Munk Larsen
parent 3368ac6c69
commit ed989c7504
5 changed files with 44 additions and 5 deletions

View File

@@ -97,6 +97,18 @@ build:linux:cross:x86-64:clang-12:avx512dq:
variables:
EIGEN_CI_ADDITIONAL_ARGS: "-DEIGEN_TEST_AVX512DQ=on"
# Generic vector extension backend.
build:linux:cross:x86-64:clang-19:generic:avx512dq:
image: ubuntu:24.04
extends: build:linux:cross:x86-64:clang-12:default
variables:
EIGEN_CI_INSTALL: clang-19
EIGEN_CI_C_COMPILER: clang-19
EIGEN_CI_CXX_COMPILER: clang++-19
EIGEN_CI_CROSS_INSTALL: g++-14-x86-64-linux-gnu clang-19
EIGEN_CI_ADDITIONAL_ARGS: >
-DEIGEN_TEST_CUSTOM_CXX_FLAGS=-mfma;-mavx512dq;-DEIGEN_VECTORIZE_GENERIC=1
build:linux:docs:
extends: .build:linux:cross
variables:

View File

@@ -197,6 +197,29 @@ test:linux:x86-64:clang-12:avx512dq:unsupported:
variables:
EIGEN_CI_CTEST_LABEL: Unsupported
# Generic vector extension backend.
.test:linux:x86-64:clang-19:generic:avx512dq:
image: ubuntu:24.04
extends: .test:linux:x86-64
needs: [ build:linux:cross:x86-64:clang-19:generic:avx512dq ]
variables:
EIGEN_CI_INSTALL: clang-19
tags:
- eigen-runner
- linux
- x86-64
- avx512
test:linux:x86-64:clang-19:generic:avx512dq:official:
extends: .test:linux:x86-64:clang-19:generic:avx512dq
variables:
EIGEN_CI_CTEST_LABEL: Official
test:linux:x86-64:clang-19:generic:avx512dq:unsupported:
extends: .test:linux:x86-64:clang-19:generic:avx512dq
variables:
EIGEN_CI_CTEST_LABEL: Unsupported
##### CUDA #####################################################################
.test:linux:cuda:
extends: .test:linux