<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hi Raghav,</div>
<div><br>
</div>
<div>This looks like a mismatch in ROSS and CODES versions - random number generation went through a few changes on both ends in the last months. Are you using a newer revision of CODES with an older revision of ROSS? What are the commit hashes of codes-base
 and codes-net (or are you using the 0.3.0 release tarballs)?</div>
<div><br>
</div>
<div>I'm afraid there aren't any video tutorials – the GETTING_STARTED doc, the best practices LaTeX doc, and the example program are the best we have currently.</div>
<div><br>
</div>
<div>John</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Raghav Kapoor <<a href="mailto:rkapoor7@hawk.iit.edu">rkapoor7@hawk.iit.edu</a>><br>
<span style="font-weight:bold">Date: </span>Friday, February 27, 2015 at 1:51 PM<br>
<span style="font-weight:bold">To: </span>John Jenkins <<a href="mailto:jenkins@mcs.anl.gov">jenkins@mcs.anl.gov</a>><br>
<span style="font-weight:bold">Cc: </span>Ke Wang <<a href="mailto:kwang22@hawk.iit.edu">kwang22@hawk.iit.edu</a>>, "<a href="mailto:codes-ross-users@lists.mcs.anl.gov">codes-ross-users@lists.mcs.anl.gov</a>" <<a href="mailto:codes-ross-users@lists.mcs.anl.gov">codes-ross-users@lists.mcs.anl.gov</a>>,
 Sughosh Divanji <<a href="mailto:sdivanji@hawk.iit.edu">sdivanji@hawk.iit.edu</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [codes-ross-users] Help needed in running codes.<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi Jonathon, 
<div>                                Thanks for reply. I have built the example in doc/example directory.</div>
<div><br>
</div>
<div>However when i run it, i get the following:</div>
<div><b><br>
</b></div>
<div>
<div><b>raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross1/codes-base/doc/example$ ./example --codes-config=./example.conf</b></div>
<div><b>./example --codes-config=./example.conf </b></div>
<div><b><br>
</b></div>
<div><b>Fri Feb 27 13:48:37 2015</b></div>
<div><b><br>
</b></div>
<div><b>ROSS Revision: c04babe513a0c570ce64db9b5dd939324b118311</b></div>
<div><b><br>
</b></div>
<div><b>tw_net_start: Found world size to be 1 </b></div>
<div><b>node: 0: error: /home/raghav/DIC_PROJECT/codesross1/ROSS/ross/rand-clcg4.c:289: RNG max streams exceeded: 2 > 1</b></div>
<div><b><br>
</b></div>
<div><b>application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0</b></div>
</div>
<div><b><br>
</b></div>
<div>I tried with mpirun as well.</div>
<div><br>
</div>
<div>
<div>raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross1/codes-base/doc/example$ mpirun -np 1 ./example --codes-config=./example.conf</div>
<div>./example --codes-config=./example.conf </div>
<div><br>
</div>
<div>Fri Feb 27 13:49:37 2015</div>
<div><br>
</div>
<div>ROSS Revision: c04babe513a0c570ce64db9b5dd939324b118311</div>
<div><br>
</div>
<div>tw_net_start: Found world size to be 1 </div>
<div>node: 0: error: /home/raghav/DIC_PROJECT/codesross1/ROSS/ross/rand-clcg4.c:289: RNG max streams exceeded: 2 > 1</div>
<div><br>
</div>
<div>application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0</div>
<div><br>
</div>
<div>===================================================================================</div>
<div>=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES</div>
<div>=   EXIT CODE: 1</div>
<div>=   CLEANING UP REMAINING PROCESSES</div>
<div>=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES</div>
<div>===================================================================================</div>
</div>
<div><br>
</div>
<div>I think there is some issue while running.</div>
<div><br>
</div>
<div>Can you explain how to run it. </div>
<div><br>
</div>
<div>Also is there any video tutorial on ROSS or codes through which we can understand these two frameworks better?</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Raghav</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px; max-height:0px;" src="https://mailfoogae.appspot.com/t?sender=acmthcG9vcjdAaGF3ay5paXQuZWR1&type=zerocontent&guid=63579678-ddcc-4e0b-804f-3d691ac79919"><font color="#ffffff" size="1">ᐧ</font></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Feb 27, 2015 at 11:05 AM, Jenkins, Jonathan P. <span dir="ltr">
<<a href="mailto:jenkins@mcs.anl.gov" target="_blank">jenkins@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>
<div>FYI, the CC fix was just put into ROSS (thanks Elsa!), so if you wish to build with recent versions of ROSS/CODES, you can. The master branch of the CODES repositories are currently undergoing some changes, though, particularly with respect to the workload
 components.</div>
<div><br>
</div>
<div>John</div>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span><Jenkins>, John Jenkins <<a href="mailto:jenkins@mcs.anl.gov" target="_blank">jenkins@mcs.anl.gov</a>><br>
<span style="font-weight:bold">Date: </span>Friday, February 27, 2015 at 10:28 AM<br>
<span style="font-weight:bold">To: </span>Raghav Kapoor <<a href="mailto:rkapoor7@hawk.iit.edu" target="_blank">rkapoor7@hawk.iit.edu</a>><br>
<span style="font-weight:bold">Cc: </span>Ke Wang <<a href="mailto:kwang22@hawk.iit.edu" target="_blank">kwang22@hawk.iit.edu</a>>, "<a href="mailto:codes-ross-users@lists.mcs.anl.gov" target="_blank">codes-ross-users@lists.mcs.anl.gov</a>" <<a href="mailto:codes-ross-users@lists.mcs.anl.gov" target="_blank">codes-ross-users@lists.mcs.anl.gov</a>>,
 Sughosh Divanji <<a href="mailto:sdivanji@hawk.iit.edu" target="_blank">sdivanji@hawk.iit.edu</a>>
<div>
<div class="h5"><br>
<span style="font-weight:bold">Subject: </span>Re: [codes-ross-users] Help needed in running codes.<br>
</div>
</div>
</div>
<div>
<div class="h5">
<div><br>
</div>
<div>
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>Hi Raghav,</div>
<div><br>
</div>
<div>A recent revision of ROSS seems to have broken the ross-config script (I've filed the bug with the ROSS folks). I would suggest for the time being either a) change CC to mpicc in the Makefile, or b) build the released version of CODES (0.3.0) as well as
 the ROSS revision listed in the codes-base INSTALL document. Assuming you have done a) for the moment…</div>
<div><br>
</div>
<div>Please make sure that you are setting the CODESBASE, CODESNET, and ROSS environment variables correctly. They should be pointing to the directory you specified as your install prefix (./configure --prefix=/path/to/install for codes-base, codes-net, cmake
 -DCMAKE_INSTALL_PREFIX=/path/to/install for ROSS). I have verified correct behavior in both the current revisions of codes/ROSS with the CC fix, as well as in the release and ROSS revision c04babe. No changes to the headers need to be made.</div>
<div><br>
</div>
<div>Additionally, the undefined references you are getting are a result of the lack of the application of -lcodes-base and -lcodes–net in your compilation command (these are set in the Makefile via LDLIBS).</div>
<div><br>
</div>
<div>John</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>Raghav Kapoor <<a href="mailto:rkapoor7@hawk.iit.edu" target="_blank">rkapoor7@hawk.iit.edu</a>><br>
<span style="font-weight:bold">Date: </span>Friday, February 27, 2015 at 9:45 AM<br>
<span style="font-weight:bold">To: </span>John Jenkins <<a href="mailto:jenkins@mcs.anl.gov" target="_blank">jenkins@mcs.anl.gov</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:codes-ross-users@lists.mcs.anl.gov" target="_blank">codes-ross-users@lists.mcs.anl.gov</a>" <<a href="mailto:codes-ross-users@lists.mcs.anl.gov" target="_blank">codes-ross-users@lists.mcs.anl.gov</a>>,
 Ke Wang <<a href="mailto:kwang22@hawk.iit.edu" target="_blank">kwang22@hawk.iit.edu</a>>, Sughosh Divanji <<a href="mailto:sdivanji@hawk.iit.edu" target="_blank">sdivanji@hawk.iit.edu</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [codes-ross-users] Help needed in running codes.<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi Jonathon, 
<div>                        First, I would like to bring to your attention that Makefile to compile example.c is not correct. There is no compiler specified like gcc or mpicc.</div>
<div><br>
</div>
<div>Even after giving the correct dependencies and include files and compiler, if i run this command,</div>
<div><br>
</div>
<div>raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross/codes-base/doc/example$ </div>
<div><br>
</div>
<div><b>mpicc -I/home/raghavDIC_PROJECT/codesross/codes-base/install/include -I/home/raghavDIC_PROJECT/codesross/codes-net/install/include/codes -L/home/raghav/DIC_PROJECT/codesross/ROSS/install/lib -L/home/raghavDIC_PROJECT/codesross/codes-base/install/lib
 -L/home/raghavDIC_PROJECT/codesross/codes-net/install/lib  example.c  -lROSS -lm -L/home/raghav/DIC_PROJECT/codesross/codes-net/install/lib/codes-net -L/home/raghav/DIC_PROJECT/codesross/codes-base/install/codes-base  -o example</b><br>
</div>
<div><br>
</div>
<div>1. I had to change in many .h files to set the correct path etc. </div>
<div><br>
</div>
<div>Second after using the above command, I get lot of undefined references like</div>
<div><br>
</div>
<div>
<div>/tmp/ccle6WVw.o: In function `get_next_server':</div>
<div>/home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:403: undefined reference to `codes_mapping_get_lp_info'</div>
<div>/home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:408: undefined reference to `codes_mapping_get_group_reps'</div>
<div>/home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:411: undefined reference to `codes_mapping_get_lp_id'</div>
<div>/tmp/ccle6WVw.o: In function `handle_ack_rev_event':</div>
</div>
<div><br>
</div>
<div>The include files are there as i have specified in the above command.</div>
<div><br>
</div>
<div>Not sure what is going wrong.</div>
<div><br>
</div>
<div>Can you help.</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Raghav</div>
<div><br>
</div>
<div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px;max-height:0px" src="https://mailfoogae.appspot.com/t?sender=acmthcG9vcjdAaGF3ay5paXQuZWR1&type=zerocontent&guid=81e8248b-e760-4f97-b774-032415c11b2e"><font color="#ffffff" size="1">ᐧ</font></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Feb 26, 2015 at 8:37 PM, Sughosh Divanji <span dir="ltr">
<<a href="mailto:sdivanji@hawk.iit.edu" target="_blank">sdivanji@hawk.iit.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Jonathan,
<div><br>
</div>
<div>Thanks for the info. I have setup <span style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;">CODESBASE,</span><span style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;">CODESNET and </span><span style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;">ROSS
 environment variables and tried to run example.c. However, compiling is failing because of the following reason.</span></div>
<div><span style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif;"><br>
</span></div>
<div>
<div><font color="#000000" face="Calibri,sans-serif">sughosh@sughosh-Lenovo-G50-45:~/Desktop/IITC/CS597/codes-base/doc/example$ make</font></div>
<div><font color="#000000" face="Calibri,sans-serif">make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found</font></div>
<div><font color="#000000" face="Calibri,sans-serif">make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found</font></div>
<div><font color="#000000" face="Calibri,sans-serif">make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found</font></div>
<div><font color="#000000" face="Calibri,sans-serif">make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found</font></div>
<div><font color="#000000" face="Calibri,sans-serif">I/home/sughosh/Desktop/IITC/CS597/codes-base/include -I/home/sughosh/Desktop/IITC/CS597/codes-net/include/codes  -L/home/sughosh/Desktop/IITC/CS597/codes-base/lib -L/home/sughosh/Desktop/IITC/CS597/codes-net/lib
  example.c   -lcodes-net -lcodes-base  -o example</font></div>
<div><font color="#000000" face="Calibri,sans-serif">make: I/home/sughosh/Desktop/IITC/CS597/codes-base/include: Command not found</font></div>
<div><font color="#000000" face="Calibri,sans-serif">make: [example] Error 127 (ignored)</font></div>
</div>
<div><font color="#000000" face="Calibri,sans-serif"><br>
</font></div>
<div><font color="#000000" face="Calibri,sans-serif">bin directory is not prsent in my ROSS installation and the same with other errors as well. </font></div>
<div><font color="#000000" face="Calibri,sans-serif"><br>
</font></div>
<div><font color="#000000" face="Calibri,sans-serif">I tried compiling codes-base 0.3.0 but it was failing at </font>src/util/codes_mapping.c:483:51 as I have indicated in my earlier mail. So, I downloaded the source code from the git link mentioned in Developer
 Access page, <a href="http://git.mcs.anl.gov/radix/codes-base" target="_blank">http://git.mcs.anl.gov/radix/codes-base</a> and <span style="color: rgb(51, 51, 51); font-family: Georgia, 'Bitstream Charter', serif; line-height: 24px;"><a href="http://git.mcs.anl.gov/radix/codes-net" target="_blank">git.mcs.anl.gov/radix/codes-net</a></span> and
 was able to compile codes-base and codes-net succesfully. For ROSS I have downloaded source code from <a href="https://github.com/carothersc/ROSS" target="_blank">https://github.com/carothersc/ROSS</a>.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Sughosh</div>
<div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px;max-height:0px" src="https://mailfoogae.appspot.com/t?sender=ac2RpdmFuamlAaGF3ay5paXQuZWR1&type=zerocontent&guid=61f14e96-67f4-4a7e-8d58-e6881ace23a8"><font color="#ffffff" size="1">ᐧ</font></div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Feb 26, 2015 at 8:51 AM, Jenkins, Jonathan P. <span dir="ltr">
<<a href="mailto:jenkins@mcs.anl.gov" target="_blank">jenkins@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-family:Calibri,sans-serif">
<div>Hi Sughosh,</div>
<div><br>
</div>
<div>Instructions to build CODES (codes-base and codes-net repositories) can be found in their respective INSTALL documents. An example program, requiring codes-base and codes-net, can be found in codes-base/doc/example. To build it, you need to specify the
 paths to the codes installs via the CODESBASE, CODESNET, and ROSS environment variables. Details of the program as well as the CODES components utilized by the program can be found in the GETTING_STARTED document.</div>
<div><br>
</div>
<div>Additionally, what version / revision of ROSS/CODES are you using? We're in the midst of some changes on the master branches, so it's probably safer to start with the 0.3.0 releases with the ROSS revision specified in the INSTALL document.</div>
<div><br>
</div>
<div>John</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;text-align:left;color:black;border-width:1pt medium medium;border-style:solid none none;padding:3pt 0in 0in;border-top-color:rgb(181,196,223)">
<span style="font-weight:bold">From: </span>Sughosh Divanji <<a href="mailto:sdivanji@hawk.iit.edu" target="_blank">sdivanji@hawk.iit.edu</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, February 25, 2015 at 7:26 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:codes-ross-users@lists.mcs.anl.gov" target="_blank">codes-ross-users@lists.mcs.anl.gov</a>" <<a href="mailto:codes-ross-users@lists.mcs.anl.gov" target="_blank">codes-ross-users@lists.mcs.anl.gov</a>>,
 Raghav Kapoor <<a href="mailto:rkapoor7@hawk.iit.edu" target="_blank">rkapoor7@hawk.iit.edu</a>>, Ke Wang <<a href="mailto:kwang22@hawk.iit.edu" target="_blank">kwang22@hawk.iit.edu</a>><br>
<span style="font-weight:bold">Subject: </span>[codes-ross-users] Help needed in running codes.<br>
</div>
<div>
<div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>I am trying to use codes for my project and I am new to codes. I have installed codes. Can you provide me a sample hello-world program and instructions on how to run it. I haven't been able to find documentation on how to run the programs and also make
 files seem to be broken.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Sughosh</div>
</div>
</div>
</div>
</div>
</div>
</span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span></div>
</div>
</div>
</div>
</span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>