| 1 |
project('test scalapack', 'c') |
| 2 |
|
| 3 |
mpi_c = dependency('mpi', language: 'c', required: false) |
| 4 |
if not mpi_c.found() |
| 5 |
error('MESON_SKIP_TEST: MPI library not available') |
| 6 |
endif |
| 7 |
|
| 8 |
scalapack = dependency('scalapack', required: false) |
| 9 |
if not scalapack.found() |
| 10 |
error('MESON_SKIP_TEST: scalapack library not available') |
| 11 |
endif |
| 12 |
|
| 13 |
c_exe = executable('scalapack_c', 'main.c', |
| 14 |
dependencies: [scalapack, mpi_c]) |
| 15 |
test('scalapack_c', c_exe, timeout: 30) |
| 16 |
|
| 17 |
if add_languages('fortran', required: false) |
| 18 |
mpi_f = dependency('mpi', language: 'fortran', required: false) |
| 19 |
if not mpi_f.found() |
| 20 |
error('MESON_SKIP_TEST: MPI Fortran library not available') |
| 21 |
endif |
| 22 |
|
| 23 |
f_exe = executable('scalapack_fortran', 'main.f90', |
| 24 |
dependencies: [scalapack, mpi_f]) |
| 25 |
test('scalapack_fortran', f_exe, timeout: 30) |
| 26 |
endif |