Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ channel_targets:
- conda-forge main
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
microarch_level:
- '1'
target_platform:
- linux-64
zip_keys:
Expand Down
23 changes: 23 additions & 0 deletions .ci_support/linux_64_microarch_level3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
c_compiler:
- gcc
c_compiler_version:
- '12'
c_stdlib:
- sysroot
c_stdlib_version:
- '2.17'
cdt_name:
- cos7
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
microarch_level:
- '3'
target_platform:
- linux-64
zip_keys:
- - c_stdlib_version
- cdt_name
11 changes: 9 additions & 2 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build-locally.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ rm -rf build
mkdir build
cd build

# X64_INTEL_CORE is more and less aligned with nocona used
# by conda-forge builds as of August 2024
# BLASFEO_TARGET is set in the meta.yaml's
# script_env section, depending on the microarch
# level being built
cmake ${CMAKE_ARGS} -GNinja .. \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DTARGET=X64_INTEL_CORE
-DTARGET=${BLASFEO_TARGET}

cmake --build . --config Release
cmake --build . --config Release --target install
Expand Down
3 changes: 3 additions & 0 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
microarch_level: # [linux and x86_64]
- 1 # [linux and x86_64]
- 3 # [linux and x86_64]
14 changes: 13 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% set name = "libblasfeo" %}
{% set version = "0.1.3" %}
{% set build = 1 %}

package:
name: {{ name }}
Expand All @@ -13,12 +14,23 @@ build:
# windows and macos are supported on the master branch, as soon as a new version is released
# they can be packaged (see https://github.com/giaf/blasfeo/issues/181)
skip: True # [win or osx]
number: 0
number: {{ build }} # [not (linux and x86_64)]
number: {{ build + 100 }} # [linux and x86_64 and microarch_level == 1]
number: {{ build + 300 }} # [linux and x86_64 and microarch_level == 3]
run_exports:
- {{ pin_subpackage(name, max_pin='x.x.x') }}
script_env:
# See https://github.com/giaf/blasfeo?tab=readme-ov-file#supported-computer-architectures
# X64_INTEL_CORE is the TARGET setting more similar to nocona, so we used that for
# no microarch_level and microarch_level == 1
# microarch_level == 3 has AVX and AVX2, so it is basically TARGET X64_INTEL_HASWELL
- BLASFEO_TARGET=X64_INTEL_CORE # [(not linux) and x86_64]
- BLASFEO_TARGET=X64_INTEL_CORE # [linux and x86_64 and microarch_level == 1]
- BLASFEO_TARGET=X64_INTEL_HASWELL # [linux and x86_64 and microarch_level == 3]

requirements:
build:
- x86_64-microarch-level {{ microarch_level }} # [linux and x86_64]
- {{ compiler('c') }}
- {{ stdlib('c') }}
- cmake
Expand Down