tau: added new variants (#16005)
* Add more tau variants * Add more tau variants
This commit is contained in:
parent
a5f7cc887a
commit
97dcf7b8ee
@ -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 @@ def install(self, spec, prefix):
|
||||
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 @@ def install(self, spec, prefix):
|
||||
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 @@ def install(self, spec, prefix):
|
||||
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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user