Fix a bug where openspeedshop will not build when no mpi variants are specified. Also switch to a multiple level variant for building the gui(s). Use none, qt3, and qt4 as the variants with qt3 being the default.
This commit is contained in:
parent
ec93f53c36
commit
95e978b0b9
@ -77,12 +77,9 @@ class Openspeedshop(CMakePackage):
|
|||||||
to point to target build.")
|
to point to target build.")
|
||||||
variant('cuda', default=False,
|
variant('cuda', default=False,
|
||||||
description="build with cuda packages included.")
|
description="build with cuda packages included.")
|
||||||
variant('useqt4gui', default=False,
|
variant('gui', default='qt3', values=('none', 'qt3', 'qt4'),
|
||||||
description="build with Qt4/Qt5 based gui package enabled. \
|
description='Build or not build a GUI of choice'
|
||||||
Do not build older Qt3 gui")
|
)
|
||||||
variant('rtfe', default=False,
|
|
||||||
description="build for clusters heterogeneous processors \
|
|
||||||
on fe/be nodes.")
|
|
||||||
|
|
||||||
# MPI variants
|
# MPI variants
|
||||||
variant('openmpi', default=False,
|
variant('openmpi', default=False,
|
||||||
@ -116,7 +113,9 @@ class Openspeedshop(CMakePackage):
|
|||||||
depends_on("boost@1.50.0:1.59.0")
|
depends_on("boost@1.50.0:1.59.0")
|
||||||
depends_on("dyninst@9.3.2")
|
depends_on("dyninst@9.3.2")
|
||||||
depends_on("libxml2+python")
|
depends_on("libxml2+python")
|
||||||
depends_on("qt@3.3.8b+krellpatch", when='~useqt4gui')
|
depends_on("qt@3.3.8b+krellpatch", when='gui=qt3')
|
||||||
|
# Actively working on adding this gui package
|
||||||
|
# depends_on("cbtf-argonavis-gui", when='gui=qt4')
|
||||||
|
|
||||||
# Dependencies only for the openspeedshop offline package.
|
# Dependencies only for the openspeedshop offline package.
|
||||||
depends_on("libunwind", when='+offline')
|
depends_on("libunwind", when='+offline')
|
||||||
@ -131,6 +130,7 @@ class Openspeedshop(CMakePackage):
|
|||||||
|
|
||||||
# Dependencies only for the openspeedshop cbtf package.
|
# Dependencies only for the openspeedshop cbtf package.
|
||||||
depends_on("cbtf", when='+cbtf')
|
depends_on("cbtf", when='+cbtf')
|
||||||
|
depends_on('cbtf-krell', when='+cbtf')
|
||||||
depends_on('cbtf-krell+mpich', when='+cbtf+mpich')
|
depends_on('cbtf-krell+mpich', when='+cbtf+mpich')
|
||||||
depends_on('cbtf-krell+mpich2', when='+cbtf+mpich2')
|
depends_on('cbtf-krell+mpich2', when='+cbtf+mpich2')
|
||||||
depends_on('cbtf-krell+mpt', when='+cbtf+mpt')
|
depends_on('cbtf-krell+mpt', when='+cbtf+mpt')
|
||||||
@ -152,9 +152,9 @@ def cmake_args(self):
|
|||||||
compile_flags = "-O2 -g"
|
compile_flags = "-O2 -g"
|
||||||
|
|
||||||
if '+offline' in spec:
|
if '+offline' in spec:
|
||||||
|
# Indicate building offline vers (writes rawdata files)
|
||||||
instrumentor_setting = "offline"
|
instrumentor_setting = "offline"
|
||||||
if '+runtime' in spec:
|
if '+runtime' in spec:
|
||||||
|
|
||||||
cmake_args = [
|
cmake_args = [
|
||||||
'-DCMAKE_CXX_FLAGS=%s' % compile_flags,
|
'-DCMAKE_CXX_FLAGS=%s' % compile_flags,
|
||||||
'-DCMAKE_C_FLAGS=%s' % compile_flags,
|
'-DCMAKE_C_FLAGS=%s' % compile_flags,
|
||||||
@ -175,78 +175,54 @@ def cmake_args(self):
|
|||||||
cmake_args.extend(
|
cmake_args.extend(
|
||||||
['-DCMAKE_CXX_FLAGS=%s' % compile_flags,
|
['-DCMAKE_CXX_FLAGS=%s' % compile_flags,
|
||||||
'-DCMAKE_C_FLAGS=%s' % compile_flags,
|
'-DCMAKE_C_FLAGS=%s' % compile_flags,
|
||||||
'-DINSTRUMENTOR=%s'
|
'-DINSTRUMENTOR=%s' % instrumentor_setting,
|
||||||
% instrumentor_setting,
|
'-DLIBMONITOR_DIR=%s' % spec['libmonitor'].prefix,
|
||||||
'-DLIBMONITOR_DIR=%s'
|
'-DLIBUNWIND_DIR=%s' % spec['libunwind'].prefix,
|
||||||
% spec['libmonitor'].prefix,
|
'-DPAPI_DIR=%s' % spec['papi'].prefix,
|
||||||
'-DLIBUNWIND_DIR=%s'
|
'-DSQLITE3_DIR=%s' % spec['sqlite'].prefix,
|
||||||
% spec['libunwind'].prefix,
|
'-DQTLIB_DIR=%s' % spec['qt'].prefix])
|
||||||
'-DPAPI_DIR=%s'
|
|
||||||
% spec['papi'].prefix,
|
|
||||||
'-DSQLITE3_DIR=%s'
|
|
||||||
% spec['sqlite'].prefix,
|
|
||||||
'-DQTLIB_DIR=%s'
|
|
||||||
% spec['qt'].prefix])
|
|
||||||
|
|
||||||
# Add any MPI implementations coming from variant settings
|
# Add any MPI implementations coming from variant settings
|
||||||
self.set_mpi_cmakeOptions(spec, cmake_args)
|
self.set_mpi_cmakeOptions(spec, cmake_args)
|
||||||
|
|
||||||
elif '+cbtf' in spec:
|
elif '+cbtf' in spec:
|
||||||
|
# Indicate building cbtf vers (transfer rawdata files)
|
||||||
instrumentor_setting = "cbtf"
|
instrumentor_setting = "cbtf"
|
||||||
|
|
||||||
if '+runtime' in spec:
|
if '+runtime' in spec:
|
||||||
|
|
||||||
# Appends base options to cmake_args
|
# Appends base options to cmake_args
|
||||||
self.set_defaultbase_cmakeOptions(spec, cmake_args)
|
self.set_defaultbase_cmakeOptions(spec, cmake_args)
|
||||||
|
|
||||||
cmake_args.extend(
|
cmake_args.extend(
|
||||||
['-DCMAKE_CXX_FLAGS=%s' % compile_flags,
|
['-DCMAKE_CXX_FLAGS=%s' % compile_flags,
|
||||||
'-DCMAKE_C_FLAGS=%s' % compile_flags,
|
'-DCMAKE_C_FLAGS=%s' % compile_flags,
|
||||||
'-DINSTRUMENTOR=%s'
|
'-DINSTRUMENTOR=%s' % instrumentor_setting,
|
||||||
% instrumentor_setting,
|
'-DCBTF_DIR=%s' % spec['cbtf'].prefix,
|
||||||
'-DCBTF_DIR=%s'
|
'-DCBTF_KRELL_DIR=%s' % spec['cbtf-krell'].prefix,
|
||||||
% spec['cbtf'].prefix,
|
'-DMRNET_DIR=%s' % spec['mrnet'].prefix])
|
||||||
'-DCBTF_KRELL_DIR=%s'
|
|
||||||
% spec['cbtf-krell'].prefix,
|
|
||||||
'-DMRNET_DIR=%s'
|
|
||||||
% spec['mrnet'].prefix])
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
cmake_args = []
|
cmake_args = []
|
||||||
|
|
||||||
# Appends base options to cmake_args
|
# Appends base options to cmake_args
|
||||||
self.set_defaultbase_cmakeOptions(spec, cmake_args)
|
self.set_defaultbase_cmakeOptions(spec, cmake_args)
|
||||||
|
guitype = self.spec.variants['gui'].value
|
||||||
|
cmake_args.extend(
|
||||||
|
['-DCMAKE_CXX_FLAGS=%s' % compile_flags,
|
||||||
|
'-DCMAKE_C_FLAGS=%s' % compile_flags,
|
||||||
|
'-DINSTRUMENTOR=%s' % instrumentor_setting,
|
||||||
|
'-DSQLITE3_DIR=%s' % spec['sqlite'].prefix,
|
||||||
|
'-DCBTF_DIR=%s' % spec['cbtf'].prefix,
|
||||||
|
'-DCBTF_KRELL_DIR=%s' % spec['cbtf-krell'].prefix,
|
||||||
|
'-DMRNET_DIR=%s' % spec['mrnet'].prefix])
|
||||||
|
|
||||||
if '+useqt4gui' in self.spec:
|
if guitype == 'none':
|
||||||
cmake_args.extend(
|
cmake_args.extend(
|
||||||
['-DCMAKE_CXX_FLAGS=%s' % compile_flags,
|
['-DBUILD_QT3_GUI=FALSE'])
|
||||||
'-DCMAKE_C_FLAGS=%s' % compile_flags,
|
elif guitype == 'qt3':
|
||||||
'-DINSTRUMENTOR=%s'
|
|
||||||
% instrumentor_setting,
|
|
||||||
'-DSQLITE3_DIR=%s'
|
|
||||||
% spec['sqlite'].prefix,
|
|
||||||
'-DCBTF_DIR=%s'
|
|
||||||
% spec['cbtf'].prefix,
|
|
||||||
'-DCBTF_KRELL_DIR=%s'
|
|
||||||
% spec['cbtf-krell'].prefix,
|
|
||||||
'-DMRNET_DIR=%s'
|
|
||||||
% spec['mrnet'].prefix])
|
|
||||||
else:
|
|
||||||
cmake_args.extend(
|
cmake_args.extend(
|
||||||
['-DCMAKE_CXX_FLAGS=%s' % compile_flags,
|
['-DQTLIB_DIR=%s'
|
||||||
'-DCMAKE_C_FLAGS=%s' % compile_flags,
|
% spec['qt'].prefix])
|
||||||
'-DINSTRUMENTOR=%s'
|
|
||||||
% instrumentor_setting,
|
|
||||||
'-DSQLITE3_DIR=%s'
|
|
||||||
% spec['sqlite'].prefix,
|
|
||||||
'-DCBTF_DIR=%s'
|
|
||||||
% spec['cbtf'].prefix,
|
|
||||||
'-DCBTF_KRELL_DIR=%s'
|
|
||||||
% spec['cbtf-krell'].prefix,
|
|
||||||
'-DQTLIB_DIR=%s'
|
|
||||||
% spec['qt'].prefix,
|
|
||||||
'-DMRNET_DIR=%s'
|
|
||||||
% spec['mrnet'].prefix])
|
|
||||||
|
|
||||||
return cmake_args
|
return cmake_args
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user