Skip to content

Commit

Permalink
conda: blas_impl
Browse files Browse the repository at this point in the history
  • Loading branch information
tvandera committed Jun 14, 2024
1 parent 1590784 commit fc0643c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
6 changes: 3 additions & 3 deletions conda-recipes/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ python:
- 3.10
- 3.11

blas_impl:
- openblas
- mkl
blas_impl: # [linux64 or win64]
- openblas # [linux64 or win64]
- mkl # [linux64 or win64]

hdf5:
- 1.10.4
Expand Down
9 changes: 6 additions & 3 deletions conda-recipes/smurff/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ then
elif [ $blas_impl == "openblas" ]
then
SKBUILD_CMAKE_ARGS="-DENABLE_OPENBLAS=ON"
else
echo "Unknown BLAS impl: \"$blas_impl\""
exit -1
fi

echo "extra CMAKE_ARGS: $SKBUILD_CMAKE_ARGS"

export SKBUILD_CMAKE_ARGS

$PYTHON -m pip install . \
$EXTRA_CMAKE_ARGS \
--no-deps -vv
$PYTHON -m pip install . --no-deps -vv
6 changes: 4 additions & 2 deletions conda-recipes/smurff/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ requirements:
- llvm-openmp # [osx]
host:
- llvm-openmp # [osx]
- mkl-devel # [(linux64 or win64) and blas_impl == 'mkl']
- mkl-devel # [blas_impl == 'mkl']
- openblas # [blas_impl != 'mkl']
- eigen
- libboost
- pybind11
Expand All @@ -29,7 +30,8 @@ requirements:
- setuptools_scm
run:
- python {{ python }}
- mkl # [(linux64 or win64) and blas_impl == 'mkl']
- mkl # [blas_impl == 'mkl']
- openblas # [blas_impl != 'mkl']
- libboost # [not win]
- numpy
- scipy
Expand Down

0 comments on commit fc0643c

Please sign in to comment.