Skip to content

Define Eigen's MADD and ASSUME_ALIGNED macros for MSVC arm64 and UBSan - #490

Merged
SimonRohou merged 1 commit into
codac-team:codac2_devfrom
Jordan08:dev-clean-v2-18
Oct 14, 2026
Merged

SimonRohou merged 1 commit into
codac-team:codac2_devfrom
Jordan08:dev-clean-v2-18

Conversation

@Jordan08

Copy link
Copy Markdown
Contributor

Avec MSVC arm64, Eigen n'active pas NEON et prend, pour les produits matriciels, un chemin qui suppose que le produit a le type de l'opérande de droite : les produits Matrix × IntervalMatrix ne compilaient pas. Définir EIGEN_HAS_SINGLE_INSTRUCTION_MADD fait prendre le chemin pmadd des autres architectures.
Sous macOS/Clang, EIGEN_ASSUME_ALIGNED annonçait un alignement huit fois trop grand, que la libc++ vérifie sous -fsanitize=alignment : UBSan signalait chaque produit de matrices. Codac le remplace par une indication vide, sans changer les instructions choisies par Eigen.

PR 18/64 de la série dev-clean-v2 (ordre et dépendances : #471). Indépendante : basée directement sur codac2, elle peut être mergée à tout moment.

@SimonRohou
SimonRohou changed the base branch from codac2 to codac2_dev October 9, 2026 16:57
@SimonRohou
SimonRohou merged commit ca8c3be into codac-team:codac2_dev Oct 14, 2026
60 of 80 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants