Skip to content

Commit 7043854

Browse files
committed
added better handling of blas/openblas in petsc
1 parent 206a48b commit 7043854

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

examples/proteus.linux2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ packages:
4242
pillow:
4343
petsc:
4444
version: 3.7.5
45+
openblas: true
4546
build_with: |
4647
parmetis, cmake, blas
4748
download: |

pkgs/petsc/petsc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def configure(ctx, stage_args):
109109
conf_lines.append('--with-ssl=0')
110110

111111
# Special case, --with-blas-dir does not work with OpenBLAS
112-
if 'OPENBLAS' in ctx.dependency_dir_vars:
112+
if 'OPENBLAS' in ctx.dependency_dir_vars or ('BLAS' in ctx.dependency_dir_vars and ctx.parameters.get('openblas') == True):
113113
if ctx.parameters['platform'] == 'Darwin':
114114
libopenblas = '${OPENBLAS_DIR}/lib/libopenblas.dylib'
115115
else:

0 commit comments

Comments
 (0)