<html><body>
<p><font size="2" face="sans-serif">Great! Let me wait for Jonathan to update the trunk and I will get it from there.</font><br>
<br>
<font size="2" face="sans-serif">Thanks</font><br>
<br>
<font size="2" face="sans-serif">-- Carlo</font><br>
<br>
<br>
<img width="16" height="16" src="cid:1__=0ABBF4DADFE557808f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for "Peyton, Jonathan L" ---05/18/2015 05:35:24 PM---I’m on it! -- Johnny"><font size="2" color="#424282" face="sans-serif">"Peyton, Jonathan L" ---05/18/2015 05:35:24 PM---I’m on it! -- Johnny</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From:      </font><font size="1" face="sans-serif">"Peyton, Jonathan L" <jonathan.l.peyton@intel.com></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">Sunita Chandrasekaran <sunita@cs.uh.edu>, Carlo Bertolli/Watson/IBM@IBMUS</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Cc:        </font><font size="1" face="sans-serif">Millad Ghane <millad.mg@gmail.com>, "openmp-dev@dcs-maillist2.engr.illinois.edu" <openmp-dev@dcs-maillist2.engr.illinois.edu></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date:      </font><font size="1" face="sans-serif">05/18/2015 05:35 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>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<font size="2" color="#1F497D" face="Calibri">I’m on it!</font><br>
<font size="2" color="#1F497D" face="Calibri"> </font><br>
<font size="2" color="#1F497D" face="Calibri">-- Johnny</font><br>
<a name="_MailEndCompose"></a><font size="2" color="#1F497D" face="Calibri"> </font><br>
<font size="2" face="Calibri"><b>From:</b></font><font size="2" face="Calibri"> sunisg123@gmail.com [</font><font size="2" face="Calibri"><a href="mailto:sunisg123@gmail.com">mailto:sunisg123@gmail.com</a></font><font size="2" face="Calibri">] </font><font size="2" face="Calibri"><b>On Behalf Of </b></font><font size="2" face="Calibri">Sunita Chandrasekaran</font><font size="2" face="Calibri"><b><br>
Sent:</b></font><font size="2" face="Calibri"> Monday, May 18, 2015 3:52 PM</font><font size="2" face="Calibri"><b><br>
To:</b></font><font size="2" face="Calibri"> Carlo Bertolli; Peyton, Jonathan L</font><font size="2" face="Calibri"><b><br>
Cc:</b></font><font size="2" face="Calibri"> Millad Ghane; openmp-dev@dcs-maillist2.engr.illinois.edu; Sunita Chandrasekaran</font><font size="2" face="Calibri"><b><br>
Subject:</b></font><font size="2" face="Calibri"> Re: [Openmp-dev] testsuite script error</font><br>
<font size="3" face="Times New Roman"> </font><br>
<font size="3" face="Times New Roman">Hi Carlo </font><br>
<font size="3" face="Times New Roman"> </font><br>
<font size="3" face="Times New Roman">Sorry for the delay. We were able to fix the problem by adding a line to the Makefile that will fetch omp.h for you, in case your system doesn't find it by default. Not finding omp.h gave you those errors, it should go away now. </font><br>
<font size="3" face="Times New Roman"> </font><br>
<font size="3" face="Times New Roman"><b>Jonathan</b></font><font size="3" face="Times New Roman">: Could you please help us update the Makefile in openmp/runtime/ with the one attached? </font><br>
<font size="3" face="Times New Roman">If for some reason, you cannot access this Makefile, please pick it up from </font><br>
<a href="https://www.dropbox.com/s/5qirpnb6rcupgwp/Makefile?dl=0" target="_blank"><font size="3" color="#0000FF" face="Times New Roman"><u>https://www.dropbox.com/s/5qirpnb6rcupgwp/Makefile?dl=0</u></font></a><font size="3" face="Times New Roman"> </font><br>
<font size="3" face="Times New Roman"> </font><br>
<font size="3" face="Times New Roman">Once this Makefile is used, the tests will run for completion and the log files will automatically be deleted. </font><br>
<font size="3" face="Times New Roman"> </font><br>
<font size="3" face="Times New Roman">Also in /openmp/testsuite/README_LLVM_OPENMP, if you could please mention</font><br>
<font size="3" face="Times New Roman">make test compiler=clang </font><br>
<font size="3" face="Times New Roman">instead of </font><br>
<font size="3" face="Times New Roman">make test </font><br>
<font size="3" face="Times New Roman">in line 11. </font><br>
<font size="3" face="Times New Roman">This is more clear. </font><br>
<font size="3" face="Times New Roman"> </font><br>
<font size="3" face="Times New Roman">Thanks for pointing this out and hope this works. </font><br>
<font size="3" face="Times New Roman">Please let us know. </font><br>
<font size="3" face="Times New Roman"> </font><br>
<font size="3" face="Times New Roman">Sunita</font><br>
<font size="3" face="Times New Roman"> </font><br>
<font size="3" face="Times New Roman"> </font><br>
<font size="3" face="Times New Roman">On Fri, May 15, 2015 at 7:32 PM, Sunita Chandrasekaran <</font><a href="mailto:sunisg123@gmail.com" target="_blank"><font size="3" color="#0000FF" face="Times New Roman"><u>sunisg123@gmail.com</u></font></a><font size="3" face="Times New Roman">> wrote:</font>
<ul style="padding-left: 4pt"><font size="3" face="Times New Roman">Hi Carlo </font><br>
<font size="3" face="Times New Roman">Thanks for bringing this to our notice. We are checking things at our end, will write back to you shortly with a solution.</font><br>
<font size="3" face="Times New Roman">Cheers</font><br>
<font size="3" color="#888888" face="Times New Roman">Sunita</font><br>
<font size="3" face="Times New Roman"> </font><br>
<font size="3" face="Times New Roman"> </font><br>
<font size="3" face="Times New Roman">On Thu, May 14, 2015 at 10:19 PM, Carlo Bertolli <</font><a href="mailto:cbertol@us.ibm.com" target="_blank"><font size="3" color="#0000FF" face="Times New Roman"><u>cbertol@us.ibm.com</u></font></a><font size="3" face="Times New Roman">> wrote:</font>
<ul style="padding-left: 4pt"><br>
<font size="2" face="Arial">Hi Millad</font><font size="3" face="Times New Roman"><br>
</font><font size="2" face="Arial"><br>
Thanks for your answer, now I see what is happening.</font><font size="3" face="Times New Roman"><br>
</font><font size="2" face="Arial"><br>
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.<br>
When I run "make test" in runtime, I get the following errors at the end, after all tests have been compiled and run:</font><font size="3" face="Times New Roman"><br>
</font><font size="2" face="Arial"><br>
Makefile:19: recipe for target 'c/orph_ctest_omp_parallel_default' failed<br>
make[2]: *** [c/orph_ctest_omp_parallel_default] Error 1<br>
In file included from c/test_omp_get_wtick.c:4:<br>
c/omp_testsuite.h:11:10: fatal error: 'omp.h' file not found<br>
#include <omp.h><br>
         ^<br>
1 error generated.</font><font size="3" face="Times New Roman"><br>
</font><font size="2" face="Arial"><br>
and similar..</font><font size="3" face="Times New Roman"><br>
</font><font size="2" face="Arial"><br>
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><font size="3" face="Times New Roman"><br>
</font><font size="2" face="Arial"><br>
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><font size="3" face="Times New Roman"><br>
<br>
</font><font size="2" face="Arial"><br>
Thanks and apologies if I am missing some of the point</font><font size="3" face="Times New Roman"><br>
</font><font size="2" face="Arial"><br>
-- Carlo</font><font size="3" face="Times New Roman"><br>
<br>
<br>
</font><img src="cid:1__=0ABBF4DADFE557808f9e8a93df938@us.ibm.com" width="16" height="16" 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="Arial">Millad Ghane ---05/14/2015 08:46:51 PM---Hi Carlo, I am responding on behalf of Sunita.</font><font size="3" face="Times New Roman"><br>
</font><font size="1" color="#5F5F5F" face="Arial"><br>
From: </font><font size="1" face="Arial">Millad Ghane <</font><a href="mailto:millad.mg@gmail.com" target="_blank"><font size="1" color="#0000FF" face="Arial"><u>millad.mg@gmail.com</u></font></a><font size="1" face="Arial">></font><font size="1" color="#5F5F5F" face="Arial"><br>
To: </font><font size="1" face="Arial">Carlo Bertolli/Watson/IBM@IBMUS</font><font size="1" color="#5F5F5F" face="Arial"><br>
Cc: </font><font size="1" face="Arial">Sunita Chandrasekaran <</font><a href="mailto:sunita@cs.uh.edu" target="_blank"><font size="1" color="#0000FF" face="Arial"><u>sunita@cs.uh.edu</u></font></a><font size="1" face="Arial">>, "</font><a href="mailto:openmp-dev@dcs-maillist2.engr.illinois.edu" target="_blank"><font size="1" color="#0000FF" face="Arial"><u>openmp-dev@dcs-maillist2.engr.illinois.edu</u></font></a><font size="1" face="Arial">" <</font><a href="mailto:openmp-dev@dcs-maillist2.engr.illinois.edu" target="_blank"><font size="1" color="#0000FF" face="Arial"><u>openmp-dev@dcs-maillist2.engr.illinois.edu</u></font></a><font size="1" face="Arial">>, sunita chandrasekaran <</font><a href="mailto:sunisg123@gmail.com" target="_blank"><font size="1" color="#0000FF" face="Arial"><u>sunisg123@gmail.com</u></font></a><font size="1" face="Arial">></font><font size="1" color="#5F5F5F" face="Arial"><br>
Date: </font><font size="1" face="Arial">05/14/2015 08:46 PM</font><font size="1" color="#5F5F5F" face="Arial"><br>
Subject: </font><font size="1" face="Arial">Re: [Openmp-dev] testsuite script error</font><br>
<hr width="100%" size="2" align="left" noshade><br>
<font size="3" face="Times New Roman"><br>
<br>
</font><font size="3" face="Verdana"><br>
Hi Carlo,</font><font size="3" face="Times New Roman"><br>
</font><font size="3" face="Verdana"><br>
I am responding on behalf of Sunita.</font><font size="3" face="Times New Roman"><br>
</font><font size="3" face="Verdana"><br>
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. <br>
The peace of code that you mentioned is actually generating the LL files. </font><font size="3" face="Times New Roman"><br>
</font><font size="3" face="Verdana"><br>
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><font size="3" face="Times New Roman"><br>
</font><font size="3" face="Verdana"><br>
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><font size="3" face="Times New Roman"><br>
<br>
</font><font size="3" face="Verdana"><br>
Bests Regards,<br>
Millad Ghane</font><font size="3" face="Times New Roman"><br>
<br>
<br>
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="Times New Roman"><u>cbertol@us.ibm.com</u></font></a><font size="3" face="Times New Roman">> wrote: </font>
<ul style="padding-left: 36pt"><font size="2" face="Arial">Hi<br>
<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.<br>
<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:<br>
<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<br>
<br>
....more similar commands leading to errors..<br>
<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.<br>
<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="Times New Roman"><br>
</font><font size="2" face="Arial"><br>
<br>
Thanks<br>
<br>
-- Carlo</font><font size="3" face="Times New Roman"><br>
<br>
<br>
<br>
</font><img src="cid:1__=0ABBF4DADFE557808f9e8a93df938@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="Arial">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="1" color="#5F5F5F" face="Arial"><br>
<br>
From: </font><font size="1" face="Arial">Sunita Chandrasekaran <</font><a href="mailto:sunita@cs.uh.edu" target="_blank"><font size="1" color="#0000FF" face="Arial"><u>sunita@cs.uh.edu</u></font></a><font size="1" face="Arial">></font><font size="1" color="#5F5F5F" face="Arial"><br>
To: </font><font size="1" face="Arial">Carlo Bertolli/Watson/IBM@IBMUS</font><font size="1" color="#5F5F5F" face="Arial"><br>
Cc: </font><font size="1" face="Arial">"</font><a href="mailto:openmp-dev@dcs-maillist2.engr.illinois.edu" target="_blank"><font size="1" color="#0000FF" face="Arial"><u>openmp-dev@dcs-maillist2.engr.illinois.edu</u></font></a><font size="1" face="Arial">" <</font><a href="mailto:openmp-dev@dcs-maillist2.engr.illinois.edu" target="_blank"><font size="1" color="#0000FF" face="Arial"><u>openmp-dev@dcs-maillist2.engr.illinois.edu</u></font></a><font size="1" face="Arial">>, Millad Ghane <</font><a href="mailto:millad.mg@gmail.com" target="_blank"><font size="1" color="#0000FF" face="Arial"><u>millad.mg@gmail.com</u></font></a><font size="1" face="Arial">></font><font size="1" color="#5F5F5F" face="Arial"><br>
Date: </font><font size="1" face="Arial">05/08/2015 03:58 PM</font><font size="1" color="#5F5F5F" face="Arial"><br>
Subject: </font><font size="1" face="Arial">Re: [Openmp-dev] testsuite script error</font><font size="1" color="#5F5F5F" face="Arial"><br>
Sent by: </font><a href="mailto:sunisg123@gmail.com" target="_blank"><font size="1" color="#0000FF" face="Arial"><u>sunisg123@gmail.com</u></font></a><br>
<hr width="100%" size="2" align="left" noshade><br>
<font size="3" face="Times New Roman"><br>
<br>
<br>
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="Times New Roman"><u>cbertol@us.ibm.com</u></font></a><font size="3" face="Times New Roman">> wrote: </font>
<ul style="padding-left: 36pt"><font size="2" face="Arial">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="Arial"><u>http://llvm.org/git/openmp.git</u></font></a><font size="2" face="Arial"> (fetch)<br>
<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="Arial"><u>template_parser_c.pl</u></font></a><font size="2" face="Arial"> 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="Arial"><u>template_parser_c.pl</u></font></a><font size="2" face="Arial"> 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?<br>
<br>
<br>
Thanks</font><font size="2" color="#888888" face="Arial"><br>
<br>
-- Carlo</font><font size="3" face="Times New Roman"><br>
<br>
_______________________________________________<br>
Openmp-dev mailing list</font><font size="3" color="#0000FF" face="Times New Roman"><u><br>
</u></font><a href="mailto:Openmp-dev@dcs-maillist2.engr.illinois.edu" target="_blank"><font size="3" color="#0000FF" face="Times New Roman"><u>Openmp-dev@dcs-maillist2.engr.illinois.edu</u></font></a><font size="3" color="#0000FF" face="Times New Roman"><u><br>
</u></font><a href="http://lists.cs.uiuc.edu/mailman/listinfo/openmp-dev" target="_blank"><font size="3" color="#0000FF" face="Times New Roman"><u>http://lists.cs.uiuc.edu/mailman/listinfo/openmp-dev</u></font></a></ul>
<font size="3" face="Times New Roman"> </font></ul>
<font size="3" face="Times New Roman"> </font></ul>
<font size="3" face="Times New Roman"> </font></ul>
<font size="3" face="Times New Roman"> </font><br>
<br>
</body></html>