caffe: use MPI compiler when using hdf5+mpi (#17125)

This commit is contained in:
Tomoki, Karatsu 2020-06-23 15:54:54 +09:00 committed by GitHub
parent 55f26b0ccb
commit 1d10c6c730
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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