From be62635154758ace2337d8828f9eac5743115122 Mon Sep 17 00:00:00 2001 From: Mikael Simberg Date: Fri, 19 Aug 2022 10:38:07 +0200 Subject: [PATCH] Add tracy variant to pika (#32090) --- var/spack/repos/builtin/packages/pika/package.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/var/spack/repos/builtin/packages/pika/package.py b/var/spack/repos/builtin/packages/pika/package.py index a953147a6b..c2cb329db5 100644 --- a/var/spack/repos/builtin/packages/pika/package.py +++ b/var/spack/repos/builtin/packages/pika/package.py @@ -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),