-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure meson version >=1.1 . Link with native liblapack on Ubuntu 20.04 because of stack overflow issue of `_zgel` with libopenblas64 and liblapack64 , as well as write beyond scope issue of SVD decomposition. Don't call BLAS for matrix-matrix multiplications.
- Loading branch information
1 parent
ba25f09
commit 4492bad
Showing
4 changed files
with
29 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
project('armadillo', 'cpp', | ||
version: '14.1.x', | ||
version: '10.1.x', | ||
) | ||
|
||
# Header-only library | ||
armadillo_inc = include_directories('include') | ||
|
||
if get_option('lapack') == 'openblas' | ||
lapack_dep = dependency('openblas64') | ||
elif get_option('lapack') == 'lapack64' | ||
lapack_dep = dependency('lapack64') | ||
else # lapack or altas | ||
lapack_dep = dependency('lapack') | ||
endif | ||
|
||
|
||
armadillo_dep = declare_dependency( | ||
include_directories: armadillo_inc, | ||
compile_args: [ | ||
'-DARMA_DONT_USE_BLAS', | ||
'-DARMA_DONT_USE_ARPACK', | ||
], | ||
dependencies: [ | ||
dependency('openblas', required: false), | ||
dependency('lapack', required: false), | ||
dependency('arpack2', required: false), | ||
] | ||
) | ||
lapack_dep, | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
option('lapack', | ||
description: 'Choose an implementation of the LAPACK solver', | ||
type: 'combo', | ||
choices: [ | ||
'openblas', | ||
'lapack64', | ||
'lapack', | ||
], | ||
value: 'openblas', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
project('MicroscPSF', 'cpp', | ||
meson_version: '>=1.1', | ||
license: 'MIT', | ||
license_files: [ | ||
'LICENSE.txt', | ||
|