Skip to content

Commit fb37434

Browse files
authored
Add ittnotify variant for Intel ITTNotify support (spack#2275)
* Add ittnotify variant for Intel ITTNotify support * Ittnotify only with @2.35+ * Typo fix * [@spackbot] updating style on behalf of wspear --------- Co-authored-by: wspear <[email protected]>
1 parent 64427c8 commit fb37434

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

repos/spack_repo/builtin/packages/tau/package.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ class Tau(Package):
8888
variant("opari", default=False, description="Activates Opari2 instrumentation")
8989
variant("shmem", default=False, description="Activates SHMEM support")
9090
variant("gasnet", default=False, description="Activates GASNET support")
91+
variant(
92+
"ittnotify",
93+
default=False,
94+
description="Activates Intel ITTNotify collector",
95+
when="@2.35:",
96+
)
9197
variant("cuda", default=False, description="Activates CUDA support")
9298
variant("rocm", default=False, description="Activates ROCm support", when="@2.28:")
9399
variant(
@@ -384,6 +390,9 @@ def install(self, spec, prefix):
384390
if "+gasnet" in spec:
385391
options.append("-gasnet=%s" % spec["gasnet"].prefix)
386392

393+
if "+ittnotify" in spec:
394+
options.append("-ittnotify")
395+
387396
if "+cuda" in spec:
388397
options.append("-cuda=%s" % spec["cuda"].prefix)
389398

0 commit comments

Comments
 (0)