Fixed xsbench~mpi Spec (#21498)
This commit is contained in:
parent
d5953d75bf
commit
3387cefe1e
@ -46,8 +46,10 @@ def build_targets(self):
|
|||||||
|
|
||||||
if '+mpi' in self.spec:
|
if '+mpi' in self.spec:
|
||||||
targets.append('CC={0}'.format(self.spec['mpi'].mpicc))
|
targets.append('CC={0}'.format(self.spec['mpi'].mpicc))
|
||||||
|
targets.append('MPI=yes')
|
||||||
else:
|
else:
|
||||||
targets.append('CC={0}'.format(self.compiler.cxx))
|
targets.append('CC={0}'.format(self.compiler.cc))
|
||||||
|
targets.append('MPI=no')
|
||||||
|
|
||||||
if '+openmp' in self.spec:
|
if '+openmp' in self.spec:
|
||||||
cflags += ' ' + self.compiler.openmp_flag
|
cflags += ' ' + self.compiler.openmp_flag
|
||||||
|
Loading…
Reference in New Issue
Block a user