Skip to content

Commit

Permalink
fix pip build mkl version
Browse files Browse the repository at this point in the history
  • Loading branch information
hczhai committed Jun 14, 2023
1 parent 428ce33 commit 8cf18a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-wheel/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PY_EXE=/opt/python/"${PY_VER}"/bin/python3
sed -i "/DPYTHON_EXECUTABLE/a \ '-DPYTHON_EXECUTABLE=${PY_EXE}'," setup.py

/opt/python/"${PY_VER}"/bin/pip install --upgrade --no-cache-dir pip
/opt/python/"${PY_VER}"/bin/pip install --no-cache-dir mkl==2019 mkl-include intel-openmp 'numpy<1.23.0' psutil cmake==3.17 pybind11==2.10.1
/opt/python/"${PY_VER}"/bin/pip install --no-cache-dir mkl==2021.4 mkl-include intel-openmp 'numpy<1.23.0' psutil 'cmake>=3.19' pybind11==2.10.1

sed -i '/new_soname = src_name/a \ if any(x in src_name for x in ["libmkl_avx2", "libmkl_avx512"]): new_soname = src_name' \
$($(cat $(which auditwheel) | head -1 | awk -F'!' '{print $2}') -c "from auditwheel import repair;print(repair.__file__)")
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: |
export PYT=$(which python)
python -m pip install pip build twine pytest --upgrade
python -m pip install mkl==2019 mkl-include intel-openmp 'numpy<1.23.0' psutil cmake==3.17 pybind11==2.10.1
python -m pip install mkl==2021.4 mkl-include intel-openmp 'numpy<1.23.0' psutil 'cmake>=3.19' pybind11==2.10.1
- name: install requirements (linux / mpi)
if: matrix.os == 'ubuntu-latest'
Expand Down

0 comments on commit 8cf18a0

Please sign in to comment.