<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hi Carlo,</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I am responding on behalf of Sunita.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">The "make test" command in the runtime folder does not only do the "make ctest". The "make ctest" here actually tries to generate the LL files. And, these LL files are consumed afterwards by llvm-lit command to see whether the test is passed or not. So, "make test" command is not solely "make ctest" and the test part happens with another command. We did provide this rule, "make test", to make your life easier. </div><div class="gmail_default" style="font-family:verdana,sans-serif">The peace of code that you mentioned is actually generating the LL files. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">At first, we proposed to put the testing rule (make test) in the testsuite. However, it was rejected. So, we tried to include it in the runtime folder for sake of OpenMP testers.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">And make -j: Simply, it tries to build a package with multiple jobs in parallel in order to speedup building. For example, with (make -j 8), we are trying to speedup the build process with 8 jobs (threads) in parallel. If the number is not provided, like "make -j", then there is no limit to number jobs and it tries to run it with as many as possible.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Bests Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif">Millad Ghane</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 14, 2015 at 10:19 AM, Carlo Bertolli <span dir="ltr"><<a href="mailto:cbertol@us.ibm.com" target="_blank">cbertol@us.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<p><font size="2" face="sans-serif">Hi</font><br>
<br>
<font size="2" face="sans-serif">After recent commits, I am now able to compile libiomp5.so and use it in the tests.</font><br>
<font size="2" face="sans-serif">I noticed that the makefile in the runtime directory ultimately calls "make ctest" in the testsuite directory.</font><br>
<br>
<font size="2" face="sans-serif">If I do this manually "make ctest" inside testsuite after having fixed the Makefile (again, in testuite), all selected tests are run and verified, but at the end I see this:</font><br>
<br>
<font size="2" face="sans-serif">cd bin/; make -j</font><br>
<font size="2" face="sans-serif">make[1]: Entering directory '/gsa/yktgsa-p6/05/llvm-coral-build/repos/ppc64le/libiomp/testsuite/bin'</font><br>
<font size="2" face="sans-serif">clang -fopenmp -S -emit-llvm c/test_omp_sections_reduction.c -o c/test_omp_sections_reduction.ll</font><br>
<font size="2" face="sans-serif">clang -fopenmp -S -emit-llvm c/orph_ctest_omp_lock.c -o c/orph_ctest_omp_lock.ll</font><br>
<font size="2" face="sans-serif">clang -fopenmp -S -emit-llvm c/orph_ctest_omp_parallel_if.c -o c/orph_ctest_omp_parallel_if.ll</font><br>
<br>
<font size="2" face="sans-serif">....more similar commands leading to errors..</font><br>
<br>
<font size="2" face="sans-serif">Maybe I should not use the makefile in the testsuite directory, but apparently that is what the "make test" command does when run from the runtime directory.</font><br>
<br>
<font size="2" face="sans-serif">Do you have any clues about the meaning of that "make -j" command? Why is it there and what is the intended for?</font><br>
<font size="2" face="sans-serif">Maybe I am using a wrong repo for updating my local copy..</font><br>
<br>
<br>
<font size="2" face="sans-serif">Thanks</font><br>
<br>
<font size="2" face="sans-serif">-- Carlo</font><br>
<br>
<br>
<br>
<img width="16" height="16" src="cid:1__=0ABBF4D6DFC019168f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for Sunita Chandrasekaran ---05/08/2015 03:58:04 PM---Hi Carlo If you could simply use 'make test' from o"><font size="2" color="#424282" face="sans-serif">Sunita Chandrasekaran ---05/08/2015 03:58:04 PM---Hi Carlo If you could simply use 'make test' from openmp/runtime folder, that is all</font><span class=""><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From: </font><font size="1" face="sans-serif">Sunita Chandrasekaran <<a href="mailto:sunita@cs.uh.edu" target="_blank">sunita@cs.uh.edu</a>></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To: </font><font size="1" face="sans-serif">Carlo Bertolli/Watson/IBM@IBMUS</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Cc: </font><font size="1" face="sans-serif">"<a href="mailto:openmp-dev@dcs-maillist2.engr.illinois.edu" target="_blank">openmp-dev@dcs-maillist2.engr.illinois.edu</a>" <<a href="mailto:openmp-dev@dcs-maillist2.engr.illinois.edu" target="_blank">openmp-dev@dcs-maillist2.engr.illinois.edu</a>>, Millad Ghane <<a href="mailto:millad.mg@gmail.com" target="_blank">millad.mg@gmail.com</a>></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date: </font><font size="1" face="sans-serif">05/08/2015 03:58 PM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject: </font><font size="1" face="sans-serif">Re: [Openmp-dev] testsuite script error</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Sent by: </font><font size="1" face="sans-serif"><a href="mailto:sunisg123@gmail.com" target="_blank">sunisg123@gmail.com</a></font><br>
</span></p><hr width="100%" size="2" align="left" noshade style="color:#8091a5"><br>
<br>
<br>
<div><div class="h5"><font size="3" face="serif">Hi Carlo </font><br>
<br>
<font size="3" face="serif">If you could simply use 'make test' from openmp/runtime folder, that is all that is needed. </font><br>
<br>
<font size="3" face="serif">Sorry if the 2 READMEs are creating a confusion. </font><br>
<br>
<font size="3" face="serif">Please drop us a note, if you have further issues. </font><br>
<br>
<font size="3" face="serif">Thanks</font><br>
<font size="3" face="serif">Sunita</font><br>
<font size="3" face="serif">P.S: Copied is our Ph.D. student here at UH. </font><br>
<br>
<font size="3" face="serif">On Fri, May 8, 2015 at 2:27 PM, Carlo Bertolli <</font><a href="mailto:cbertol@us.ibm.com" target="_blank"><font size="3" color="#0000FF" face="serif"><u>cbertol@us.ibm.com</u></font></a><font size="3" face="serif">> wrote:</font>
<ul style="padding-left:9pt"><font size="2" face="sans-serif">Hi all</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
After fetching the latest version of the library from here:</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
origin </font><a href="http://llvm.org/git/openmp.git" target="_blank"><font size="2" color="#0000FF" face="sans-serif"><u>http://llvm.org/git/openmp.git</u></font></a><font size="2" face="sans-serif"> (fetch)</font><font size="3" face="serif"><br>
<br>
</font><font size="2" face="sans-serif"><br>
I started seeing the following error when I run "make ctest" in the testsuite directory:</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
Testing for "has_openmp":<br>
Generating sources ..........Could not open the sourcefile for the main program ompts_standaloneProc.c at ./</font><a href="http://template_parser_c.pl/" target="_blank"><font size="2" color="#0000FF" face="sans-serif"><u>template_parser_c.pl</u></font></a><font size="2" face="sans-serif"> line 51.<br>
Could not open the sourcefile for the main program ompts_standaloneProc.c at ./</font><a href="http://template_parser_c.pl/" target="_blank"><font size="2" color="#0000FF" face="sans-serif"><u>template_parser_c.pl</u></font></a><font size="2" face="sans-serif"> line 51.<br>
ERROR: Generation of sourcecode for the test failed.<br>
ERROR: Generation of sourcecode for the crosstest failed.<br>
.... failed</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
for all tests. This happens equally on an Intel machine and a PCC64LE one.</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
What am I doing wrong?</font><font size="3" face="serif"><br>
<br>
</font><font size="2" face="sans-serif"><br>
Thanks</font><font size="3" color="#888888" face="serif"><br>
</font><font size="2" color="#888888" face="sans-serif"><br>
-- Carlo</font><br>
<font size="3" face="serif"><br>
_______________________________________________<br>
Openmp-dev mailing list</font><font size="3" color="#0000FF" face="serif"><u><br>
</u></font><a href="mailto:Openmp-dev@dcs-maillist2.engr.illinois.edu" target="_blank"><font size="3" color="#0000FF" face="serif"><u>Openmp-dev@dcs-maillist2.engr.illinois.edu</u></font></a><font size="3" color="#0000FF" face="serif"><u><br>
</u></font><a href="http://lists.cs.uiuc.edu/mailman/listinfo/openmp-dev" target="_blank"><font size="3" color="#0000FF" face="serif"><u>http://lists.cs.uiuc.edu/mailman/listinfo/openmp-dev</u></font></a><font size="3" face="serif"><br>
</font></ul>
<br>
<br>
</div></div><p></p></div>
</blockquote></div><br></div>