Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lapack from 3.12.0 to 3.12.1 [emscripten-3.1.73] #1576

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
16 changes: 11 additions & 5 deletions recipes/recipes_emscripten/lapack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@ set -ex
# Using flang as a WASM cross-compiler
# https://github.com/serge-sans-paille/llvm-project/blob/feature/flang-wasm/README.wasm.md
# https://github.com/conda-forge/flang-feedstock/pull/69
micromamba install -p $BUILD_PREFIX \
conda-forge/label/llvm_rc::libllvm19 \
conda-forge/label/llvm_dev::flang=19.1.0.rc2 \
-y --no-channel-priority

for i in {1..4}; do
micromamba install -p $BUILD_PREFIX \
conda-forge/label/llvm_rc::libllvm19=19.1.0.rc2 \
conda-forge/label/llvm_dev::flang=19.1.0.rc2 \
-y --no-channel-priority && break
echo "Retry $i failed, retrying..."
sleep 5 # Wait for 5 seconds before retrying
done

rm $BUILD_PREFIX/bin/clang # links to clang19
ln -s $BUILD_PREFIX/bin/clang-18 $BUILD_PREFIX/bin/clang # links to emsdk clang
ln -s $BUILD_PREFIX/bin/clang-20 $BUILD_PREFIX/bin/clang # links to emsdk clang

export FC=flang-new
export FFLAGS="--target=wasm32-unknown-emscripten"
Expand Down
40 changes: 18 additions & 22 deletions recipes/recipes_emscripten/lapack/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
context:
version: 3.12.0
version: 3.12.1
name: lapack

source:
url: https://github.com/Reference-LAPACK/${{ name }}/archive/v${{ version }}.tar.gz
sha256: eac9570f8e0ad6f30ce4b963f4f033f0f643e7c3912fc9ee6cd99120675ad48b
sha256: 2ca6407a001a474d4d4d35f3a61550156050c48016d949f0da0529c0aa052422
patches:
- patches/0001_Disable_fortran_compiler_check.patch

build:
number: 1
number: 0

# TODO: Use cache output once it's not experimental

Expand All @@ -19,12 +19,12 @@ outputs:
version: ${{ version }}
build:
files:
- lib/libblas.a
- lib/pkgconfig/blas.pc
- lib/libblas.a
- lib/pkgconfig/blas.pc
requirements:
build:
- ${{ compiler("c") }}
- ninja
- ${{ compiler("c") }}
- ninja
tests:
- script: test -f $PREFIX/lib/libblas.a

Expand All @@ -33,15 +33,13 @@ outputs:
version: ${{ version }}
build:
files:
- lib/libcblas.a
- lib/pkgconfig/cblas.pc
- lib/cmake/cblas-${{ version }}/cblas*
- lib/libcblas.a
- lib/pkgconfig/cblas.pc
- lib/cmake/cblas-${{ version }}/cblas*
requirements:
build:
- ${{ compiler("c") }}
- ninja
run:
- libblas ${{ version }}
- ${{ compiler("c") }}
- ninja
tests:
- script: test -f $PREFIX/lib/libcblas.a

Expand All @@ -50,15 +48,13 @@ outputs:
version: ${{ version }}
build:
files:
- lib/liblapack.a
- lib/pkgconfig/lapack.pc
- lib/cmake/lapack-${{ version }}/lapack*
- lib/liblapack.a
- lib/pkgconfig/lapack.pc
- lib/cmake/lapack-${{ version }}/lapack*
requirements:
build:
- ${{ compiler("c") }}
- ninja
run:
- libblas ${{ version }}
- ${{ compiler("c") }}
- ninja
tests:
- script: test -f $PREFIX/lib/liblapack.a

Expand All @@ -70,4 +66,4 @@ about:

extra:
maintainers:
- IsabelParedes
- IsabelParedes