Skip to content

bli_gemmsup_rd_haswell_asm_d6x8m.c:1296:1:error:bp cannot be used in ams here #790

Open

Description

@xqch1983

I configured parameters as bellow:

./configure --prefix=/tmpdata2/DevGroup/xieqingchun/tools/blis_lib -t openmp --enable-cblas CC=gcc CFLAGS=“-fomit-frame-pointer” haswell

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

Activity

  1. fgvanzee commented on Jan 29, 2024

    @fgvanzee
    Member

    Hmm, don't have access to a Xeon Gold, but I can't reproduce that error on my x86_64 workstation.

  2. devinamatthews commented on Jan 29, 2024

    @devinamatthews
    Member

    OS and compiler version?

  3. jedbrown commented on May 10, 2024

    @jedbrown
    Contributor

    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 ...]
  4. melven commented on Jun 13, 2025

    @melven

    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.

  5. devinamatthews commented on Jun 13, 2025

    @devinamatthews
    Member

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

  6. melven commented on Jun 13, 2025

    @melven

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

  7. chillenb commented on Jun 24, 2025

    @chillenb
    Contributor

    One workaround for GCC 15 is to put

    #pragma GCC optimize("-fno-tree-slp-vectorize")
    

    at the top of affected gemmsup kernels. (#845) You could also pass this option via CFLAGS.

  8. lukas-weber commented on Jun 1, 2026

    @lukas-weber

    On haswell, with the current master and gcc 16.1.1 I no longer have this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions