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
75 changes: 41 additions & 34 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,9 @@ name: CMake CI

on:
push:
paths-exclude:
- '.github/workflows/make.yml'
- '.gitignore'
- 'README'
- '**README'
- 'LICENSE'
- '**Makefile'
- 'SLmake.inc.example'
branches: [master]
pull_request:
paths-exclude:
paths-ignore:
- '.github/workflows/make.yml'
- '.gitignore'
- 'README'
Expand All @@ -20,10 +13,14 @@ on:
- '**Makefile'
- 'SLmake.inc.example'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
CFLAGS: "-Wall -pedantic"
FFLAGS: "-fcheck=all,no-bounds"
BUILD_TYPE: Release
CMAKE_BUILD_TYPE: Release
MPIEXEC_PREFLAGS: "--oversubscribe"

defaults:
Expand All @@ -33,15 +30,22 @@ defaults:
jobs:

build-all:
name: >
CMake ${{ matrix.cmake }}
runs-on: ubuntu-latest

strategy:
matrix:
# CMake versions to test:
# - minimum and maximum in the `cmake_minimum_required`
# (if needed expand this to add all intermediate values
# for *temporary* CI testing)
# - latest version
cmake: ["3.26", "4.0", latest]
fail-fast: false
steps:

- name: Checkout ScaLAPACK
uses: actions/checkout@v2

- name: Install ninja-build tool
uses: seanmiddleditch/gha-setup-ninja@v3
uses: actions/checkout@v4

- name: Setup MPI
# uses: mpi4py/setup-mpi@v1
Expand All @@ -51,29 +55,32 @@ jobs:

- name: Install BLAS and LAPACK
run: sudo apt -y install libblas-dev liblapack-dev


- name: Setup CMake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: ${{ matrix.cmake }}

- name: CMake configuration
# TODO: Use cmake presets for newer versions
# TODO: Simplify the defaults to not require configuration
run: >
cmake -B build
-G Ninja
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/scalapack_install
-D BUILD_SHARED_LIBS=ON
-D SCALAPACK_BUILD_TESTS=ON
-D MPIEXEC_PREFLAGS=${{env.MPIEXEC_PREFLAGS}}

cmake -B build \
-G Ninja \
-DCMAKE_BUILD_TYPE=${{env.CMAKE_BUILD_TYPE}} \
-DBUILD_SHARED_LIBS=ON \
-DSCALAPACK_BUILD_TESTS=ON \
-DMPIEXEC_PREFLAGS=${{env.MPIEXEC_PREFLAGS}}

- name: Build
working-directory: ${{github.workspace}}/build
run: |
ctest -D ExperimentalStart
ctest -D ExperimentalConfigure
ctest -D ExperimentalBuild
run: >
cmake --build build

- name: Test
# CMake<3.20 does not have -B option
working-directory: ${{github.workspace}}/build
run: |
ctest -D ExperimentalTest --schedule-random --output-on-failure --timeout 180
ctest -D ExperimentalSubmit

run: >
ctest --output-on-failure

- name: Install
run: cmake --build build --target install
run: cmake --install build --prefix scalapack_install
15 changes: 6 additions & 9 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,9 @@ name: Makefile CI

on:
push:
paths-exclude:
- '.github/workflows/cmake.yml'
- '.gitignore'
- 'README'
- '**README'
- 'LICENSE'
- 'CMAKE**'
- '**CMakeLists.txt'
branches: [master]
pull_request:
paths-exclude:
paths-ignore:
- '.github/workflows/cmake.yml'
- '.gitignore'
- 'README'
Expand All @@ -20,6 +13,10 @@ on:
- 'CMAKE**'
- '**CMakeLists.txt'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion BLACS/INSTALL/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 3.26...4.0)
project(INSTALL C Fortran)

add_executable(xintface Fintface.f Cintface.c)
Expand Down
42 changes: 0 additions & 42 deletions CMAKE/CTestCustom.cmake.in

This file was deleted.

11 changes: 1 addition & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
cmake_minimum_required(VERSION 3.9)
cmake_minimum_required(VERSION 3.26...4.0)

project(SCALAPACK VERSION 2.2.2 LANGUAGES C Fortran)

# Configure the warning and code coverage suppression file
configure_file(
"${SCALAPACK_SOURCE_DIR}/CMAKE/CTestCustom.cmake.in"
"${SCALAPACK_BINARY_DIR}/CTestCustom.cmake"
COPYONLY
)

# Add the CMake directory for custon CMake modules
set(CMAKE_MODULE_PATH "${SCALAPACK_SOURCE_DIR}/CMAKE" ${CMAKE_MODULE_PATH})

Expand Down Expand Up @@ -87,8 +80,6 @@ endmacro()
# Testing
SET(DART_TESTING_TIMEOUT 600)

enable_testing()
include(CTest)
enable_testing()
# --------------------------------------------------

Expand Down
13 changes: 0 additions & 13 deletions CTestConfig.cmake

This file was deleted.

Loading