caffe: use MPI compiler when using hdf5+mpi (#17125)
This commit is contained in:
parent
55f26b0ccb
commit
1d10c6c730
1 changed files with 6 additions and 0 deletions
|
@ -81,4 +81,10 @@ def cmake_args(self):
|
|||
version = spec['python'].version.up_to(1)
|
||||
args.append('-Dpython_version=%s' % version)
|
||||
|
||||
if spec['hdf5'].satisfies('+mpi'):
|
||||
args.extend([
|
||||
'-DCMAKE_C_COMPILER={0}'.format(self.spec['mpi'].mpicc),
|
||||
'-DCMAKE_CXX_COMPILER={0}'.format(self.spec['mpi'].mpicxx)
|
||||
])
|
||||
|
||||
return args
|
||||
|
|
Loading…
Reference in a new issue