Change scalapack to test-only dependency (#33433)
This commit is contained in:
parent
3e1db75372
commit
af5d6295d5
@ -68,7 +68,7 @@ class Slate(CMakePackage, CudaPackage, ROCmPackage):
|
|||||||
depends_on("lapackpp@2021.04.00:", when="@2021.05.01:")
|
depends_on("lapackpp@2021.04.00:", when="@2021.05.01:")
|
||||||
depends_on("lapackpp@2020.10.02", when="@2020.10.00")
|
depends_on("lapackpp@2020.10.02", when="@2020.10.00")
|
||||||
depends_on("lapackpp@master", when="@master")
|
depends_on("lapackpp@master", when="@master")
|
||||||
depends_on("scalapack")
|
depends_on("scalapack", type="test")
|
||||||
depends_on("hipify-clang", when="@:2021.05.02 +rocm ^hip@5:")
|
depends_on("hipify-clang", when="@:2021.05.02 +rocm ^hip@5:")
|
||||||
|
|
||||||
cpp_17_msg = "Requires C++17 compiler support"
|
cpp_17_msg = "Requires C++17 compiler support"
|
||||||
@ -92,14 +92,16 @@ def cmake_args(self):
|
|||||||
backend = "hip"
|
backend = "hip"
|
||||||
backend_config = "-Dgpu_backend=%s" % backend
|
backend_config = "-Dgpu_backend=%s" % backend
|
||||||
|
|
||||||
return [
|
config = [
|
||||||
"-Dbuild_tests=%s" % self.run_tests,
|
"-Dbuild_tests=%s" % self.run_tests,
|
||||||
"-Duse_openmp=%s" % ("+openmp" in spec),
|
"-Duse_openmp=%s" % ("+openmp" in spec),
|
||||||
"-DBUILD_SHARED_LIBS=%s" % ("+shared" in spec),
|
"-DBUILD_SHARED_LIBS=%s" % ("+shared" in spec),
|
||||||
backend_config,
|
backend_config,
|
||||||
"-Duse_mpi=%s" % ("+mpi" in spec),
|
"-Duse_mpi=%s" % ("+mpi" in spec),
|
||||||
"-DSCALAPACK_LIBRARIES=%s" % spec["scalapack"].libs.joined(";"),
|
|
||||||
]
|
]
|
||||||
|
if self.run_tests:
|
||||||
|
config.append("-DSCALAPACK_LIBRARIES=%s" % spec["scalapack"].libs.joined(";"))
|
||||||
|
return config
|
||||||
|
|
||||||
@run_after("install")
|
@run_after("install")
|
||||||
def cache_test_sources(self):
|
def cache_test_sources(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user