Add tracy variant to pika (#32090)
This commit is contained in:
parent
022d59f4a5
commit
be62635154
1 changed files with 3 additions and 0 deletions
|
@ -57,6 +57,7 @@ class Pika(CMakePackage, CudaPackage, ROCmPackage):
|
|||
variant("examples", default=False, description="Build and install examples")
|
||||
variant("mpi", default=False, description="Enable MPI support")
|
||||
variant("apex", default=False, description="Enable APEX support", when="@0.2:")
|
||||
variant("tracy", default=False, description="Enable Tracy support", when="@0.7:")
|
||||
|
||||
# Build dependencies
|
||||
depends_on("git", type="build")
|
||||
|
@ -81,6 +82,7 @@ class Pika(CMakePackage, CudaPackage, ROCmPackage):
|
|||
depends_on("mpi", when="+mpi")
|
||||
depends_on("cuda@11:", when="+cuda")
|
||||
depends_on("apex", when="+apex")
|
||||
depends_on("tracy-client", when="+tracy")
|
||||
depends_on("rocblas", when="+rocm")
|
||||
depends_on("hipblas", when="+rocm")
|
||||
depends_on("rocsolver", when="@0.5: +rocm")
|
||||
|
@ -113,6 +115,7 @@ def cmake_args(self):
|
|||
self.define_from_variant("PIKA_WITH_HIP", "rocm"),
|
||||
self.define_from_variant("PIKA_WITH_MPI", "mpi"),
|
||||
self.define_from_variant("PIKA_WITH_APEX", "apex"),
|
||||
self.define_from_variant("PIKA_WITH_TRACY", "tracy"),
|
||||
self.define("PIKA_WITH_TESTS", self.run_tests),
|
||||
self.define_from_variant("PIKA_WITH_GENERIC_CONTEXT_COROUTINES", "generic_coroutines"),
|
||||
self.define("BOOST_ROOT", spec["boost"].prefix),
|
||||
|
|
Loading…
Reference in a new issue