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').
This commit is contained in:
parent
9c5f0cab1d
commit
b3eb07cae0
@ -57,7 +57,8 @@ def configure(self, spec):
|
|||||||
'TMGLIB = libtmglib.a',
|
'TMGLIB = libtmglib.a',
|
||||||
'MPLIB = {0}'.format(self.compiler.openmp_flag),
|
'MPLIB = {0}'.format(self.compiler.openmp_flag),
|
||||||
'CFLAGS = {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:
|
elif '+pthread' in spec:
|
||||||
# POSIX threads
|
# POSIX threads
|
||||||
|
Loading…
Reference in New Issue
Block a user