Skip to content

Commit 305f436

Browse files
committed
MPI configuration
1 parent c77be2c commit 305f436

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

framework/configure.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,9 @@ def mpi(context):
13051305
}\n'''
13061306
cc = context.env.get('CC')
13071307
context.env['CC'] = mpicc
1308-
context.env.Append(ENV={'MPICH_CC':cc,'MPICH_CLINKER':cc})
1308+
context.env.Append(ENV={'MPICH_CC':cc,
1309+
'MPICH_CLINKER':cc,
1310+
'HOME': os.environ.get('HOME')})
13091311
res = context.TryLink(text,'.c')
13101312
context.env['CC'] = cc
13111313
if res:
@@ -1336,7 +1338,8 @@ def mpi(context):
13361338
}\n'''
13371339
cxx = context.env.get('CXX')
13381340
context.env['CXX'] = mpicxx
1339-
context.env.Append(ENV={'MPICH_CXX':cxx})
1341+
context.env.Append(ENV={'MPICH_CXX':cxx,
1342+
'HOME': os.environ.get('HOME')})
13401343
res = context.TryLink(text,'.cc')
13411344
context.env['CXX'] = cxx
13421345
if res:

0 commit comments

Comments
 (0)