add ILP64 option for BLIS (#43882)
Signed-off-by: Jeff Hammond <jeff.science@gmail.com>
This commit is contained in:
parent
7d87369ead
commit
16bba32124
1 changed files with 8 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue