openblas: add variant +consistentFPCSR (#14876)
Add the OpenBLAS variant `+consistentFPCSR`, by default `False`, which adds the compile definition `CONSISTENT_FPCSR=1` as documented in OpenBLAS `Makefile.rule`.
This commit is contained in:
parent
690ed2fe98
commit
4fa29ceb50
1 changed files with 6 additions and 0 deletions
|
@ -37,6 +37,7 @@ class Openblas(MakefilePackage):
|
|||
variant('ilp64', default=False, description='Force 64-bit Fortran native integers')
|
||||
variant('pic', default=True, description='Build position independent code')
|
||||
variant('shared', default=True, description='Build shared libraries')
|
||||
variant('consistentFPCSR', default=False, description='Synchronize FP CSR between threads (x86/x86_64 only)')
|
||||
|
||||
variant(
|
||||
'threads', default='none',
|
||||
|
@ -234,6 +235,11 @@ def make_defs(self):
|
|||
if '+ilp64' in self.spec:
|
||||
make_defs += ['INTERFACE64=1']
|
||||
|
||||
# Synchronize floating-point control and status register (FPCSR)
|
||||
# between threads (x86/x86_64 only).
|
||||
if '+consistentFPCSR' in self.spec:
|
||||
make_defs += ['CONSISTENT_FPCSR=1']
|
||||
|
||||
# Prevent errors in `as` assembler from newer instructions
|
||||
if self.spec.satisfies('%gcc@:4.8.4'):
|
||||
make_defs.append('NO_AVX2=1')
|
||||
|
|
Loading…
Reference in a new issue