essl: add +lapackforessl variant (#39362)

This commit is contained in:
William R Tobin 2023-08-10 23:01:02 -07:00 committed by GitHub
parent 24256be6d6
commit db19d83ea7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,13 +22,15 @@ class Essl(BundlePackage):
multi=False,
)
variant("cuda", default=False, description="CUDA acceleration")
variant("lapackforessl", default=False, description="Provides lapackforessl lapack library")
provides("blas")
provides("lapack", when="+lapackforessl")
conflicts(
"+cuda",
when="+ilp64",
msg="ESSL+cuda+ilp64 cannot combine CUDA acceleration" " 64 bit integers",
msg="ESSL+cuda+ilp64 cannot combine CUDA acceleration 64 bit integers",
)
conflicts(
@ -63,3 +65,10 @@ def blas_libs(self):
essl_libs = find_libraries(essl_lib, root=essl_root, shared=True)
return essl_libs
@property
def lapack_libs(self):
essl_libs = find_libraries(
["liblapackforessl", "liblapackforessl_"], root=self.prefix.lib64, shared=True
)
return essl_libs