Skip to content

Commit

Permalink
[Meson] Remove the option to provide libmkl_pardiso
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Jan 10, 2024
1 parent 1e42676 commit 4089205
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 17 deletions.
6 changes: 4 additions & 2 deletions README.meson
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ Currently supported options with their default value:
* `-Dlibpardiso=pardiso`: PARDISO library against which to link;
* `-Dlibspmf=spmf`: SPMF library against which to link;
* `-Dlibpastix=pastix`: PASTIX library against which to link;
* `-Dlibmkl_pardiso=mkl_pardiso`: Intel MKL PARDISO library against which to link;
* `-Dlibampl=ampl`: AMPL library against which to link;
* `-Dlibblas_path=[]`: additional directories to search for the BLAS library;
* `-Dliblapack_path=[]`: additional directories to search for the LAPACK library;
Expand All @@ -47,12 +46,15 @@ Currently supported options with their default value:
* `-Dlibspmf_path=[]`: additional directories to search for the SPMF library;
* `-Dlibpastix_path=[]`: additional directories to search for the PASTIX library;
* `-Dlibmumps_path=[]`: additional directories to search for the MUMPS libraries;
* `-Dlibmkl_pardiso_path=[]`: additional directories to search for the Intel MKL library;
* `-Dlibampl_path=[]`: additional directories to search for the AMPL library library;
* `-Dlibhsl_modules[]`: additional directories to search for the HSL modules;
* `-Dlibmetis_version=5`: version of the METIS library;
* `-Dgalahad_int64=false`: compile GALAHAD with 64-bit integer.

Note that the MKL Pardiso linear solver is only available when GALAHAD
is compiled with Intel MKL.
This implies that `libblas` or `liblapack` should be set to `mkl_rt`.

Non-default compilers can be selected by setting the `CC`, `CXX` and
`FC` shell variables. For instance,
```
Expand Down
5 changes: 1 addition & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ libumfpack_name = get_option('libumfpack')
libpardiso_name = get_option('libpardiso')
libspmf_name = get_option('libspmf')
libpastix_name = get_option('libpastix')
libmkl_pardiso_name = get_option('libmkl_pardiso')
libampl_name = get_option('libampl')
libcutest_single_name = get_option('libcutest_single')
libcutest_double_name = get_option('libcutest_double')
Expand All @@ -82,7 +81,6 @@ libumfpack_path = get_option('libumfpack_path')
libpardiso_path = get_option('libpardiso_path')
libspmf_path = get_option('libspmf_path')
libpastix_path = get_option('libpastix_path')
libmkl_pardiso_path = get_option('libmkl_pardiso_path')
libampl_path = get_option('libampl_path')
libcutest_single_path = get_option('libcutest_single_path')
libcutest_double_path = get_option('libcutest_double_path')
Expand All @@ -107,7 +105,6 @@ libspmf = fc.find_library(libspmf_name, dirs : libspmf_path, required : false)
libpastix = fc.find_library(libpastix_name, dirs : libpastix_path, required : false)
libsmumps = fc.find_library('smumps', dirs : libmumps_path, required : false)
libdmumps = fc.find_library('dmumps', dirs : libmumps_path, required : false)
libmkl_pardiso = fc.find_library(libmkl_pardiso_name, dirs : libmkl_pardiso_path, required : false)
libampl = fc.find_library(libampl_name, dirs : libampl_path, required : false)
lm = cc.find_library('m', required : false)

Expand Down Expand Up @@ -140,7 +137,7 @@ libgalahad_single_deps = [libsmumps, libcutest_single]
libgalahad_double_deps = [libdmumps, libcutest_double]
libgalahad_deps = [libblas, liblapack, libmetis, libhsl, libwsmp,
libumfpack, libpardiso, libspmf, libpastix,
libmkl_pardiso, libampl, libmpi, libhwloc]
libampl, libmpi, libhwloc]

libgalahad_single_src = []
libgalahad_double_src = []
Expand Down
10 changes: 0 additions & 10 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ option('libpastix',
value : 'pastix',
description : 'PASTIX library against which to link')

option('libmkl_pardiso',
type : 'string',
value : 'mkl_rt',
description : 'Intel MKL PARDISO library against which to link')

option('libampl',
type : 'string',
value : 'ampl',
Expand Down Expand Up @@ -163,11 +158,6 @@ option('libmumps_path',
value : [],
description : 'Additional directories to search for the MUMPS libraries')

option('libmkl_pardiso_path',
type : 'array',
value : [],
description : 'Additional directories to search for the Intel MKL library')

option('libampl_path',
type : 'array',
value : [],
Expand Down
2 changes: 1 addition & 1 deletion src/dum/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if not libdmumps.found()
galahad_headers += files('include/dmumps_struc.h')
endif

if not libmkl_pardiso.found()
if not (libblas == 'mkl_rt' or liblapack == 'mkl_rt')
libgalahad_src += files('mkl_pardiso.F90')
endif

Expand Down

0 comments on commit 4089205

Please sign in to comment.