Skip to content

Commit

Permalink
[pypi] mkl CI variable
Browse files Browse the repository at this point in the history
  • Loading branch information
fradav committed May 15, 2024
1 parent 837f865 commit e05bb9a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on: [push]
env:
VCPKG_REVISION: "943c5ef1c8f6b5e6ced092b242c8299caae2ff01"
PMM_VERSION: "2.1.0"
MKL_VERSION: "2024.1"
MKL_VERSION: "intel-oneapi-mkl-devel-2024.1"

jobs:
create_release:
Expand Down Expand Up @@ -53,7 +53,6 @@ jobs:
cmakeargs: -DTEST:BOOL=FALSE -DUSE_MKL:BOOL=FALSE -DMAKE_STATIC_EXE:BOOL=TRUE -DVCPKG_TARGET_TRIPLET:STRING=x64-windows-static -DCMAKE_BUILD_TYPE:STRING=Release -G Ninja
- os: ubuntu-latest
shortos: linux
mkl-version: intel-oneapi-mkl-devel-${{ env.MKL_VERSION }}
cmakeargs: "-DTEST:BOOL=FALSE -DUSE_MKL:BOOL=TRUE -DMAKE_STATIC_EXE:BOOL=TRUE -DLAPACK_ROOT:STRING=/opt/intel/oneapi/mkl/latest/lib '-DLAPACK_LIBRARIES:STRING=-Wl,--start-group /opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_intel_lp64.a /opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_tbb_thread.a /opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_core.a -Wl,--end-group;pthread;m;dl' '-DBLAS_LIBRARIES:STRING=-Wl,--start-group /opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_intel_lp64.a /opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_tbb_thread.a /opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_core.a -Wl,--end-group;pthread;m;dl' -DCMAKE_BUILD_TYPE:STRING=Release -G Ninja"
- os: macos-latest
shortos: macos
Expand Down Expand Up @@ -92,15 +91,15 @@ jobs:
uses: actions/cache@v2
with:
path: /opt/intel
key: ${{ matrix.mkl-version }}
key: ${{ env.mkl-version }}
if: matrix.os == 'ubuntu-latest'
- name: setup x64-linux
run: |
if [ ! -d /opt/intel/lib/intel64 ]; then
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt-get update
sudo apt-get install -y ${{ matrix.mkl-version }}
sudo apt-get install -y ${{ env.mkl-version }}
fi
echo "CC=gcc-13" >> $GITHUB_ENV
echo "CXX=g++-13" >> $GITHUB_ENV
Expand Down

0 comments on commit e05bb9a

Please sign in to comment.