[Scons-users] How to use scons build parallel program(MPI)?
罗飞
geoluo1217 at gmail.com
Fri Apr 10 09:02:53 EDT 2015
As is known to all,
We can use special compilers by write SConstuct:
===========================================
import os
env.Environment(ENV={'PATH':os.environ['PATH']})
env.Tool('ifort')
env.program(.....)
===========================================
Now,I want to compile MPI,and I write SConstruct same as above:
==================================================
import os
env.Environment(ENV={'PATH':os.environ['PATH']})
env.Tool('mpif90')
env.Program(.....)
=========================
mpif90's path is in the ENV. But,a problem happen:
++++++++++++++++++++++
scons
scons: Reading SConscript files ...
EnvironmentError: No tool named 'mpif90': not a Zip file:
File "/home/test/SConstruct", line 5:
env.Tool('mpif90')
File "/usr/lib/scons/SCons/Environment.py", line 1691:
tool = SCons.Tool.Tool(tool, toolpath, **kw)
File "/usr/lib/scons/SCons/Tool/__init__.py", line 94:
module = self._tool_module()
File "/usr/lib/scons/SCons/Tool/__init__.py", line 154:
raise SCons.Errors.EnvironmentError(m)
========================================================
How to compile MPI?
Thanks
luofei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150410/3c58f998/attachment.html>
More information about the Scons-users
mailing list