Skip to content

Fix ARMV9SME/VORTEXM4 GEMM compilation with SMP disabled#5613

Merged
martin-frbg merged 1 commit intoOpenMathLib:developfrom
al3xtjames:gemm-smp
Jan 18, 2026
Merged

Fix ARMV9SME/VORTEXM4 GEMM compilation with SMP disabled#5613
martin-frbg merged 1 commit intoOpenMathLib:developfrom
al3xtjames:gemm-smp

Conversation

@al3xtjames
Copy link
Contributor

gemm.c currently declares gotoblas_corename in SMP-enabled builds, but the ARMV9SME and VORTEXM4 targets call gotoblas_corename even when SMP is disabled. Fix compilation of the ARMV9SME and VORTEXM4 targets with SMP disabled by unconditionally declaring gotoblas_corename for DYNAMIC_ARCH builds.

The compilation error can be reproduced with make DYNAMIC_ARCH=1 USE_THREAD=0:

gemm.c:558:12: error: call to undeclared function 'gotoblas_corename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  558 | if (strcmp(gotoblas_corename(), "armv9sme") == 0
      |            ^

gemm.c currently declares gotoblas_corename in SMP-enabled builds, but
the ARMV9SME and VORTEXM4 targets call gotoblas_corename even when SMP
is disabled. Fix compilation of the ARMV9SME and VORTEXM4 targets with
SMP disabled by unconditionally declaring gotoblas_corename for
DYNAMIC_ARCH builds.
@martin-frbg martin-frbg added this to the 0.3.32 milestone Jan 18, 2026
@martin-frbg martin-frbg merged commit 8ea938f into OpenMathLib:develop Jan 18, 2026
90 of 101 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants