Skip to content

Add OpenBLAS/Netlib tests for macOS #203

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

Merged
merged 2 commits into from
Jun 28, 2020
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
55 changes: 28 additions & 27 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request: {}

jobs:
windows-intel-mkl:
windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
Expand All @@ -16,45 +16,46 @@ jobs:
command: test
args: --features=intel-mkl --no-default-features

macos-intel-mkl:
macos:
runs-on: macos-10.15
env:
CC: gcc-9
FC: gfortran-9
LIBRARY_PATH: /usr/local/opt/gcc/lib/gcc/9
strategy:
fail-fast: false
matrix:
feature:
- netlib
- openblas
- intel-mkl
steps:
- uses: actions/checkout@v1
- uses: actions-rs/cargo@v1
with:
command: test
args: --features=intel-mkl --no-default-features

linux-intel-mkl:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: actions-rs/cargo@v1
with:
command: test
args: --features=intel-mkl --no-default-features

linux-netlib:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: apt
run: sudo apt update && sudo apt install -y gfortran
- uses: actions-rs/cargo@v1
with:
command: test
args: --features=netlib --no-default-features
args: --features=${{ matrix.feature }} --no-default-features

linux-openblas:
linux:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
feature:
- netlib
- openblas
- intel-mkl
steps:
- uses: actions/checkout@v1
- name: apt
run: sudo apt update && sudo apt install -y gfortran
- name: apt-install gfortran
run: |
sudo apt update
sudo apt install -y gfortran
if: ${{ matrix.feature != 'intel-mkl' }}
- uses: actions-rs/cargo@v1
with:
command: test
args: --features=openblas --no-default-features
args: --features=${{ matrix.feature }} --no-default-features

check-format:
runs-on: ubuntu-18.04
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ ndarray-linalg = { version = "0.12", features = ["openblas"] }

### Tested Environments

|Backend | Linux | Windows | macOS |
|:-------|:-----:|:-------:|:-----:|
|OpenBLAS|✔️|❌|❌|
|Netlib|✔️|❌|❌|
|Intel MKL|✔️|✔️|✔️|
|Backend | Linux | Windows | macOS |
|:--------|:-----:|:-------:|:-----:|
|OpenBLAS |✔️ |- |✔️ |
|Netlib |✔️ |- |✔️ |
|Intel MKL|✔️ |✔️ |✔️ |

### For librarian
If you creating a library depending on this crate, we encourage you not to link any backend:
Expand Down