<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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:EN-GB;}
span.stdout
        {mso-style-name:stdout;}
span.stderr
        {mso-style-name:stderr;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></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="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Hi Daniel and Rafael,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">I've noticed that after the switch to multiprocessing, clang-amd64-openbsd (</span><a href="http://lab.llvm.org:8011/builders/clang-amd64-openbsd/builds/2019">http://lab.llvm.org:8011/builders/clang-amd64-openbsd/builds/2019</a>)
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">has stopped running tests. Buildbot probably didn't send out an email because the previous build failed for different reasons (4 unexpected failures in check-all) so I thought I ought to let
 you know.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From the stdio for check-all:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">Making lit.site.cfg for Clang extra tools...<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">make[2]: Leaving directory `/buildbot-llvm/clang-openbsd/llvm/tools/clang/tools/extra/test'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -s 8192 ; \<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">  /usr/local/bin/python2.7 /buildbot-llvm/clang-openbsd/llvm/utils/lit/lit.py -v -j 2 . /buildbot-llvm/clang-openbsd/llvm/test/../tools/clang/test /buildbot-llvm/clang-openbsd/llvm/test/../tools/clang/tools/extra/test
 )<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">lit.py: <string>:187: note: using clang: '/buildbot-llvm/clang-openbsd/llvm/Release+Asserts/bin/clang'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">lit.py: <string>:180: note: using clang: '/buildbot-llvm/clang-openbsd/llvm/Release+Asserts/bin/clang'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">lit.py: discovery.py:190: warning: test suite 'Extra Tools Unit Tests' contained no tests<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">-- Testing: 15823 tests, 2 threads --<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">Traceback (most recent call last):<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">  File "/buildbot-llvm/clang-openbsd/llvm/utils/lit/lit.py", line 5, in <module><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">    lit.main()<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">  File "/buildbot-llvm/clang-openbsd/llvm/utils/lit/lit/main.py", line 327, in main<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">    opts.useProcesses)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">  File "/buildbot-llvm/clang-openbsd/llvm/utils/lit/lit/run.py", line 220, in execute_tests<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">    canceled_flag =  multiprocessing.Value('i', 0)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">  File "/usr/local/lib/python2.7/multiprocessing/__init__.py", line 253, in Value<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">    return Value(typecode_or_type, *args, **kwds)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">  File "/usr/local/lib/python2.7/multiprocessing/sharedctypes.py", line 103, in Value<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">    lock = RLock()<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">  File "/usr/local/lib/python2.7/multiprocessing/__init__.py", line 182, in RLock<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">    from multiprocessing.synchronize import RLock<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">  File "/usr/local/lib/python2.7/multiprocessing/synchronize.py", line 59, in <module><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">    " function, see issue 3770.")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">ImportError: This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">make[1]: *** [check-local-all] Error 1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">make[1]: Leaving directory `/buildbot-llvm/clang-openbsd/llvm/test'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:red">make: *** [check-all] Error 2</span><span style="font-size:10.0pt;font-family:"Courier New";color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> llvm-commits-bounces@cs.uiuc.edu [mailto:llvm-commits-bounces@cs.uiuc.edu]
<b>On Behalf Of </b>Daniel Dunbar<br>
<b>Sent:</b> 24 October 2013 00:53<br>
<b>To:</b> Rafael Espíndola<br>
<b>Cc:</b> llvm-commits<br>
<b>Subject:</b> Re: [llvm] r193279 - [lit] Use multiprocessing based parallelism by default, on Unix.<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Oh, thanks!<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
On Wednesday, October 23, 2013, Rafael Espíndola wrote:<o:p></o:p></p>
<p class="MsoNormal">>      group.add_option("", "--use-processes", dest="useProcesses",<br>
>                        help="Run tests in parallel with processes (not threads)",<br>
> -                      action="store_true", default=False)<br>
> +                      action="store_true", default=useProcessesIsDefault)<br>
>      group.add_option("", "--use-threads", dest="useProcesses",<br>
>                        help="Run tests in parallel with threads (not processes)",<br>
> -                      action="store_false", default=False)<br>
> +                      action="store_false", default=not useProcessesIsDefault)<br>
>      parser.add_option_group(group)<br>
<br>
Having two options pointing to the same variable with different<br>
defaults is odd. I was still getting multitherading on linux. I fixed<br>
this in r193282 and multiprocessing is now being used by default.<br>
<br>
Cheers,<br>
Rafael<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><br>
<br>
-- <br>
- Daniel<o:p></o:p></p>
</div>
</div>
</body>
</html>