diff options
author | Tom Payerle <payerle@umd.edu> | 2020-10-10 21:24:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 20:24:08 -0500 |
commit | b3eb07cae06e200fe47b622353e951aced4ac10a (patch) | |
tree | 38a3abbd3c47c83b52eed47262cdb6b944478479 /var | |
parent | 9c5f0cab1d5a4519869762ee73f8862495c4b223 (diff) | |
download | spack-b3eb07cae06e200fe47b622353e951aced4ac10a.tar.gz spack-b3eb07cae06e200fe47b622353e951aced4ac10a.tar.bz2 spack-b3eb07cae06e200fe47b622353e951aced4ac10a.tar.xz spack-b3eb07cae06e200fe47b622353e951aced4ac10a.zip |
superlu-mt: Add openmp flag to link command when using OpenMP (#19096)
Fix for #19095
When given +openmp, add the correct compiler openmp flag to the link
stage. This seems to be required for %intel compilers.
I do this for all compilers, not just %intel, because it does not seem
to harm anything and might be beneficial for others (and just seems
'correct').
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/superlu-mt/package.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/superlu-mt/package.py b/var/spack/repos/builtin/packages/superlu-mt/package.py index 8f0e39d3aa..b3595428ab 100644 --- a/var/spack/repos/builtin/packages/superlu-mt/package.py +++ b/var/spack/repos/builtin/packages/superlu-mt/package.py @@ -57,7 +57,8 @@ class SuperluMt(Package): 'TMGLIB = libtmglib.a', 'MPLIB = {0}'.format(self.compiler.openmp_flag), 'CFLAGS = {0}'.format(self.compiler.openmp_flag), - 'FFLAGS = {0}'.format(self.compiler.openmp_flag) + 'FFLAGS = {0}'.format(self.compiler.openmp_flag), + 'LOADOPTS += {0}'.format(self.compiler.openmp_flag) ]) elif '+pthread' in spec: # POSIX threads |