Skip to content

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

Open
rgommers wants to merge 1 commit intoexplosion:mainfrom
rgommers:fix-gcc-15-builds
Open

Remove -march=knl flag for GCC 15 and LLVM 19 compatibility#154
rgommers wants to merge 1 commit intoexplosion: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
Copy link
Copy Markdown
Contributor Author

rgommers commented Apr 1, 2026

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
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