hpx: add instrumentation=thread_debug (#45199)
Co-authored-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>
This commit is contained in:
parent
f7e601d352
commit
2aa6939b96
@ -16,7 +16,7 @@ class Hpx(CMakePackage, CudaPackage, ROCmPackage):
|
|||||||
homepage = "https://hpx.stellar-group.org/"
|
homepage = "https://hpx.stellar-group.org/"
|
||||||
url = "https://github.com/STEllAR-GROUP/hpx/archive/v0.0.0.tar.gz"
|
url = "https://github.com/STEllAR-GROUP/hpx/archive/v0.0.0.tar.gz"
|
||||||
git = "https://github.com/STEllAR-GROUP/hpx.git"
|
git = "https://github.com/STEllAR-GROUP/hpx.git"
|
||||||
maintainers("msimberg", "albestro", "teonnik", "hkaiser")
|
maintainers("msimberg", "albestro", "teonnik", "hkaiser", "diehlpk")
|
||||||
|
|
||||||
license("BSL-1.0")
|
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"),
|
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(
|
variant(
|
||||||
"instrumentation",
|
"instrumentation",
|
||||||
values=any_combination_of(*instrumentation_values),
|
values=any_combination_of(*instrumentation_values),
|
||||||
@ -266,6 +266,12 @@ def cmake_args(self):
|
|||||||
# Instrumentation
|
# Instrumentation
|
||||||
args += self.instrumentation_args()
|
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:
|
if "instrumentation=apex" in spec:
|
||||||
args += [
|
args += [
|
||||||
self.define("APEX_WITH_OTF2", True),
|
self.define("APEX_WITH_OTF2", True),
|
||||||
|
Loading…
Reference in New Issue
Block a user