From 16bba321248673f514a4b4932bded145311f9f0d Mon Sep 17 00:00:00 2001 From: Jeff Hammond Date: Mon, 29 Apr 2024 09:14:25 +0300 Subject: [PATCH] add ILP64 option for BLIS (#43882) Signed-off-by: Jeff Hammond --- var/spack/repos/builtin/packages/blis/package.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/var/spack/repos/builtin/packages/blis/package.py b/var/spack/repos/builtin/packages/blis/package.py index da25f4e2c3..683506906f 100644 --- a/var/spack/repos/builtin/packages/blis/package.py +++ b/var/spack/repos/builtin/packages/blis/package.py @@ -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: