From 97dcf7b8ee0c1e8e69613b9181759952a83edd63 Mon Sep 17 00:00:00 2001 From: Carson Woods Date: Sat, 11 Apr 2020 19:44:26 -0500 Subject: tau: added new variants (#16005) * Add more tau variants * Add more tau variants --- var/spack/repos/builtin/packages/tau/package.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/tau/package.py b/var/spack/repos/builtin/packages/tau/package.py index 0329841029..8e005b8cd1 100644 --- a/var/spack/repos/builtin/packages/tau/package.py +++ b/var/spack/repos/builtin/packages/tau/package.py @@ -69,6 +69,11 @@ class Tau(Package): variant('io', default=True, description='Activates POSIX I/O support') variant('adios2', default=False, description='Activates ADIOS2 output support') variant('sqlite', default=False, description='Activates SQLite3 output support') + variant('slog2', default=False, description='Convert TAU trace files to SLOG2') + variant('cputime', default=False, description='Enable user+system time from getrusage()') + variant('profile', default=True, description='Enable profiles') + variant('profileparam', default=False, description='Generate profiles with parameter mapped event data') + variant('profilecallpath', default=False, description='Enables profile callpaths') # Support cross compiling. # This is a _reasonable_ subset of the full set of TAU @@ -169,6 +174,9 @@ class Tau(Package): if ('platform=cray' in self.spec) and ('+x86_64' not in spec): options.append('-arch=craycnl') + if '+cputime' in spec: + options.append("-CPUTIME") + if '+pdt' in spec: options.append("-pdt=%s" % spec['pdt'].prefix) @@ -221,6 +229,15 @@ class Tau(Package): if '+comm' in spec: options.append('-PROFILECOMMUNICATORS') + if '+profile' in spec: + options.append('-PROFILE') + + if '+profileparam' in spec: + options.append('-PROFILEPARAM') + + if '+profilecallpath' in spec: + options.append('-PROFILECALLPATH') + if '+shmem' in spec: options.append('-shmem') @@ -236,6 +253,9 @@ class Tau(Package): if '+sqlite' in spec: options.append("-sqlite3=%s" % spec['sqlite'].prefix) + if '+slog2' in spec: + options.append("-slog2") + if '+phase' in spec: options.append('-PROFILEPHASE') -- cgit v1.2.3-70-g09d2