add ILP64 option for BLIS (#43882)
Signed-off-by: Jeff Hammond <jeff.science@gmail.com>
This commit is contained in:
parent
7d87369ead
commit
16bba32124
@ -16,6 +16,8 @@ class BlisBase(MakefilePackage):
|
|||||||
of the library in the 'amdblis' package.
|
of the library in the 'amdblis' package.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
maintainers("jeffhammond")
|
||||||
|
|
||||||
depends_on("python@2.7:2.8,3.4:", type=("build", "run"))
|
depends_on("python@2.7:2.8,3.4:", type=("build", "run"))
|
||||||
|
|
||||||
variant(
|
variant(
|
||||||
@ -26,6 +28,7 @@ class BlisBase(MakefilePackage):
|
|||||||
multi=False,
|
multi=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
variant("ilp64", default=False, description="Force 64-bit Fortran native integers")
|
||||||
variant("blas", default=True, description="BLAS compatibility")
|
variant("blas", default=True, description="BLAS compatibility")
|
||||||
variant("cblas", default=True, description="CBLAS compatibility")
|
variant("cblas", default=True, description="CBLAS compatibility")
|
||||||
variant(
|
variant(
|
||||||
@ -52,6 +55,11 @@ def configure_args(self):
|
|||||||
spec = self.spec
|
spec = self.spec
|
||||||
config_args = ["--enable-threading={0}".format(spec.variants["threads"].value)]
|
config_args = ["--enable-threading={0}".format(spec.variants["threads"].value)]
|
||||||
|
|
||||||
|
if "+ilp64" in spec:
|
||||||
|
config_args.append("--blas-int-size=64")
|
||||||
|
else:
|
||||||
|
config_args.append("--blas-int-size=32")
|
||||||
|
|
||||||
if "+cblas" in spec:
|
if "+cblas" in spec:
|
||||||
config_args.append("--enable-cblas")
|
config_args.append("--enable-cblas")
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user