Skip to content

Commit aa975c3

Browse files
Miro IliasMiro Ilias
authored andcommitted
- provided own test (test.py)
- taken care of ENABLE_OPENBLAS variable
1 parent da89ffd commit aa975c3

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

modules/math/openblas.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# docopt: "--openblas Find and link to OpenBLAS [default: False]."
1414
# define: "'-DENABLE_OPENBLAS={0}'.format(arguments['--openblas'])"
1515

16+
option(ENABLE_OPENBLAS "Find and link to OpenBLAS" OFF)
17+
1618
SET(Open_BLAS_INCLUDE_SEARCH_PATHS
1719
/usr/include
1820
/usr/include/openblas

test/test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ def test_fc_blas():
109109
configure_build_and_exe('fc_blas', 'python setup --fc=gfortran --blas')
110110

111111

112+
def test_fc_openblas():
113+
configure_build_and_exe('fc_openblas', 'python setup --fc=gfortran --openblas')
114+
115+
112116
def test_fc_lapack():
113117
configure_build_and_exe('fc_lapack', 'python setup --fc=gfortran --lapack')
114118

0 commit comments

Comments
 (0)