<div dir="ltr">Hi Carlo <div>Thanks for bringing this to our notice. We are checking things at our end, will write back to you shortly with a solution.</div><div>Cheers</div><div>Sunita<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 14, 2015 at 10:19 PM, 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 Millad</font><br>
<br>
<font size="2" face="sans-serif">Thanks for your answer, now I see what is happening.</font><br>
<br>
<font size="2" face="sans-serif">However, please correct me if I am saying something wrong, I see that these .ll files are generated by the Makefile in the testsuite/bin/ directory.</font><br>
<font size="2" face="sans-serif">When I run "make test" in runtime, I get the following errors at the end, after all tests have been compiled and run:</font><br>
<br>
<font size="2" face="sans-serif">Makefile:19: recipe for target 'c/orph_ctest_omp_parallel_default' failed</font><br>
<font size="2" face="sans-serif">make[2]: *** [c/orph_ctest_omp_parallel_default] Error 1</font><br>
<font size="2" face="sans-serif">In file included from c/test_omp_get_wtick.c:4:</font><br>
<font size="2" face="sans-serif">c/omp_testsuite.h:11:10: fatal error: 'omp.h' file not found</font><br>
<font size="2" face="sans-serif">#include <omp.h></font><br>
<font size="2" face="sans-serif">         ^</font><br>
<font size="2" face="sans-serif">1 error generated.</font><br>
<br>
<font size="2" face="sans-serif">and similar..</font><br>
<br>
<font size="2" face="sans-serif">I guess this is because the setting of the include path is not working (at least on my machine). What is the right place to fix it? testsuite/bin/Makefile? Should I fix it by hand before running make test (in the sense that right now "make test" seems to do all the work for me)?</font><br>
<br>
<font size="2" face="sans-serif">Also, running "make test" in runtime/ fills up my testsuite/ directory with .log files. Is this expected? Incidentally, the .log files for orphaned tests seem to be failing a lot (if not them all).</font><br>
<br>
<br>
<font size="2" face="sans-serif">Thanks and apologies if I am missing some of the point</font><br>
<br>
<font size="2" face="sans-serif">-- Carlo</font><br>
<br>
<br>
<img width="16" height="16" src="cid:1__=0ABBF4D5DF83DA108f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for Millad Ghane ---05/14/2015 08:46:51 PM---Hi Carlo, I am responding on behalf of Sunita."><font size="2" color="#424282" face="sans-serif">Millad Ghane ---05/14/2015 08:46:51 PM---Hi Carlo, I am responding on behalf of Sunita.</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From:      </font><font size="1" face="sans-serif">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">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">Sunita Chandrasekaran <<a href="mailto:sunita@cs.uh.edu" target="_blank">sunita@cs.uh.edu</a>>, "<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>>, sunita chandrasekaran <<a href="mailto:sunisg123@gmail.com" target="_blank">sunisg123@gmail.com</a>></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date:      </font><font size="1" face="sans-serif">05/14/2015 08:46 PM</font><span class=""><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>
</span></p><hr width="100%" size="2" align="left" noshade style="color:#8091a5"><div><div class="h5"><br>
<br>
<br>
<font size="3" face="Verdana">Hi Carlo,</font><br>
<br>
<font size="3" face="Verdana">I am responding on behalf of Sunita.</font><br>
<br>
<font size="3" face="Verdana">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. </font><br>
<font size="3" face="Verdana">The peace of code that you mentioned is actually generating the LL files. </font><br>
<br>
<font size="3" face="Verdana">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.</font><br>
<br>
<font size="3" face="Verdana">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.</font><br>
<br>
<br>
<font size="3" face="Verdana">Bests Regards,</font><br>
<font size="3" face="Verdana">Millad Ghane</font><br>
<br>
<br>
<font size="3" face="serif">On Thu, May 14, 2015 at 10:19 AM, 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</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
After recent commits, I am now able to compile libiomp5.so and use it in the tests.<br>
I noticed that the makefile in the runtime directory ultimately calls "make ctest" in the testsuite directory.</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
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><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
cd bin/; make -j<br>
make[1]: Entering directory '/gsa/yktgsa-p6/05/llvm-coral-build/repos/ppc64le/libiomp/testsuite/bin'<br>
clang -fopenmp -S -emit-llvm   c/test_omp_sections_reduction.c -o c/test_omp_sections_reduction.ll<br>
clang -fopenmp -S -emit-llvm   c/orph_ctest_omp_lock.c -o c/orph_ctest_omp_lock.ll<br>
clang -fopenmp -S -emit-llvm   c/orph_ctest_omp_parallel_if.c -o c/orph_ctest_omp_parallel_if.ll</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
....more similar commands leading to errors..</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
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><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
Do you have any clues about the meaning of that "make -j" command? Why is it there and what is the intended for?<br>
Maybe I am using a wrong repo for updating my local copy..</font><font size="3" face="serif"><br>
<br>
</font><font size="2" face="sans-serif"><br>
Thanks</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
-- Carlo</font><font size="3" face="serif"><br>
<br>
<br>
<br>
</font><img src="cid:1__=0ABBF4D5DF83DA108f9e8a93df938@us.ibm.com" width="16" height="16" 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><font size="3" face="serif"><br>
</font><font size="1" color="#5F5F5F" face="sans-serif"><br>
From: </font><font size="1" face="sans-serif">Sunita Chandrasekaran <</font><a href="mailto:sunita@cs.uh.edu" target="_blank"><font size="1" color="#0000FF" face="sans-serif"><u>sunita@cs.uh.edu</u></font></a><font size="1" face="sans-serif">></font><font size="1" color="#5F5F5F" face="sans-serif"><br>
To: </font><font size="1" face="sans-serif">Carlo Bertolli/Watson/IBM@IBMUS</font><font size="1" color="#5F5F5F" face="sans-serif"><br>
Cc: </font><font size="1" face="sans-serif">"</font><a href="mailto:openmp-dev@dcs-maillist2.engr.illinois.edu" target="_blank"><font size="1" color="#0000FF" face="sans-serif"><u>openmp-dev@dcs-maillist2.engr.illinois.edu</u></font></a><font size="1" face="sans-serif">" <</font><a href="mailto:openmp-dev@dcs-maillist2.engr.illinois.edu" target="_blank"><font size="1" color="#0000FF" face="sans-serif"><u>openmp-dev@dcs-maillist2.engr.illinois.edu</u></font></a><font size="1" face="sans-serif">>, Millad Ghane <</font><a href="mailto:millad.mg@gmail.com" target="_blank"><font size="1" color="#0000FF" face="sans-serif"><u>millad.mg@gmail.com</u></font></a><font size="1" face="sans-serif">></font><font size="1" color="#5F5F5F" face="sans-serif"><br>
Date: </font><font size="1" face="sans-serif">05/08/2015 03:58 PM</font><font size="1" color="#5F5F5F" face="sans-serif"><br>
Subject: </font><font size="1" face="sans-serif">Re: [Openmp-dev] testsuite script error</font><font size="1" color="#5F5F5F" face="sans-serif"><br>
Sent by: </font><a href="mailto:sunisg123@gmail.com" target="_blank"><font size="1" color="#0000FF" face="sans-serif"><u>sunisg123@gmail.com</u></font></a><br>
<hr width="100%" size="2" align="left" noshade><font size="3" face="serif"><br>
<br>
</font><br>
<font size="3" face="serif">Hi Carlo <br>
<br>
If you could simply use 'make test' from openmp/runtime folder, that is all that is needed. <br>
<br>
Sorry if the 2 READMEs are creating a confusion. <br>
<br>
Please drop us a note, if you have further issues. <br>
<br>
Thanks<br>
Sunita<br>
P.S: Copied is our Ph.D. student here at UH. <br>
<br>
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:36pt"><font size="2" face="sans-serif">Hi all<br>
<br>
After fetching the latest version of the library from here:<br>
<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>
</font><font size="2" face="sans-serif"><br>
<br>
I started seeing the following error when I run "make ctest" in the testsuite directory:<br>
<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<br>
<br>
for all tests. This happens equally on an Intel machine and a PCC64LE one.<br>
<br>
What am I doing wrong?</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
<br>
Thanks</font><font size="2" color="#888888" face="sans-serif"><br>
<br>
-- Carlo</font><font size="3" face="serif"><br>
<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></ul>
<font size="3" face="serif"><br>
</font></ul>
<br>

<p>
</p><p></p><p></p></div></div><p></p></div>
</blockquote></div><br></div></div></div>