diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/suite-sparse/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/suite-sparse/package.py b/var/spack/repos/builtin/packages/suite-sparse/package.py index 8d9a12c466..7352eb2b30 100644 --- a/var/spack/repos/builtin/packages/suite-sparse/package.py +++ b/var/spack/repos/builtin/packages/suite-sparse/package.py @@ -95,6 +95,12 @@ class SuiteSparse(Package): "%gcc@:4.8", when="@5.2.0:", msg="gcc version must be at least 4.9 for suite-sparse@5.2.0:" ) + def flag_handler(self, name, flags): + if name in ("cflags", "cxxflags"): + if self.spec.satisfies("^openblas ~shared threads=openmp"): + flags.append(self.compiler.openmp_flag) + return (flags, None, None) + def symbol_suffix_blas(self, spec, args): """When using BLAS with a special symbol suffix we use defines to replace blas symbols, e.g. dgemm_ becomes dgemm_64_ when |