tau : scorep is now a variant
This commit is contained in:
parent
f3837dd686
commit
14c9c61275
@ -46,6 +46,7 @@ class Tau(Package):
|
|||||||
|
|
||||||
# TODO : shmem variant missing
|
# TODO : shmem variant missing
|
||||||
variant('download', default=False, description='Downloads and builds various dependencies')
|
variant('download', default=False, description='Downloads and builds various dependencies')
|
||||||
|
variant('scorep', default=False, description='Activates SCOREP support')
|
||||||
variant('openmp', default=True, description='Use OpenMP threads')
|
variant('openmp', default=True, description='Use OpenMP threads')
|
||||||
variant('mpi', default=True, description='Specify use of TAU MPI wrapper library')
|
variant('mpi', default=True, description='Specify use of TAU MPI wrapper library')
|
||||||
variant('phase', default=True, description='Generate phase based profiles')
|
variant('phase', default=True, description='Generate phase based profiles')
|
||||||
@ -54,7 +55,7 @@ class Tau(Package):
|
|||||||
# TODO : Try to build direct OTF2 support? Some parts of the OTF support library in TAU are non-conformant,
|
# TODO : Try to build direct OTF2 support? Some parts of the OTF support library in TAU are non-conformant,
|
||||||
# TODO : and fail at compile-time. Further, SCOREP is compiled with OTF2 support.
|
# TODO : and fail at compile-time. Further, SCOREP is compiled with OTF2 support.
|
||||||
depends_on('pdt') # Required for TAU instrumentation
|
depends_on('pdt') # Required for TAU instrumentation
|
||||||
depends_on('scorep')
|
depends_on('scorep', when='+scorep')
|
||||||
depends_on('binutils', when='~download')
|
depends_on('binutils', when='~download')
|
||||||
depends_on('mpi', when='+mpi')
|
depends_on('mpi', when='+mpi')
|
||||||
|
|
||||||
@ -95,8 +96,7 @@ def install(self, spec, prefix):
|
|||||||
# As such it has a few #peculiarities# that make this build quite hackish.
|
# As such it has a few #peculiarities# that make this build quite hackish.
|
||||||
options = ["-prefix=%s" % prefix,
|
options = ["-prefix=%s" % prefix,
|
||||||
"-iowrapper",
|
"-iowrapper",
|
||||||
"-pdt=%s" % spec['pdt'].prefix,
|
"-pdt=%s" % spec['pdt'].prefix]
|
||||||
"-scorep=%s" % spec['scorep'].prefix]
|
|
||||||
# If download is active, download and build suggested dependencies
|
# If download is active, download and build suggested dependencies
|
||||||
if '+download' in spec:
|
if '+download' in spec:
|
||||||
options.extend(['-bfd=download',
|
options.extend(['-bfd=download',
|
||||||
@ -106,6 +106,9 @@ def install(self, spec, prefix):
|
|||||||
options.extend(["-bfd=%s" % spec['binutils'].prefix])
|
options.extend(["-bfd=%s" % spec['binutils'].prefix])
|
||||||
# TODO : unwind and asmdex are still missing
|
# TODO : unwind and asmdex are still missing
|
||||||
|
|
||||||
|
if '+scorep' in spec:
|
||||||
|
options.append("-scorep=%s" % spec['scorep'].prefix)
|
||||||
|
|
||||||
if '+openmp' in spec:
|
if '+openmp' in spec:
|
||||||
options.append('-openmp')
|
options.append('-openmp')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user