Skip to content
Snippets Groups Projects
Unverified Commit 4fa29ceb authored by Kai Torben Ohlhus's avatar Kai Torben Ohlhus Committed by GitHub
Browse files

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`.
parent 690ed2fe
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment