You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on and for a Ryzen 9 9900X fails with the following error:
In file included from /home/aaron/code/blis/kernels/zen4/3/sup/bli_dgemmsup_rv_zen4_asm_24x8m.c:36:
/home/aaron/code/blis/kernels/zen4/3/sup/bli_dgemmsup_rv_zen4_asm_24x8m.c: In function ‘bli_dgemmsup_rv_zen4_asm_24x8m_new’:
/home/aaron/code/blis/frame/include/bli_x86_asm_macros.h:102:21: error: ‘asm’ operand has impossible constraints or there are not enough registers
102 | #define BEGIN_ASM() __asm__ volatile (
| ^~~~~~~
/home/aaron/code/blis/frame/include/bli_x86_asm_macros.h:154:21: note: in expansion of macro ‘BEGIN_ASM’
154 | #define begin_asm() BEGIN_ASM()
| ^~~~~~~~~
/home/aaron/code/blis/kernels/zen4/3/sup/bli_dgemmsup_rv_zen4_asm_24x8m.c:48382:9: note: in expansion of macro ‘begin_asm’
48382 | begin_asm()
| ^~~~~~~~~
compilation terminated due to -Wfatal-errors.
make[2]: *** [kernels/CMakeFiles/zen4_KERNELS.dir/build.make:625: kernels/CMakeFiles/zen4_KERNELS.dir/zen4/3/sup/bli_dgemmsup_rv_zen4_asm_24x8m.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1469: kernels/CMakeFiles/zen4_KERNELS.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Hi Aaron, this is a problem with gcc 15 and we are working on a solution. In the meantime, is it possible for you to switch back to gcc 14.3 or an earlier release?
Im happy to wait for the fix rather than downgrading gcc, no rush on my end. If youd find it helpful for debugging/testing purposes id be willing to switch back to gcc 14 temporarily. otherwise ill just keep an eye on this issue, thanks you for your work!
upstream BLIS added this in front of the affected kernels (see here):
// This avoids a known issue with GCC15 ("error: bp cannot be used in asm here", #845).// Only check for version 15 since this may be fixed in 16 (**fingers crossed**), and also// make sure the compiler isn't clang since it also confusingly defines __GNUC__#if !defined(__clang__) && defined(__GNUC__) &&__GNUC__==15#pragma GCC optimize("-fno-tree-slp-vectorize")
#endif
Looks like the dev branch puts the same flag into the CKOPTFLAGS for the affected kernel?
Activity
edwsmyth commentedon Jun 17, 2025
Hi Aaron, this is a problem with gcc 15 and we are working on a solution. In the meantime, is it possible for you to switch back to gcc 14.3 or an earlier release?
AaronBeier commentedon Jun 17, 2025
Im happy to wait for the fix rather than downgrading gcc, no rush on my end. If youd find it helpful for debugging/testing purposes id be willing to switch back to gcc 14 temporarily. otherwise ill just keep an eye on this issue, thanks you for your work!
More optimizations in 6x8m DGEMM SUP Kernel using prefetching (#34)
TheTrustedComputer commentedon Jul 27, 2025
I encountered the same error when building for a Zen 3 target on GCC 15.1, 5.1 release. Switching to Clang 20 worked.
AaronBeier commentedon Jul 27, 2025
You can also just build the dev branch, it builds fine now, at least for zen5 on gcc 15
chillenb commentedon Jul 30, 2025
upstream BLIS added this in front of the affected kernels (see here):
Looks like the dev branch puts the same flag into the CKOPTFLAGS for the affected kernel?
LunNova commentedon Dec 7, 2025
Fixed by a4db661
amd-blis: backport fix for GCC 15 build error