magma add version 2.8.0 (#43417)
* Add release 2.8.0 * Changing C compiler to hipcc * Final release version * Adding new cmake definition for rocm support * Enabling rocm version support * Update sha256 * Updating website URL * Removing unnecessary C compiler spec * Adding rocm-core dependency * fixing rocm-core version * fixing rocm-core version * fixing style * bugfix
This commit is contained in:
parent
04377e39e0
commit
f020256b9f
@ -13,9 +13,9 @@ class Magma(CMakePackage, CudaPackage, ROCmPackage):
|
||||
current "Multicore+GPU" systems.
|
||||
"""
|
||||
|
||||
homepage = "https://icl.cs.utk.edu/magma/"
|
||||
homepage = "https://icl.utk.edu/magma/"
|
||||
git = "https://bitbucket.org/icl/magma"
|
||||
url = "https://icl.cs.utk.edu/projectsfiles/magma/downloads/magma-2.2.0.tar.gz"
|
||||
url = "https://icl.utk.edu/projectsfiles/magma/downloads/magma-2.2.0.tar.gz"
|
||||
maintainers("stomov", "luszczek", "G-Ragghianti")
|
||||
|
||||
tags = ["e4s"]
|
||||
@ -23,6 +23,7 @@ class Magma(CMakePackage, CudaPackage, ROCmPackage):
|
||||
test_requires_compiler = True
|
||||
|
||||
version("master", branch="master")
|
||||
version("2.8.0", sha256="f4e5e75350743fe57f49b615247da2cc875e5193cc90c11b43554a7c82cc4348")
|
||||
version("2.7.2", sha256="729bc1a70e518a7422fe7a3a54537a4741035a77be3349f66eac5c362576d560")
|
||||
version("2.7.1", sha256="d9c8711c047a38cae16efde74bee2eb3333217fd2711e1e9b8606cbbb4ae1a50")
|
||||
version("2.7.0", sha256="fda1cbc4607e77cacd8feb1c0f633c5826ba200a018f647f1c5436975b39fd18")
|
||||
@ -47,6 +48,10 @@ class Magma(CMakePackage, CudaPackage, ROCmPackage):
|
||||
depends_on("cuda@8:", when="@2.5.1: +cuda") # See PR #14471
|
||||
depends_on("hipblas", when="+rocm")
|
||||
depends_on("hipsparse", when="+rocm")
|
||||
# This ensures that rocm-core matches the hip package version in the case that
|
||||
# hip is an external package.
|
||||
for ver in ["5.5.0", "5.5.1", "5.6.0", "5.6.1", "5.7.0", "5.7.1", "6.0.0", "6.0.2"]:
|
||||
depends_on(f"rocm-core@{ver}", when=f"@2.8.0: +rocm ^hip@{ver}")
|
||||
depends_on("python", when="@master", type="build")
|
||||
|
||||
conflicts("~cuda", when="~rocm", msg="magma: Either CUDA or HIP support must be enabled")
|
||||
@ -150,6 +155,8 @@ def cmake_args(self):
|
||||
# See https://github.com/ROCm/rocFFT/issues/322
|
||||
if spec.satisfies("^cmake@3.21.0:3.21.2"):
|
||||
options.append(define("__skip_rocmclang", True))
|
||||
if spec.satisfies("@2.8.0:"):
|
||||
options.append(define("ROCM_CORE", spec["rocm-core"].prefix))
|
||||
else:
|
||||
options.append(define("MAGMA_ENABLE_CUDA", True))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user