Skip to content
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
22 changes: 16 additions & 6 deletions .github/workflows/ci_BLAS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
matrix:
toolchain:
- { compiler: intel, version: "2024.1" }
- { compiler: gcc, version: 14 }
build: [cmake]
env:
BUILD_DIR: ${{ matrix.build == 'cmake' && 'build' || '.' }}
Expand All @@ -102,35 +103,44 @@ jobs:
version: ${{ matrix.toolchain.version }}

- name: Install Intel oneAPI MKL
if: ${{ matrix.toolchain.compiler == 'intel' }}
run: |
sudo apt-get install ${APT_PACKAGES}
source /opt/intel/oneapi/mkl/latest/env/vars.sh
printenv >> $GITHUB_ENV

# Build and test with external BLAS and LAPACK (MKL on Ubuntu with Intel compilers)
- name: Configure with CMake and MKL
- name: Install OpenBLAS and LAPACK
if: ${{ matrix.toolchain.compiler == 'gcc' }}
run: |
sudo apt-get update
sudo apt-get install -y libopenblas-dev liblapack-dev

# Build and test with external BLAS and LAPACK
- name: Configure with CMake
run: >-
cmake -Wdev -G Ninja
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_MAXIMUM_RANK:String=4
-DCMAKE_INSTALL_PREFIX=$PWD/_dist
-DFIND_BLAS:STRING=TRUE
-DCMAKE_REQUIRE_FIND_PACKAGE_BLAS=ON
-DCMAKE_REQUIRE_FIND_PACKAGE_LAPACK=ON
-S . -B ${{ env.BUILD_DIR }}

- name: Build and compile with MKL
- name: Build and compile
run: cmake --build ${{ env.BUILD_DIR }} --parallel

- name: catch build fail with MKL
- name: catch build fail
if: failure()
run: cmake --build ${{ env.BUILD_DIR }} --verbose --parallel 1

- name: test with MKL
- name: test
run: >-
ctest
--test-dir ${{ env.BUILD_DIR }}
--parallel
--output-on-failure
--no-tests=error

- name: Install project with MKL
- name: Install project
run: cmake --install ${{ env.BUILD_DIR }}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
## Unreleased

Changes to the existing modules
- Fixed declaration order in external BLAS/LAPACK interfaces for compilation
with gfortran under `-std=f2018`
[#1210](https://github.com/fortran-lang/stdlib/issues/1210)
- Change in module `stdlib_system`
- Added `set_environment_variable` and `delete_environment_variable`
[#1187](https://github.com/fortran-lang/stdlib/issues/1187)
Expand Down
Loading
Loading