Skip to content

Remove -march=knl flag for GCC 15 and LLVM 19 compatibility#154

Merged
rgommers merged 1 commit into
explosion:mainfrom
rgommers:fix-gcc-15-builds
May 14, 2026
Merged

Remove -march=knl flag for GCC 15 and LLVM 19 compatibility#154
rgommers merged 1 commit into
explosion:mainfrom
rgommers:fix-gcc-15-builds

Conversation

@rgommers

Copy link
Copy Markdown
Contributor

GCC 15 dropped support for Xeon Phi (KNL) targets, making -march=knl invalid. For optimized KNL kernels, remove -march=knl since -mavx512f is already specified explicitly. For reference kernels, replace -march=knl with -march=skylake to provide an AVX2 baseline (AVX-512 is then disabled via -mno-avx512f -mno-avx512cd).

Follows the same approach as PR 129 which removed -mavx512pf.

Closes gh-150

GCC 15 dropped support for Xeon Phi (KNL) targets, making -march=knl
invalid. For optimized KNL kernels, remove -march=knl since -mavx512f
is already specified explicitly. For reference kernels, replace
-march=knl with -march=skylake to provide an AVX2 baseline (AVX-512
is then disabled via -mno-avx512f -mno-avx512cd).

Follows the same approach as PR 129 which removed -mavx512pf.

Closes explosiongh-150

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rgommers

rgommers commented Apr 1, 2026

Copy link
Copy Markdown
Contributor Author

It's not just GCC 15, there are also warnings in the Windows logs for LLVM 19:

BUILD ARCH: x86_64
warning: KNL, KNM related Intel Xeon Phi CPU's specific ISA's supports will be removed in LLVM 19. [-Wknl-knm-isa-support-removed]

@rgommers rgommers changed the title Remove -march=knl flag for GCC 15 compatibility Remove -march=knl flag for GCC 15 and LLVM 19 compatibility Apr 1, 2026
@rgommers

Copy link
Copy Markdown
Contributor Author

This should be a straightforward fix and CI is green, so I'll put this in.

@rgommers
rgommers merged commit 89c1f0d into explosion:main May 14, 2026
330 of 402 checks passed
@rgommers
rgommers deleted the fix-gcc-15-builds branch May 14, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Xeon Phi CPUs Support removed in GCC 15

1 participant