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
{{ message }}
Repository navigation
bli_gemmsup_rd_haswell_asm_d6x8m.c:1296:1:error:bp cannot be used in ams here #790
how to avoid the build error by correct configuration? thanks
Then type "make " in terminal:
the error info as bellow:
kernels/haswell/3/sup/bli_gemmsup_rd_haswell_asm_d6x8m.c: In function 'bli_dgemmsup_rd_haswell_asm_6x4m' :
kernels/haswell/3/sup/bli_gemmsup_rd_haswell_asm_d6x8m.c:1296:1: error: bp cannot be used in asm here}
The configuration of my target server:
CPU
NUMA node(s): 2
model name: intel(R) Xeon(R) Gold 5218 CPU@ 2.30 GHZ , product info can be got by the link
I hit this error in the default Arch Linux build because it now uses -fno-omit-frame-pointer as do many distributions now. The rationale, as desribed in the second link, is to facilitate full-system profiling. To reproduce on BLIS master,
$ ./configure CFLAGS='-fno-omit-frame-pointer' auto
$ make[...]kernels/haswell/3/sup/bli_gemmsup_rd_haswell_asm_d6x8m.c: In function ‘bli_dgemmsup_rd_haswell_asm_6x4m’:kernels/haswell/3/sup/bli_gemmsup_rd_haswell_asm_d6x8m.c:1296:1: error: bp cannot be used in ‘asm’ here 1296 | } | ^compilation terminated due to -Wfatal-errors.make: *** [Makefile:750: obj/haswell/kernels/haswell/3/sup/bli_gemmsup_rd_haswell_asm_d6x8m.o] Error 1[... many more ...]
One easy workaround would be to disable the SUP kernels in this case. Performance would be worse for small matrices but at least it would run. Would this be a reasonable compromise (for the time being at least)?
One easy workaround would be to disable the SUP kernels in this case. Performance would be worse for small matrices but at least it would run. Would this be a reasonable compromise (for the time being at least)?
Thanks, for now I just compiled with gcc13. Not sure if I later get problems with mixing openmp libraries from different compiler versions or if this just works fine.
But for updating the package in spack, it would be nice to have a fix. Otherwise I could add a conflict with gcc15 there - but I don't yet really understand when this is triggered and when not...
Activity
fgvanzee commentedon Jan 29, 2024
Hmm, don't have access to a Xeon Gold, but I can't reproduce that error on my x86_64 workstation.
devinamatthews commentedon Jan 29, 2024
OS and compiler version?
jedbrown commentedon May 10, 2024
I hit this error in the default Arch Linux build because it now uses
-fno-omit-frame-pointeras do many distributions now. The rationale, as desribed in the second link, is to facilitate full-system profiling. To reproduce on BLIS master,melven commentedon Jun 13, 2025
I get the same error when trying to update blis from 1.0 to 1.1 in https://github.com/spack/spack with GCC 15.1.0.
For the systems GCC 13.3.0, everything compiles fine. System is Ubuntu 24.04.
With 1.0 I actually hit the out-of-bounds bug in gemmsup fixed in 1.1.
devinamatthews commentedon Jun 13, 2025
One easy workaround would be to disable the SUP kernels in this case. Performance would be worse for small matrices but at least it would run. Would this be a reasonable compromise (for the time being at least)?
melven commentedon Jun 13, 2025
Thanks, for now I just compiled with gcc13. Not sure if I later get problems with mixing openmp libraries from different compiler versions or if this just works fine.
But for updating the package in spack, it would be nice to have a fix. Otherwise I could add a conflict with gcc15 there - but I don't yet really understand when this is triggered and when not...
chillenb commentedon Jun 24, 2025
One workaround for GCC 15 is to put
at the top of affected gemmsup kernels. (#845) You could also pass this option via CFLAGS.
lukas-weber commentedon Jun 1, 2026
On haswell, with the current master and gcc 16.1.1 I no longer have this issue.