← Back to Pull requests

Add opt-in libblasfeo-microarch-abi output, and link libm #26

Open
mini-1235 opened this pull request with 335 lines diff across 20 files
View on GitHub
mini-1235 mini-1235 commented on Nov 27, 2026 15:09 UTC
Author

Checklist
[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] [Re-rendered]( https://conda-forge.org/docs/maintainer/updating_pkgs.html#rerendering-feedstocks ) with the latest conda-smithy
[x] Ensured the license file is being packaged.

Fixes #25

Changes


  • New opt-in libblasfeo-microarch-abi output, versioned <blasfeo version>.<microarch level> (.0 on non-x86), like eigen-abi. libblasfeo constrains it to its own level; packages whose ABI depends on the matrix layout (single-precision API, direct matrix access, variant-only symbols, e.g. HPIPM) add it to host and get the exact level pinned via its run_exports. Double-only consumers are unaffected. Usage is documented in recipe/README.md.

  • Link libm on Linux (0003-cmake-link-libm.patch). The CMake build didn't link m (the Makefile does), so dlopen(RTLD_NOW) failed unless libm was already loaded. New readelf test fails on the current _102 package and passes here.

  • The top-level build section and CRLF line endings are kept to keep the diff small.
  • Needs conda-forge/admin-requests#2513 for output validation.

    Testing


  • linux-64, both levels: recipe tests pass. An opt-in consumer installs only the matching variant (0/80 float errors, vs 72/80 when mismatched before) and the solver rejects a forced mismatch; a non-opt-in consumer installs with either variant.

  • osx-arm64: recipe tests pass, opt-in consumer works. osx-64: cross-built, tests not run locally. Windows/aarch64/ppc64le/riscv64 not tested locally.
  • ---
    This description was AI-generated with Claude Opus 5.5.

    🤖 Generated with Claude Code

    Diff: 335 lines (+235 / -100) across 20 files Reviewer: traversaro Review duration: 12367m
    All Vouch review confidence checks passed
    Residual risk 0.07 = Change Risk (0.66) × (1 − Review Confidence (0.90)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.66 · 335 lines diff across 20 files
    0.66
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.88 · 5 substantive comment(s)
    0.88
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    90%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.348
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    6 items
    conda-forge-admin conda-forge-admin commented on Nov 27, 2026 15:11 UTC
    Contributor

    Hi! This is the friendly automated conda-forge-linting service.

    I wanted to let you know that I linted all conda-recipes in your PR (``recipe/recipe.yaml`) and found some lint.

    Here's what I've got...

    For recipe/recipe.yaml:

    ❌ The recipe must have a build/number section.

    For recipe/recipe.yaml:

    ℹ️ The use of pkg-config is deprecated. Please use pkgconf` instead.

    <sub>This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/46022423928. Examine the logs at this URL for more detail.</sub>

    conda-forge-admin conda-forge-admin commented on Nov 27, 2026 15:14 UTC
    Contributor

    Hi! This is the friendly automated conda-forge-linting service.

    I just wanted to let you know that I linted all conda-recipes in your PR (``recipe/recipe.yaml`) and found it was in an excellent condition.

    I do have some suggestions for making it better though...

    For recipe/recipe.yaml:

    * ℹ️ The use of pkg-config is deprecated. Please use pkgconf` instead.

    <sub>This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/46024823227. Examine the logs at this URL for more detail.</sub>

    traversaro traversaro commented on code on Nov 27, 2026 15:18 UTC
    Code Review
    recipe/recipe.yaml:1
    @@ -1,119 +1,155 @@
    -schema_version: 1
    -
    -context:
    -  name: libblasfeo
    -  version: "0.1.4.3"
    -  build: 2
    -
    -package:
    -  name: ${{ name }}
    -  version: ${{ version }}
    -
    -source:
    -  url: https://github.com/giaf/blasfeo/archive/refs/tags/${{ version }}.tar.gz
    -  sha256: 92e33e00be7d2a814ecc982b23bfb86a50b71a168abb9009766801fb957e9046
    -  patches:
    -    - win-clang-prefetch-cast.patch
    -    - fix_version_to_0_1_4_3.patch
    -    - 0001-add-.note.GNU-stack-to-arm-and-sse3-kernels.patch
    -    - 0002-fix-sse3-sgemm-stack-annotation.patch
    -
    -build:
    -  number: >-
    -    ${{ build + (
    -        100 if (microarch_level | default(1)) in [1, "1"]
    -        else 300 if (microarch_level | default(1)) in [3, "3"]
    -        else 400 if (microarch_level | default(1)) in [4, "4"]
    -        else 0
    -        if x86_64 else 0
    -    ) }}
    -
    -  # Selects build.sh on Unix and build.bat on Windows.
    -  script:
    -    file: build
    -    env:
    -      # See https://github.com/giaf/blasfeo?tab=readme-ov-file#supported-computer-architectures
    -      # and https://clang.llvm.org/docs/UsersManual.html#x86.
    -      #
    -      # X64_INTEL_CORE is the TARGET setting more similar to nocona,
    -      # so we use that for microarch_level == 1.
    -      # microarch_level == 3 has AVX and AVX2, so it maps to X64_INTEL_HASWELL.
    -      # microarch_level == 4 has AVX512F, so it maps to X64_INTEL_SKYLAKE_X.
    -      #
    -      # Modern arm processors (e.g. X Elite) have cache sizes more similar
    -      # to Apple's M1, so arm64 uses ARMV8A_APPLE_M1.
    -      # On Linux aarch64, typical targets are embedded systems like
    -      # Raspberry Pi, so we use ARMV8A_ARM_CORTEX_A76.
    -      BLASFEO_TARGET: >-
    -        ${{
    -          "X64_INTEL_CORE" if x86_64 and (microarch_level | default(1)) in [1, "1"]
    -          else "X64_INTEL_HASWELL" if x86_64 and (microarch_level | default(1)) in [3, "3"]
    -          else "X64_INTEL_SKYLAKE_X" if x86_64 and (microarch_level | default(1)) in [4, "4"]
    -          else "ARMV8A_APPLE_M1" if arm64
    -          else "ARMV8A_ARM_CORTEX_A76" if aarch64
    -          else "GENERIC"
    -        }}
    -
    -requirements:
    -  build:
    -    # Note that x86_64-microarch-level doesn't support win,
    -    # but we can still specify microarch_level for win builds.
    -    # This package only sets the -march flags, but since the build process
    -    # is custom anyway, we don't care on win.
    -    - if: unix and x86_64
    -      then: x86_64-microarch-level ==${{ microarch_level | default("1") }}
    -
    -    - ${{ compiler("c") }}
    -    - ${{ stdlib("c") }}
    -    - cmake
    -    - pkg-config
    -    - ninja
    -
    -    - if: win
    -      then: clang
    -
    -  run:
    -    - if: x86_64
    -      then: _x86_64-microarch-level >=${{ microarch_level | default("1") }}
    -
    -  run_exports:
    -    - ${{ pin_subpackage(name, upper_bound="x.x.x") }}
    -
    -tests:
    -  - package_contents:
    -      include:
    -        - blasfeo.h
    -      lib:
    -        - blasfeo
    -
    -  - script:
    -      - cmake-package-check blasfeo --targets blasfeo
    -    requirements:
    -      run:
    -        - cmake-package-check
    -        - ${{ compiler('c') }}
    -        - ${{ compiler('cxx') }}
    -
    -  - script:
    -      - if: linux
    -        then: nm -s $PREFIX/lib/libblasfeo.so | grep "U "
    -      # Require a non-executable stack independently of the system glibc version.
    -      - if: linux
    -        then: readelf --wide --program-headers "$PREFIX/lib/libblasfeo.so" | grep -E 'GNU_STACK.* RW[[:space:]]'
    -    requirements:
    -      run:
    -        - if: linux
    -          then: binutils
    -
    -about:
    -  homepage: https://github.com/giaf/blasfeo
    -  repository: https://github.com/giaf/blasfeo
    -  license: BSD-2-Clause
    -  license_file: LICENSE.txt
    -  summary: Basic linear algebra subroutines for embedded optimization
    -
    -extra:
    -  feedstock-name: blasfeo
    -  recipe-maintainers:
    -    - RSchwan
    -    - traversaro
    +schema_version: 1
    +
    +context:
    +  name: libblasfeo
    +  version: "0.1.4.3"
    +  build: 3
    +  # Identifies the packed-matrix ABI (panel sizes and exported symbols), which
    +  # depends on the BLASFEO target. Consumers compiled against one target must
    +  # run with the same one, see
    +  # https://github.com/conda-forge/blasfeo-feedstock/issues/25
    +  abi: >-
    +    ${{
    +      "x64_intel_core" if x86_64 and (microarch_level | default(1)) in [1, "1"]
    +      else "x64_intel_haswell" if x86_64 and (microarch_level | default(1)) in [3, "3"]
    +      else "x64_intel_skylake_x" if x86_64 and (microarch_level | default(1)) in [4, "4"]
    +      else "armv8a_apple_m1" if arm64
    +      else "armv8a_arm_cortex_a76" if aarch64
    +      else "generic"
    +    }}
    +
    +recipe:
    +  name: blasfeo-split
    +  version: ${{ version }}
    +
    +source:
    +  url: https://github.com/giaf/blasfeo/archive/refs/tags/${{ version }}.tar.gz
    +  sha256: 92e33e00be7d2a814ecc982b23bfb86a50b71a168abb9009766801fb957e9046
    +  patches:
    +    - win-clang-prefetch-cast.patch
    +    - fix_version_to_0_1_4_3.patch
    +    - 0001-add-.note.GNU-stack-to-arm-and-sse3-kernels.patch
    +    - 0002-fix-sse3-sgemm-stack-annotation.patch
    +    - 0003-cmake-link-libm.patch
    +
    +build:
    +  number: ${{ build }}
    +
    +outputs:
    +- package:
    +    name: libblasfeo-abi
    +  build:
    +    number: ${{ build }}
    +    # The build number keeps file names unique across rebuilds.
    +    string: ${{ abi }}_${{ build }}
    +  tests:
    +    - script:
    +        - echo "BLASFEO ABI ${{ abi }}"
    +
    +- package:
    +    name: ${{ name }}
    +  build:
    +    number: >-
    +      ${{ build + (
    +          100 if (microarch_level | default(1)) in [1, "1"]
    +          else 300 if (microarch_level | default(1)) in [3, "3"]
    +          else 400 if (microarch_level | default(1)) in [4, "4"]
    +          else 0
    +          if x86_64 else 0
    +      ) }}
    +
    +    # Selects build.sh on Unix and build.bat on Windows.
    +    script:
    +      file: build
    +      env:
    +        # See https://github.com/giaf/blasfeo?tab=readme-ov-file#supported-computer-architectures
    +        # and https://clang.llvm.org/docs/UsersManual.html#x86.
    +        #
    +        # X64_INTEL_CORE is the TARGET setting more similar to nocona,
    +        # so we use that for microarch_level == 1.
    +        # microarch_level == 3 has AVX and AVX2, so it maps to X64_INTEL_HASWELL.
    +        # microarch_level == 4 has AVX512F, so it maps to X64_INTEL_SKYLAKE_X.
    +        #
    +        # Modern arm processors (e.g. X Elite) have cache sizes more similar
    +        # to Apple's M1, so arm64 uses ARMV8A_APPLE_M1.
    +        # On Linux aarch64, typical targets are embedded systems like
    +        # Raspberry Pi, so we use ARMV8A_ARM_CORTEX_A76.
    +        BLASFEO_TARGET: >-
    +          ${{
    +            "X64_INTEL_CORE" if x86_64 and (microarch_level | default(1)) in [1, "1"]
    +            else "X64_INTEL_HASWELL" if x86_64 and (microarch_level | default(1)) in [3, "3"]
    +            else "X64_INTEL_SKYLAKE_X" if x86_64 and (microarch_level | default(1)) in [4, "4"]
    +            else "ARMV8A_APPLE_M1" if arm64
    +            else "ARMV8A_ARM_CORTEX_A76" if aarch64
    +            else "GENERIC"
    +          }}
    +
    +  requirements:
    +    build:
    +      # Note that x86_64-microarch-level doesn't support win,
    +      # but we can still specify microarch_level for win builds.
    +      # This package only sets the -march flags, but since the build process
    +      # is custom anyway, we don't care on win.
    +      - if: unix and x86_64
    +        then: x86_64-microarch-level ==${{ microarch_level | default("1") }}
    +
    +      - ${{ compiler("c") }}
    +      - ${{ stdlib("c") }}
    +      - cmake
    +      - pkg-config
    +      - ninja
    +
    +      - if: win
    +        then: clang
    +
    +    run:
    +      - ${{ pin_subpackage("libblasfeo-abi", exact=True) }}
    +      - if: x86_64
    +        then: _x86_64-microarch-level >=${{ microarch_level | default("1") }}
    +
    +    run_exports:
    +      - ${{ pin_subpackage(name, upper_bound="x.x.x") }}
    +      - libblasfeo-abi * ${{ abi }}_*
    +
    +  tests:
    +    - package_contents:
    +        include:
    +          - blasfeo.h
    +        lib:
    +          - blasfeo
    +
    +    - script:
    +        - cmake-package-check blasfeo --targets blasfeo
    +      requirements:
    +        run:
    +          - cmake-package-check
    +          - ${{ compiler('c') }}
    +          - ${{ compiler('cxx') }}
    +
    +    - script:
    +        - if: linux
    +          then: nm -s $PREFIX/lib/libblasfeo.so | grep "U "
    +        # Require a non-executable stack independently of the system glibc version.
    +        - if: linux
    +          then: readelf --wide --program-headers "$PREFIX/lib/libblasfeo.so" | grep -E 'GNU_STACK.* RW[[:space:]]'
    +        # libblasfeo uses libm functions, so it must declare libm as needed
    +        # to be loadable by dlopen without a preloaded libm.
    +        - if: linux
    +          then: readelf --dynamic "$PREFIX/lib/libblasfeo.so" | grep -E 'NEEDED.*\[libm\.so'
    +      requirements:
    +        run:
    +          - if: linux
    +            then: binutils
    +
    +about:
    +  homepage: https://github.com/giaf/blasfeo
    +  repository: https://github.com/giaf/blasfeo
    +  license: BSD-2-Clause
    +  license_file: LICENSE.txt
    +  summary: Basic linear algebra subroutines for embedded optimization
    +
    +extra:
    +  feedstock-name: blasfeo
    +  recipe-maintainers:
    +    - RSchwan
    +    - traversaro

    Can you avoid changing all lines to simplify the review?

    traversaro traversaro commented on Nov 27, 2026 15:20 UTC
    Contributor

    New libblasfeo-abi output. Its build string names the BLASFEO target (e.g. x64_intel_core_3, x64_intel_haswell_3). libblasfeo depends on its exact build and adds libblasfeo-abi <target>_ to run_exports, so consumers (e.g. HPIPM) only get the variant whose headers they were compiled against. The level 1 and level 3 builds differ in float panel size (4 vs 8) and in exported symbols.

    Given that many packages only link the api subset that its abi does not change its ABI depending on the microarch level, could it make sense to call this libblasfeo-microarch-abi, and document clearly in the recipe/README.md in which case it should be used or not. Also, I would include the microarch level using an extended version, a bit like we do in eigen-abi .

    mini-1235 mini-1235 commented on code on Nov 27, 2026 15:27 UTC
    Code Review
    recipe/recipe.yaml:1
    @@ -1,119 +1,155 @@
    -schema_version: 1
    -
    -context:
    -  name: libblasfeo
    -  version: "0.1.4.3"
    -  build: 2
    -
    -package:
    -  name: ${{ name }}
    -  version: ${{ version }}
    -
    -source:
    -  url: https://github.com/giaf/blasfeo/archive/refs/tags/${{ version }}.tar.gz
    -  sha256: 92e33e00be7d2a814ecc982b23bfb86a50b71a168abb9009766801fb957e9046
    -  patches:
    -    - win-clang-prefetch-cast.patch
    -    - fix_version_to_0_1_4_3.patch
    -    - 0001-add-.note.GNU-stack-to-arm-and-sse3-kernels.patch
    -    - 0002-fix-sse3-sgemm-stack-annotation.patch
    -
    -build:
    -  number: >-
    -    ${{ build + (
    -        100 if (microarch_level | default(1)) in [1, "1"]
    -        else 300 if (microarch_level | default(1)) in [3, "3"]
    -        else 400 if (microarch_level | default(1)) in [4, "4"]
    -        else 0
    -        if x86_64 else 0
    -    ) }}
    -
    -  # Selects build.sh on Unix and build.bat on Windows.
    -  script:
    -    file: build
    -    env:
    -      # See https://github.com/giaf/blasfeo?tab=readme-ov-file#supported-computer-architectures
    -      # and https://clang.llvm.org/docs/UsersManual.html#x86.
    -      #
    -      # X64_INTEL_CORE is the TARGET setting more similar to nocona,
    -      # so we use that for microarch_level == 1.
    -      # microarch_level == 3 has AVX and AVX2, so it maps to X64_INTEL_HASWELL.
    -      # microarch_level == 4 has AVX512F, so it maps to X64_INTEL_SKYLAKE_X.
    -      #
    -      # Modern arm processors (e.g. X Elite) have cache sizes more similar
    -      # to Apple's M1, so arm64 uses ARMV8A_APPLE_M1.
    -      # On Linux aarch64, typical targets are embedded systems like
    -      # Raspberry Pi, so we use ARMV8A_ARM_CORTEX_A76.
    -      BLASFEO_TARGET: >-
    -        ${{
    -          "X64_INTEL_CORE" if x86_64 and (microarch_level | default(1)) in [1, "1"]
    -          else "X64_INTEL_HASWELL" if x86_64 and (microarch_level | default(1)) in [3, "3"]
    -          else "X64_INTEL_SKYLAKE_X" if x86_64 and (microarch_level | default(1)) in [4, "4"]
    -          else "ARMV8A_APPLE_M1" if arm64
    -          else "ARMV8A_ARM_CORTEX_A76" if aarch64
    -          else "GENERIC"
    -        }}
    -
    -requirements:
    -  build:
    -    # Note that x86_64-microarch-level doesn't support win,
    -    # but we can still specify microarch_level for win builds.
    -    # This package only sets the -march flags, but since the build process
    -    # is custom anyway, we don't care on win.
    -    - if: unix and x86_64
    -      then: x86_64-microarch-level ==${{ microarch_level | default("1") }}
    -
    -    - ${{ compiler("c") }}
    -    - ${{ stdlib("c") }}
    -    - cmake
    -    - pkg-config
    -    - ninja
    -
    -    - if: win
    -      then: clang
    -
    -  run:
    -    - if: x86_64
    -      then: _x86_64-microarch-level >=${{ microarch_level | default("1") }}
    -
    -  run_exports:
    -    - ${{ pin_subpackage(name, upper_bound="x.x.x") }}
    -
    -tests:
    -  - package_contents:
    -      include:
    -        - blasfeo.h
    -      lib:
    -        - blasfeo
    -
    -  - script:
    -      - cmake-package-check blasfeo --targets blasfeo
    -    requirements:
    -      run:
    -        - cmake-package-check
    -        - ${{ compiler('c') }}
    -        - ${{ compiler('cxx') }}
    -
    -  - script:
    -      - if: linux
    -        then: nm -s $PREFIX/lib/libblasfeo.so | grep "U "
    -      # Require a non-executable stack independently of the system glibc version.
    -      - if: linux
    -        then: readelf --wide --program-headers "$PREFIX/lib/libblasfeo.so" | grep -E 'GNU_STACK.* RW[[:space:]]'
    -    requirements:
    -      run:
    -        - if: linux
    -          then: binutils
    -
    -about:
    -  homepage: https://github.com/giaf/blasfeo
    -  repository: https://github.com/giaf/blasfeo
    -  license: BSD-2-Clause
    -  license_file: LICENSE.txt
    -  summary: Basic linear algebra subroutines for embedded optimization
    -
    -extra:
    -  feedstock-name: blasfeo
    -  recipe-maintainers:
    -    - RSchwan
    -    - traversaro
    +schema_version: 1
    +
    +context:
    +  name: libblasfeo
    +  version: "0.1.4.3"
    +  build: 3
    +  # Identifies the packed-matrix ABI (panel sizes and exported symbols), which
    +  # depends on the BLASFEO target. Consumers compiled against one target must
    +  # run with the same one, see
    +  # https://github.com/conda-forge/blasfeo-feedstock/issues/25
    +  abi: >-
    +    ${{
    +      "x64_intel_core" if x86_64 and (microarch_level | default(1)) in [1, "1"]
    +      else "x64_intel_haswell" if x86_64 and (microarch_level | default(1)) in [3, "3"]
    +      else "x64_intel_skylake_x" if x86_64 and (microarch_level | default(1)) in [4, "4"]
    +      else "armv8a_apple_m1" if arm64
    +      else "armv8a_arm_cortex_a76" if aarch64
    +      else "generic"
    +    }}
    +
    +recipe:
    +  name: blasfeo-split
    +  version: ${{ version }}
    +
    +source:
    +  url: https://github.com/giaf/blasfeo/archive/refs/tags/${{ version }}.tar.gz
    +  sha256: 92e33e00be7d2a814ecc982b23bfb86a50b71a168abb9009766801fb957e9046
    +  patches:
    +    - win-clang-prefetch-cast.patch
    +    - fix_version_to_0_1_4_3.patch
    +    - 0001-add-.note.GNU-stack-to-arm-and-sse3-kernels.patch
    +    - 0002-fix-sse3-sgemm-stack-annotation.patch
    +    - 0003-cmake-link-libm.patch
    +
    +build:
    +  number: ${{ build }}
    +
    +outputs:
    +- package:
    +    name: libblasfeo-abi
    +  build:
    +    number: ${{ build }}
    +    # The build number keeps file names unique across rebuilds.
    +    string: ${{ abi }}_${{ build }}
    +  tests:
    +    - script:
    +        - echo "BLASFEO ABI ${{ abi }}"
    +
    +- package:
    +    name: ${{ name }}
    +  build:
    +    number: >-
    +      ${{ build + (
    +          100 if (microarch_level | default(1)) in [1, "1"]
    +          else 300 if (microarch_level | default(1)) in [3, "3"]
    +          else 400 if (microarch_level | default(1)) in [4, "4"]
    +          else 0
    +          if x86_64 else 0
    +      ) }}
    +
    +    # Selects build.sh on Unix and build.bat on Windows.
    +    script:
    +      file: build
    +      env:
    +        # See https://github.com/giaf/blasfeo?tab=readme-ov-file#supported-computer-architectures
    +        # and https://clang.llvm.org/docs/UsersManual.html#x86.
    +        #
    +        # X64_INTEL_CORE is the TARGET setting more similar to nocona,
    +        # so we use that for microarch_level == 1.
    +        # microarch_level == 3 has AVX and AVX2, so it maps to X64_INTEL_HASWELL.
    +        # microarch_level == 4 has AVX512F, so it maps to X64_INTEL_SKYLAKE_X.
    +        #
    +        # Modern arm processors (e.g. X Elite) have cache sizes more similar
    +        # to Apple's M1, so arm64 uses ARMV8A_APPLE_M1.
    +        # On Linux aarch64, typical targets are embedded systems like
    +        # Raspberry Pi, so we use ARMV8A_ARM_CORTEX_A76.
    +        BLASFEO_TARGET: >-
    +          ${{
    +            "X64_INTEL_CORE" if x86_64 and (microarch_level | default(1)) in [1, "1"]
    +            else "X64_INTEL_HASWELL" if x86_64 and (microarch_level | default(1)) in [3, "3"]
    +            else "X64_INTEL_SKYLAKE_X" if x86_64 and (microarch_level | default(1)) in [4, "4"]
    +            else "ARMV8A_APPLE_M1" if arm64
    +            else "ARMV8A_ARM_CORTEX_A76" if aarch64
    +            else "GENERIC"
    +          }}
    +
    +  requirements:
    +    build:
    +      # Note that x86_64-microarch-level doesn't support win,
    +      # but we can still specify microarch_level for win builds.
    +      # This package only sets the -march flags, but since the build process
    +      # is custom anyway, we don't care on win.
    +      - if: unix and x86_64
    +        then: x86_64-microarch-level ==${{ microarch_level | default("1") }}
    +
    +      - ${{ compiler("c") }}
    +      - ${{ stdlib("c") }}
    +      - cmake
    +      - pkg-config
    +      - ninja
    +
    +      - if: win
    +        then: clang
    +
    +    run:
    +      - ${{ pin_subpackage("libblasfeo-abi", exact=True) }}
    +      - if: x86_64
    +        then: _x86_64-microarch-level >=${{ microarch_level | default("1") }}
    +
    +    run_exports:
    +      - ${{ pin_subpackage(name, upper_bound="x.x.x") }}
    +      - libblasfeo-abi * ${{ abi }}_*
    +
    +  tests:
    +    - package_contents:
    +        include:
    +          - blasfeo.h
    +        lib:
    +          - blasfeo
    +
    +    - script:
    +        - cmake-package-check blasfeo --targets blasfeo
    +      requirements:
    +        run:
    +          - cmake-package-check
    +          - ${{ compiler('c') }}
    +          - ${{ compiler('cxx') }}
    +
    +    - script:
    +        - if: linux
    +          then: nm -s $PREFIX/lib/libblasfeo.so | grep "U "
    +        # Require a non-executable stack independently of the system glibc version.
    +        - if: linux
    +          then: readelf --wide --program-headers "$PREFIX/lib/libblasfeo.so" | grep -E 'GNU_STACK.* RW[[:space:]]'
    +        # libblasfeo uses libm functions, so it must declare libm as needed
    +        # to be loadable by dlopen without a preloaded libm.
    +        - if: linux
    +          then: readelf --dynamic "$PREFIX/lib/libblasfeo.so" | grep -E 'NEEDED.*\[libm\.so'
    +      requirements:
    +        run:
    +          - if: linux
    +            then: binutils
    +
    +about:
    +  homepage: https://github.com/giaf/blasfeo
    +  repository: https://github.com/giaf/blasfeo
    +  license: BSD-2-Clause
    +  license_file: LICENSE.txt
    +  summary: Basic linear algebra subroutines for embedded optimization
    +
    +extra:
    +  feedstock-name: blasfeo
    +  recipe-maintainers:
    +    - RSchwan
    +    - traversaro

    Done in 31a90e6

    Reviewers
    Assignees
    mini-1235 mini-1235
    Labels
    risk: low confidence: 90.1% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 66.3% (HIGH) · Higher = larger blast radius
    66.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 90.1% · Lower = rushed or shallow review
    90.1%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 6.6% · Safe to merge
    6.6%