add ILP64 option for BLIS (#43882)

Signed-off-by: Jeff Hammond <jeff.science@gmail.com>
This commit is contained in:
Jeff Hammond 2024-04-29 09:14:25 +03:00 committed by GitHub
parent 7d87369ead
commit 16bba32124
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,6 +16,8 @@ class BlisBase(MakefilePackage):
of the library in the 'amdblis' package.
"""
maintainers("jeffhammond")
depends_on("python@2.7:2.8,3.4:", type=("build", "run"))
variant(
@ -26,6 +28,7 @@ class BlisBase(MakefilePackage):
multi=False,
)
variant("ilp64", default=False, description="Force 64-bit Fortran native integers")
variant("blas", default=True, description="BLAS compatibility")
variant("cblas", default=True, description="CBLAS compatibility")
variant(
@ -52,6 +55,11 @@ def configure_args(self):
spec = self.spec
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:
config_args.append("--enable-cblas")
else: