Allow openblas to build on a VM (#6258)
This adds a "virtual_machine" boolean variant which adds build options that enable building openblas on a VM.
This commit is contained in:
parent
9acf207023
commit
2eb7fabe62
@ -40,7 +40,8 @@ class Openblas(MakefilePackage):
|
||||
version('0.2.17', '664a12807f2a2a7cda4781e3ab2ae0e1')
|
||||
version('0.2.16', 'fef46ab92463bdbb1479dcec594ef6dc')
|
||||
version('0.2.15', 'b1190f3d3471685f17cfd1ec1d252ac9')
|
||||
version('develop', git='https://github.com/xianyi/OpenBLAS.git', branch='develop')
|
||||
version('develop', git='https://github.com/xianyi/OpenBLAS.git',
|
||||
branch='develop')
|
||||
|
||||
variant(
|
||||
'shared',
|
||||
@ -61,6 +62,12 @@ class Openblas(MakefilePackage):
|
||||
multi=False
|
||||
)
|
||||
|
||||
variant(
|
||||
'virtual_machine',
|
||||
default=False,
|
||||
description="Adding options to build openblas on Linux virtual machine"
|
||||
)
|
||||
|
||||
# virtual dependency
|
||||
provides('blas')
|
||||
provides('lapack')
|
||||
@ -119,6 +126,13 @@ def make_defs(self):
|
||||
'FC={0}'.format(spack_f77),
|
||||
'MAKE_NO_J=1'
|
||||
]
|
||||
|
||||
if self.spec.variants['virtual_machine'].value:
|
||||
make_defs += [
|
||||
'DYNAMIC_ARCH=1',
|
||||
'NO_AVX2=1'
|
||||
]
|
||||
|
||||
if self.spec.variants['cpu_target'].value:
|
||||
make_defs += [
|
||||
'TARGET={0}'.format(self.spec.variants['cpu_target'].value)
|
||||
|
Loading…
Reference in New Issue
Block a user