File tree Expand file tree Collapse file tree
spack/repo/chimbuko/packages/chimbuko-performance-analysis Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,8 +17,9 @@ class ChimbukoPerformanceAnalysis(AutotoolsPackage):
1717 version ('master' , branch = 'master' )
1818
1919 variant ('perf-metric' , default = True , description = 'Build with performance monitoring' )
20-
21- depends_on ('mpi' )
20+ variant ('mpi' , default = True , description = 'Enable building Chimbuko with MPI. If disabled the user must manually provide the rank index to the OAD.' )
21+
22+ depends_on ('mpi' , when = "+mpi" )
2223 depends_on ('cereal' )
2324 depends_on ('adios2' )
2425 depends_on ('googletest' )
@@ -34,12 +35,15 @@ class ChimbukoPerformanceAnalysis(AutotoolsPackage):
3435
3536
3637 def setup_environment (self , spack_env , run_env ):
37- spack_env .set ('CXX' , self .spec ['mpi' ].mpicxx )
38+ if '+mpi' in self .spec :
39+ spack_env .set ('CXX' , self .spec ['mpi' ].mpicxx )
3840
3941 def configure_args (self ):
4042 args = ["--with-network=ZMQ" , "--with-adios2=%s" % self .spec ['adios2' ].prefix ]
4143
4244 if '+perf-metric' in self .spec :
4345 args .append ('--with-perf-metric' )
44-
46+ if '+mpi' not in self .spec :
47+ args .append ('--disable-mpi' )
48+
4549 return args
You can’t perform that action at this time.
0 commit comments