[prev in list] [next in list] [prev in thread] [next in thread]
List: boost-build
Subject: [Boost-build] mpi.jam
From: "Hicham Mouline" <hicham () mouline ! org>
Date: 2010-11-22 17:28:26
Message-ID: 004801cb8a6a$ac6ef370$054cda50$ () org
[Download RAW message or body]
This is a multipart message in MIME format.
[Attachment #2 (multipart/alternative)]
This is a multipart message in MIME format.
hello,
looking at mpi.jam, there is a part that tests some flags for a compiler
wrapper:
local result ;
local compile_flags ;
local link_flags ;
if ! $(command)
{
# Do nothing: we'll complain later
}
# OpenMPI and newer versions of LAM-MPI have -showme:compile and
# -showme:link.
else if [ safe-shell-command "$(command) -showme:compile" ] &&
[ safe-shell-command "$(command) -showme:link" ]
{
...
}
What does the safe-shell-command do on windows?
Does it use the %PATH% environment variable if defined?
$(command) evaluates to mpic++
mpic++ -showme:compile outputs some flags properly,
if I were to replace $(command) with the mpic++ full path, should I write:
safe-shell-command "c:\\Program Files (x86)\\openmpi\\bin\\mpic++.exe
-showme:compile"
[Attachment #5 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-GB link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>hello,<o:p></o:p></p>
<p class=MsoNormal>looking at mpi.jam, there is a part that tests some flags
for a compiler wrapper:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>local result ;<o:p></o:p></p>
<p class=MsoNormal>local compile_flags ;<o:p></o:p></p>
<p class=MsoNormal>local link_flags ;<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal>if ! $(command)<o:p></o:p></p>
<p class=MsoNormal> { <o:p></o:p></p>
<p class=MsoNormal> # Do nothing: we'll complain
later<o:p></o:p></p>
<p class=MsoNormal> }<o:p></o:p></p>
<p class=MsoNormal> # OpenMPI and newer versions of LAM-MPI
have -showme:compile and <o:p></o:p></p>
<p class=MsoNormal> # -showme:link.<o:p></o:p></p>
<p class=MsoNormal> else if [ safe-shell-command
"$(command) -showme:compile" ] &&<o:p></o:p></p>
<p class=MsoNormal>
[ safe-shell-command "$(command) -showme:link" ]<o:p></o:p></p>
<p class=MsoNormal> {<o:p></o:p></p>
<p class=MsoNormal>...<o:p></o:p></p>
<p class=MsoNormal>}<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>What does the safe-shell-command do on windows?<o:p></o:p></p>
<p class=MsoNormal>Does it use the %PATH% environment variable if \
defined?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>$(command) evaluates to mpic++<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>mpic++ -showme:compile outputs some flags properly,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>if I were to replace $(command) with the mpic++ full path, should
I write:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>safe-shell-command "c:\\Program Files
(x86)\\openmpi\\bin\\mpic++.exe -showme:compile"<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic