From 2aa6939b9627d4f1a46596feb71997b9551581a4 Mon Sep 17 00:00:00 2001 From: Patrick Diehl Date: Mon, 15 Jul 2024 07:47:13 -0500 Subject: [PATCH] hpx: add instrumentation=thread_debug (#45199) Co-authored-by: Hartmut Kaiser --- var/spack/repos/builtin/packages/hpx/package.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/hpx/package.py b/var/spack/repos/builtin/packages/hpx/package.py index 2f80f49530d..bba5859b81f 100644 --- a/var/spack/repos/builtin/packages/hpx/package.py +++ b/var/spack/repos/builtin/packages/hpx/package.py @@ -16,7 +16,7 @@ class Hpx(CMakePackage, CudaPackage, ROCmPackage): homepage = "https://hpx.stellar-group.org/" url = "https://github.com/STEllAR-GROUP/hpx/archive/v0.0.0.tar.gz" git = "https://github.com/STEllAR-GROUP/hpx.git" - maintainers("msimberg", "albestro", "teonnik", "hkaiser") + maintainers("msimberg", "albestro", "teonnik", "hkaiser", "diehlpk") license("BSL-1.0") @@ -66,7 +66,7 @@ class Hpx(CMakePackage, CudaPackage, ROCmPackage): values=lambda x: isinstance(x, str) and (x.isdigit() or x == "auto"), ) - instrumentation_values = ("apex", "google_perftools", "papi", "valgrind") + instrumentation_values = ("apex", "google_perftools", "papi", "valgrind", "thread_debug") variant( "instrumentation", values=any_combination_of(*instrumentation_values), @@ -266,6 +266,12 @@ def cmake_args(self): # Instrumentation args += self.instrumentation_args() + if "instrumentation=thread_debug" in spec: + args += [ + self.define("HPX_WITH_THREAD_DEBUG_INFO", True), + self.define("HPX_WITH_LOGGING", True), + ] + if "instrumentation=apex" in spec: args += [ self.define("APEX_WITH_OTF2", True),