Help needed in running codes.
Hi, 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. Thanks, Sughosh ᐧ
Hi Sughosh, 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. 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. John From: Sughosh Divanji <[email protected]<mailto:[email protected]>> Date: Wednesday, February 25, 2015 at 7:26 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Raghav Kapoor <[email protected]<mailto:[email protected]>>, Ke Wang <[email protected]<mailto:[email protected]>> Subject: [codes-ross-users] Help needed in running codes. Hi, 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. Thanks, Sughosh [https://mailfoogae.appspot.com/t?sender=ac2RpdmFuamlAaGF3ay5paXQuZWR1&type=zerocontent&guid=adac9d11-7eb1-4e92-9a7d-3d8934318039]ᐧ
Hi Jonathan, Thanks for the info. I have setup CODESBASE,CODESNET and ROSS environment variables and tried to run example.c. However, compiling is failing because of the following reason. sughosh@sughosh-Lenovo-G50-45:~/Desktop/IITC/CS597/codes-base/doc/example$ make make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found 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 make: I/home/sughosh/Desktop/IITC/CS597/codes-base/include: Command not found make: [example] Error 127 (ignored) bin directory is not prsent in my ROSS installation and the same with other errors as well. I tried compiling codes-base 0.3.0 but it was failing at 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, http://git.mcs.anl.gov/radix/codes-base and git.mcs.anl.gov/radix/codes-net and was able to compile codes-base and codes-net succesfully. For ROSS I have downloaded source code from https://github.com/carothersc/ROSS. Thanks, Sughosh ᐧ On Thu, Feb 26, 2015 at 8:51 AM, Jenkins, Jonathan P. <[email protected]> wrote:
Hi Sughosh,
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.
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.
John
From: Sughosh Divanji <[email protected]> Date: Wednesday, February 25, 2015 at 7:26 PM To: "[email protected]" < [email protected]>, Raghav Kapoor <[email protected]>, Ke Wang <[email protected]> Subject: [codes-ross-users] Help needed in running codes.
Hi,
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.
Thanks, Sughosh
Hi Sughosh, When you compiled the 0.3.0 release, did you use the corresponding revision of ROSS ("git checkout c04babe") as indicated in the codes-base INSTALL document? If not, doing so should fix the compilation problem (missing variable) you had before. Additionally, from your command line output, it looks like you set the paths to the top-level source directory of the projects, rather than their installation directories. Installation of sources using the autotools or cmake (i.e. where the results of "make install" go) are controlled by the "prefix" variable (specified with the "--prefix" option when running configure on the CODES sources, "-DCMAKE_INSTALL_PREFIX" when running cmake with ROSS). You should set the environment variables with respect to the prefix. Let me know if you have additional questions. John From: Sughosh Divanji <[email protected]<mailto:[email protected]>> Date: Thursday, February 26, 2015 at 8:37 PM To: John Jenkins <[email protected]<mailto:[email protected]>> Cc: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Raghav Kapoor <[email protected]<mailto:[email protected]>>, Ke Wang <[email protected]<mailto:[email protected]>> Subject: Re: [codes-ross-users] Help needed in running codes. Hi Jonathan, Thanks for the info. I have setup CODESBASE,CODESNET and ROSS environment variables and tried to run example.c. However, compiling is failing because of the following reason. sughosh@sughosh-Lenovo-G50-45:~/Desktop/IITC/CS597/codes-base/doc/example$ make make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found 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 make: I/home/sughosh/Desktop/IITC/CS597/codes-base/include: Command not found make: [example] Error 127 (ignored) bin directory is not prsent in my ROSS installation and the same with other errors as well. I tried compiling codes-base 0.3.0 but it was failing at 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, http://git.mcs.anl.gov/radix/codes-base and git.mcs.anl.gov/radix/codes-net<http://git.mcs.anl.gov/radix/codes-net> and was able to compile codes-base and codes-net succesfully. For ROSS I have downloaded source code from https://github.com/carothersc/ROSS. Thanks, Sughosh [https://mailfoogae.appspot.com/t?sender=ac2RpdmFuamlAaGF3ay5paXQuZWR1&type=zerocontent&guid=61f14e96-67f4-4a7e-8d58-e6881ace23a8]ᐧ On Thu, Feb 26, 2015 at 8:51 AM, Jenkins, Jonathan P. <[email protected]<mailto:[email protected]>> wrote: Hi Sughosh, 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. 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. John From: Sughosh Divanji <[email protected]<mailto:[email protected]>> Date: Wednesday, February 25, 2015 at 7:26 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Raghav Kapoor <[email protected]<mailto:[email protected]>>, Ke Wang <[email protected]<mailto:[email protected]>> Subject: [codes-ross-users] Help needed in running codes. Hi, 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. Thanks, Sughosh
Hi Jonathon, 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. Even after giving the correct dependencies and include files and compiler, if i run this command, raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross/codes-base/doc/example$ *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* 1. I had to change in many .h files to set the correct path etc. Second after using the above command, I get lot of undefined references like /tmp/ccle6WVw.o: In function `get_next_server': /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:403: undefined reference to `codes_mapping_get_lp_info' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:408: undefined reference to `codes_mapping_get_group_reps' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:411: undefined reference to `codes_mapping_get_lp_id' /tmp/ccle6WVw.o: In function `handle_ack_rev_event': The include files are there as i have specified in the above command. Not sure what is going wrong. Can you help. Regards, Raghav ᐧ On Thu, Feb 26, 2015 at 8:37 PM, Sughosh Divanji <[email protected]> wrote:
Hi Jonathan,
Thanks for the info. I have setup CODESBASE,CODESNET and ROSS environment variables and tried to run example.c. However, compiling is failing because of the following reason.
sughosh@sughosh-Lenovo-G50-45:~/Desktop/IITC/CS597/codes-base/doc/example$ make make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found 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 make: I/home/sughosh/Desktop/IITC/CS597/codes-base/include: Command not found make: [example] Error 127 (ignored)
bin directory is not prsent in my ROSS installation and the same with other errors as well.
I tried compiling codes-base 0.3.0 but it was failing at 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, http://git.mcs.anl.gov/radix/codes-base and git.mcs.anl.gov/radix/codes-net and was able to compile codes-base and codes-net succesfully. For ROSS I have downloaded source code from https://github.com/carothersc/ROSS.
Thanks, Sughosh ᐧ
On Thu, Feb 26, 2015 at 8:51 AM, Jenkins, Jonathan P. <[email protected]
wrote:
Hi Sughosh,
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.
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.
John
From: Sughosh Divanji <[email protected]> Date: Wednesday, February 25, 2015 at 7:26 PM To: "[email protected]" < [email protected]>, Raghav Kapoor <[email protected]>, Ke Wang <[email protected]> Subject: [codes-ross-users] Help needed in running codes.
Hi,
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.
Thanks, Sughosh
Hi Raghav, 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… 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. 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). John From: Raghav Kapoor <[email protected]<mailto:[email protected]>> Date: Friday, February 27, 2015 at 9:45 AM To: John Jenkins <[email protected]<mailto:[email protected]>> Cc: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Ke Wang <[email protected]<mailto:[email protected]>>, Sughosh Divanji <[email protected]<mailto:[email protected]>> Subject: Re: [codes-ross-users] Help needed in running codes. Hi Jonathon, 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. Even after giving the correct dependencies and include files and compiler, if i run this command, raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross/codes-base/doc/example$ 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 1. I had to change in many .h files to set the correct path etc. Second after using the above command, I get lot of undefined references like /tmp/ccle6WVw.o: In function `get_next_server': /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:403: undefined reference to `codes_mapping_get_lp_info' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:408: undefined reference to `codes_mapping_get_group_reps' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:411: undefined reference to `codes_mapping_get_lp_id' /tmp/ccle6WVw.o: In function `handle_ack_rev_event': The include files are there as i have specified in the above command. Not sure what is going wrong. Can you help. Regards, Raghav [https://mailfoogae.appspot.com/t?sender=acmthcG9vcjdAaGF3ay5paXQuZWR1&type=zerocontent&guid=81e8248b-e760-4f97-b774-032415c11b2e]ᐧ On Thu, Feb 26, 2015 at 8:37 PM, Sughosh Divanji <[email protected]<mailto:[email protected]>> wrote: Hi Jonathan, Thanks for the info. I have setup CODESBASE,CODESNET and ROSS environment variables and tried to run example.c. However, compiling is failing because of the following reason. sughosh@sughosh-Lenovo-G50-45:~/Desktop/IITC/CS597/codes-base/doc/example$ make make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found 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 make: I/home/sughosh/Desktop/IITC/CS597/codes-base/include: Command not found make: [example] Error 127 (ignored) bin directory is not prsent in my ROSS installation and the same with other errors as well. I tried compiling codes-base 0.3.0 but it was failing at 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, http://git.mcs.anl.gov/radix/codes-base and git.mcs.anl.gov/radix/codes-net<http://git.mcs.anl.gov/radix/codes-net> and was able to compile codes-base and codes-net succesfully. For ROSS I have downloaded source code from https://github.com/carothersc/ROSS. Thanks, Sughosh [https://mailfoogae.appspot.com/t?sender=ac2RpdmFuamlAaGF3ay5paXQuZWR1&type=zerocontent&guid=61f14e96-67f4-4a7e-8d58-e6881ace23a8]ᐧ On Thu, Feb 26, 2015 at 8:51 AM, Jenkins, Jonathan P. <[email protected]<mailto:[email protected]>> wrote: Hi Sughosh, 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. 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. John From: Sughosh Divanji <[email protected]<mailto:[email protected]>> Date: Wednesday, February 25, 2015 at 7:26 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Raghav Kapoor <[email protected]<mailto:[email protected]>>, Ke Wang <[email protected]<mailto:[email protected]>> Subject: [codes-ross-users] Help needed in running codes. Hi, 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. Thanks, Sughosh
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. John From: <Jenkins>, John Jenkins <[email protected]<mailto:[email protected]>> Date: Friday, February 27, 2015 at 10:28 AM To: Raghav Kapoor <[email protected]<mailto:[email protected]>> Cc: Ke Wang <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Sughosh Divanji <[email protected]<mailto:[email protected]>> Subject: Re: [codes-ross-users] Help needed in running codes. Hi Raghav, 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… 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. 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). John From: Raghav Kapoor <[email protected]<mailto:[email protected]>> Date: Friday, February 27, 2015 at 9:45 AM To: John Jenkins <[email protected]<mailto:[email protected]>> Cc: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Ke Wang <[email protected]<mailto:[email protected]>>, Sughosh Divanji <[email protected]<mailto:[email protected]>> Subject: Re: [codes-ross-users] Help needed in running codes. Hi Jonathon, 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. Even after giving the correct dependencies and include files and compiler, if i run this command, raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross/codes-base/doc/example$ 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 1. I had to change in many .h files to set the correct path etc. Second after using the above command, I get lot of undefined references like /tmp/ccle6WVw.o: In function `get_next_server': /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:403: undefined reference to `codes_mapping_get_lp_info' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:408: undefined reference to `codes_mapping_get_group_reps' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:411: undefined reference to `codes_mapping_get_lp_id' /tmp/ccle6WVw.o: In function `handle_ack_rev_event': The include files are there as i have specified in the above command. Not sure what is going wrong. Can you help. Regards, Raghav [https://mailfoogae.appspot.com/t?sender=acmthcG9vcjdAaGF3ay5paXQuZWR1&type=zerocontent&guid=81e8248b-e760-4f97-b774-032415c11b2e]ᐧ On Thu, Feb 26, 2015 at 8:37 PM, Sughosh Divanji <[email protected]<mailto:[email protected]>> wrote: Hi Jonathan, Thanks for the info. I have setup CODESBASE,CODESNET and ROSS environment variables and tried to run example.c. However, compiling is failing because of the following reason. sughosh@sughosh-Lenovo-G50-45:~/Desktop/IITC/CS597/codes-base/doc/example$ make make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found 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 make: I/home/sughosh/Desktop/IITC/CS597/codes-base/include: Command not found make: [example] Error 127 (ignored) bin directory is not prsent in my ROSS installation and the same with other errors as well. I tried compiling codes-base 0.3.0 but it was failing at 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, http://git.mcs.anl.gov/radix/codes-base and git.mcs.anl.gov/radix/codes-net<http://git.mcs.anl.gov/radix/codes-net> and was able to compile codes-base and codes-net succesfully. For ROSS I have downloaded source code from https://github.com/carothersc/ROSS. Thanks, Sughosh [https://mailfoogae.appspot.com/t?sender=ac2RpdmFuamlAaGF3ay5paXQuZWR1&type=zerocontent&guid=61f14e96-67f4-4a7e-8d58-e6881ace23a8]ᐧ On Thu, Feb 26, 2015 at 8:51 AM, Jenkins, Jonathan P. <[email protected]<mailto:[email protected]>> wrote: Hi Sughosh, 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. 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. John From: Sughosh Divanji <[email protected]<mailto:[email protected]>> Date: Wednesday, February 25, 2015 at 7:26 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Raghav Kapoor <[email protected]<mailto:[email protected]>>, Ke Wang <[email protected]<mailto:[email protected]>> Subject: [codes-ross-users] Help needed in running codes. Hi, 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. Thanks, Sughosh
Hi Jonathon, Thanks for reply. I have built the example in doc/example directory. However when i run it, i get the following: *raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross1/codes-base/doc/example$ ./example --codes-config=./example.conf* *./example --codes-config=./example.conf * *Fri Feb 27 13:48:37 2015* *ROSS Revision: c04babe513a0c570ce64db9b5dd939324b118311* *tw_net_start: Found world size to be 1 * *node: 0: error: /home/raghav/DIC_PROJECT/codesross1/ROSS/ross/rand-clcg4.c:289: RNG max streams exceeded: 2 > 1* *application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0* I tried with mpirun as well. raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross1/codes-base/doc/example$ mpirun -np 1 ./example --codes-config=./example.conf ./example --codes-config=./example.conf Fri Feb 27 13:49:37 2015 ROSS Revision: c04babe513a0c570ce64db9b5dd939324b118311 tw_net_start: Found world size to be 1 node: 0: error: /home/raghav/DIC_PROJECT/codesross1/ROSS/ross/rand-clcg4.c:289: RNG max streams exceeded: 2 > 1 application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0 =================================================================================== = BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES = EXIT CODE: 1 = CLEANING UP REMAINING PROCESSES = YOU CAN IGNORE THE BELOW CLEANUP MESSAGES =================================================================================== I think there is some issue while running. Can you explain how to run it. Also is there any video tutorial on ROSS or codes through which we can understand these two frameworks better? Thanks, Raghav ᐧ On Fri, Feb 27, 2015 at 11:05 AM, Jenkins, Jonathan P. <[email protected]> wrote:
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.
John
From: <Jenkins>, John Jenkins <[email protected]> Date: Friday, February 27, 2015 at 10:28 AM To: Raghav Kapoor <[email protected]> Cc: Ke Wang <[email protected]>, "[email protected]" < [email protected]>, Sughosh Divanji < [email protected]>
Subject: Re: [codes-ross-users] Help needed in running codes.
Hi Raghav,
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…
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.
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).
John
From: Raghav Kapoor <[email protected]> Date: Friday, February 27, 2015 at 9:45 AM To: John Jenkins <[email protected]> Cc: "[email protected]" < [email protected]>, Ke Wang <[email protected]>, Sughosh Divanji <[email protected]> Subject: Re: [codes-ross-users] Help needed in running codes.
Hi Jonathon, 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.
Even after giving the correct dependencies and include files and compiler, if i run this command,
raghav@raghav-Lenovo-G505s :~/DIC_PROJECT/codesross/codes-base/doc/example$
*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*
1. I had to change in many .h files to set the correct path etc.
Second after using the above command, I get lot of undefined references like
/tmp/ccle6WVw.o: In function `get_next_server': /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:403: undefined reference to `codes_mapping_get_lp_info' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:408: undefined reference to `codes_mapping_get_group_reps' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:411: undefined reference to `codes_mapping_get_lp_id' /tmp/ccle6WVw.o: In function `handle_ack_rev_event':
The include files are there as i have specified in the above command.
Not sure what is going wrong.
Can you help.
Regards,
Raghav
ᐧ
On Thu, Feb 26, 2015 at 8:37 PM, Sughosh Divanji <[email protected]> wrote:
Hi Jonathan,
Thanks for the info. I have setup CODESBASE,CODESNET and ROSS environment variables and tried to run example.c. However, compiling is failing because of the following reason.
sughosh@sughosh-Lenovo-G50-45:~/Desktop/IITC/CS597/codes-base/doc/example$ make make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found 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 make: I/home/sughosh/Desktop/IITC/CS597/codes-base/include: Command not found make: [example] Error 127 (ignored)
bin directory is not prsent in my ROSS installation and the same with other errors as well.
I tried compiling codes-base 0.3.0 but it was failing at 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, http://git.mcs.anl.gov/radix/codes-base and git.mcs.anl.gov/radix/codes-net and was able to compile codes-base and codes-net succesfully. For ROSS I have downloaded source code from https://github.com/carothersc/ROSS.
Thanks, Sughosh ᐧ
On Thu, Feb 26, 2015 at 8:51 AM, Jenkins, Jonathan P. < [email protected]> wrote:
Hi Sughosh,
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.
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.
John
From: Sughosh Divanji <[email protected]> Date: Wednesday, February 25, 2015 at 7:26 PM To: "[email protected]" < [email protected]>, Raghav Kapoor < [email protected]>, Ke Wang <[email protected]> Subject: [codes-ross-users] Help needed in running codes.
Hi,
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.
Thanks, Sughosh
Hi Raghav, 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)? 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. John From: Raghav Kapoor <[email protected]<mailto:[email protected]>> Date: Friday, February 27, 2015 at 1:51 PM To: John Jenkins <[email protected]<mailto:[email protected]>> Cc: Ke Wang <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Sughosh Divanji <[email protected]<mailto:[email protected]>> Subject: Re: [codes-ross-users] Help needed in running codes. Hi Jonathon, Thanks for reply. I have built the example in doc/example directory. However when i run it, i get the following: raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross1/codes-base/doc/example$ ./example --codes-config=./example.conf ./example --codes-config=./example.conf Fri Feb 27 13:48:37 2015 ROSS Revision: c04babe513a0c570ce64db9b5dd939324b118311 tw_net_start: Found world size to be 1 node: 0: error: /home/raghav/DIC_PROJECT/codesross1/ROSS/ross/rand-clcg4.c:289: RNG max streams exceeded: 2 > 1 application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0 I tried with mpirun as well. raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross1/codes-base/doc/example$ mpirun -np 1 ./example --codes-config=./example.conf ./example --codes-config=./example.conf Fri Feb 27 13:49:37 2015 ROSS Revision: c04babe513a0c570ce64db9b5dd939324b118311 tw_net_start: Found world size to be 1 node: 0: error: /home/raghav/DIC_PROJECT/codesross1/ROSS/ross/rand-clcg4.c:289: RNG max streams exceeded: 2 > 1 application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0 =================================================================================== = BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES = EXIT CODE: 1 = CLEANING UP REMAINING PROCESSES = YOU CAN IGNORE THE BELOW CLEANUP MESSAGES =================================================================================== I think there is some issue while running. Can you explain how to run it. Also is there any video tutorial on ROSS or codes through which we can understand these two frameworks better? Thanks, Raghav [https://mailfoogae.appspot.com/t?sender=acmthcG9vcjdAaGF3ay5paXQuZWR1&type=zerocontent&guid=63579678-ddcc-4e0b-804f-3d691ac79919]ᐧ On Fri, Feb 27, 2015 at 11:05 AM, Jenkins, Jonathan P. <[email protected]<mailto:[email protected]>> wrote: 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. John From: <Jenkins>, John Jenkins <[email protected]<mailto:[email protected]>> Date: Friday, February 27, 2015 at 10:28 AM To: Raghav Kapoor <[email protected]<mailto:[email protected]>> Cc: Ke Wang <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Sughosh Divanji <[email protected]<mailto:[email protected]>> Subject: Re: [codes-ross-users] Help needed in running codes. Hi Raghav, 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… 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. 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). John From: Raghav Kapoor <[email protected]<mailto:[email protected]>> Date: Friday, February 27, 2015 at 9:45 AM To: John Jenkins <[email protected]<mailto:[email protected]>> Cc: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Ke Wang <[email protected]<mailto:[email protected]>>, Sughosh Divanji <[email protected]<mailto:[email protected]>> Subject: Re: [codes-ross-users] Help needed in running codes. Hi Jonathon, 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. Even after giving the correct dependencies and include files and compiler, if i run this command, raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross/codes-base/doc/example$ 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 1. I had to change in many .h files to set the correct path etc. Second after using the above command, I get lot of undefined references like /tmp/ccle6WVw.o: In function `get_next_server': /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:403: undefined reference to `codes_mapping_get_lp_info' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:408: undefined reference to `codes_mapping_get_group_reps' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:411: undefined reference to `codes_mapping_get_lp_id' /tmp/ccle6WVw.o: In function `handle_ack_rev_event': The include files are there as i have specified in the above command. Not sure what is going wrong. Can you help. Regards, Raghav [https://mailfoogae.appspot.com/t?sender=acmthcG9vcjdAaGF3ay5paXQuZWR1&type=zerocontent&guid=81e8248b-e760-4f97-b774-032415c11b2e]ᐧ On Thu, Feb 26, 2015 at 8:37 PM, Sughosh Divanji <[email protected]<mailto:[email protected]>> wrote: Hi Jonathan, Thanks for the info. I have setup CODESBASE,CODESNET and ROSS environment variables and tried to run example.c. However, compiling is failing because of the following reason. sughosh@sughosh-Lenovo-G50-45:~/Desktop/IITC/CS597/codes-base/doc/example$ make make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found 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 make: I/home/sughosh/Desktop/IITC/CS597/codes-base/include: Command not found make: [example] Error 127 (ignored) bin directory is not prsent in my ROSS installation and the same with other errors as well. I tried compiling codes-base 0.3.0 but it was failing at 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, http://git.mcs.anl.gov/radix/codes-base and git.mcs.anl.gov/radix/codes-net<http://git.mcs.anl.gov/radix/codes-net> and was able to compile codes-base and codes-net succesfully. For ROSS I have downloaded source code from https://github.com/carothersc/ROSS. Thanks, Sughosh [https://mailfoogae.appspot.com/t?sender=ac2RpdmFuamlAaGF3ay5paXQuZWR1&type=zerocontent&guid=61f14e96-67f4-4a7e-8d58-e6881ace23a8]ᐧ On Thu, Feb 26, 2015 at 8:51 AM, Jenkins, Jonathan P. <[email protected]<mailto:[email protected]>> wrote: Hi Sughosh, 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. 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. John From: Sughosh Divanji <[email protected]<mailto:[email protected]>> Date: Wednesday, February 25, 2015 at 7:26 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Raghav Kapoor <[email protected]<mailto:[email protected]>>, Ke Wang <[email protected]<mailto:[email protected]>> Subject: [codes-ross-users] Help needed in running codes. Hi, 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. Thanks, Sughosh
Hi Jonathan, For codes-base and codes-net, I used git repos: git clone git://git.mcs.anl.gov/radix/codes-base git clone git://git.mcs.anl.gov/radix/codes-net For ross, first i cloned the ROSS git repo, git clone http://github.com/carothersc/ROSS.git then i did git checkout c04babe Should I use the latest ROSS version for it to work correctly? Regards, Raghav ᐧ On Fri, Feb 27, 2015 at 2:04 PM, Jenkins, Jonathan P. <[email protected]> wrote:
Hi Raghav,
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)?
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.
John
From: Raghav Kapoor <[email protected]> Date: Friday, February 27, 2015 at 1:51 PM To: John Jenkins <[email protected]>
Cc: Ke Wang <[email protected]>, "[email protected]" < [email protected]>, Sughosh Divanji < [email protected]> Subject: Re: [codes-ross-users] Help needed in running codes.
Hi Jonathon, Thanks for reply. I have built the example in doc/example directory.
However when i run it, i get the following:
*raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross1/codes-base/doc/example$ ./example --codes-config=./example.conf* *./example --codes-config=./example.conf *
*Fri Feb 27 13:48:37 2015*
*ROSS Revision: c04babe513a0c570ce64db9b5dd939324b118311*
*tw_net_start: Found world size to be 1 * *node: 0: error: /home/raghav/DIC_PROJECT/codesross1/ROSS/ross/rand-clcg4.c:289: RNG max streams exceeded: 2 > 1*
*application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0*
I tried with mpirun as well.
raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross1/codes-base/doc/example$ mpirun -np 1 ./example --codes-config=./example.conf ./example --codes-config=./example.conf
Fri Feb 27 13:49:37 2015
ROSS Revision: c04babe513a0c570ce64db9b5dd939324b118311
tw_net_start: Found world size to be 1 node: 0: error: /home/raghav/DIC_PROJECT/codesross1/ROSS/ross/rand-clcg4.c:289: RNG max streams exceeded: 2 > 1
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
=================================================================================== = BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES = EXIT CODE: 1 = CLEANING UP REMAINING PROCESSES = YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
I think there is some issue while running.
Can you explain how to run it.
Also is there any video tutorial on ROSS or codes through which we can understand these two frameworks better?
Thanks,
Raghav
ᐧ
On Fri, Feb 27, 2015 at 11:05 AM, Jenkins, Jonathan P. < [email protected]> wrote:
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.
John
From: <Jenkins>, John Jenkins <[email protected]> Date: Friday, February 27, 2015 at 10:28 AM To: Raghav Kapoor <[email protected]> Cc: Ke Wang <[email protected]>, "[email protected]" <[email protected]>, Sughosh Divanji < [email protected]>
Subject: Re: [codes-ross-users] Help needed in running codes.
Hi Raghav,
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…
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.
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).
John
From: Raghav Kapoor <[email protected]> Date: Friday, February 27, 2015 at 9:45 AM To: John Jenkins <[email protected]> Cc: "[email protected]" < [email protected]>, Ke Wang <[email protected]>, Sughosh Divanji <[email protected]> Subject: Re: [codes-ross-users] Help needed in running codes.
Hi Jonathon, 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.
Even after giving the correct dependencies and include files and compiler, if i run this command,
raghav@raghav-Lenovo-G505s :~/DIC_PROJECT/codesross/codes-base/doc/example$
*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*
1. I had to change in many .h files to set the correct path etc.
Second after using the above command, I get lot of undefined references like
/tmp/ccle6WVw.o: In function `get_next_server': /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:403: undefined reference to `codes_mapping_get_lp_info' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:408: undefined reference to `codes_mapping_get_group_reps' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:411: undefined reference to `codes_mapping_get_lp_id' /tmp/ccle6WVw.o: In function `handle_ack_rev_event':
The include files are there as i have specified in the above command.
Not sure what is going wrong.
Can you help.
Regards,
Raghav
ᐧ
On Thu, Feb 26, 2015 at 8:37 PM, Sughosh Divanji <[email protected]> wrote:
Hi Jonathan,
Thanks for the info. I have setup CODESBASE,CODESNET and ROSS environment variables and tried to run example.c. However, compiling is failing because of the following reason.
sughosh@sughosh-Lenovo-G50-45:~/Desktop/IITC/CS597/codes-base/doc/example$ make make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found 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 make: I/home/sughosh/Desktop/IITC/CS597/codes-base/include: Command not found make: [example] Error 127 (ignored)
bin directory is not prsent in my ROSS installation and the same with other errors as well.
I tried compiling codes-base 0.3.0 but it was failing at 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, http://git.mcs.anl.gov/radix/codes-base and git.mcs.anl.gov/radix/codes-net and was able to compile codes-base and codes-net succesfully. For ROSS I have downloaded source code from https://github.com/carothersc/ROSS.
Thanks, Sughosh ᐧ
On Thu, Feb 26, 2015 at 8:51 AM, Jenkins, Jonathan P. < [email protected]> wrote:
Hi Sughosh,
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.
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.
John
From: Sughosh Divanji <[email protected]> Date: Wednesday, February 25, 2015 at 7:26 PM To: "[email protected]" < [email protected]>, Raghav Kapoor < [email protected]>, Ke Wang <[email protected]> Subject: [codes-ross-users] Help needed in running codes.
Hi,
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.
Thanks, Sughosh
Ah OK. So in general, it's recommended to either stick with releases (e.g., "git checkout v0.3.0" for codes-base, codes-net) with the ROSS hash listed in the INSTALL document, or work from the master branches in all three. Both projects are being actively developed, so changes in behavior between a snapshot and non-snapshot version can result in things like the RNG error you experienced earlier. John From: Raghav Kapoor <[email protected]<mailto:[email protected]>> Date: Friday, February 27, 2015 at 2:15 PM To: John Jenkins <[email protected]<mailto:[email protected]>> Cc: Ke Wang <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Sughosh Divanji <[email protected]<mailto:[email protected]>> Subject: Re: [codes-ross-users] Help needed in running codes. Hi Jonathan, For codes-base and codes-net, I used git repos: git clone git://git.mcs.anl.gov/radix/codes-base<http://git.mcs.anl.gov/radix/codes-base> git clone git://git.mcs.anl.gov/radix/codes-net<http://git.mcs.anl.gov/radix/codes-net> For ross, first i cloned the ROSS git repo, git clone http://github.com/carothersc/ROSS.git then i did git checkout c04babe Should I use the latest ROSS version for it to work correctly? Regards, Raghav [https://mailfoogae.appspot.com/t?sender=acmthcG9vcjdAaGF3ay5paXQuZWR1&type=zerocontent&guid=0cd944f3-25ed-409a-98df-e65ef9525e94]ᐧ On Fri, Feb 27, 2015 at 2:04 PM, Jenkins, Jonathan P. <[email protected]<mailto:[email protected]>> wrote: Hi Raghav, 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)? 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. John From: Raghav Kapoor <[email protected]<mailto:[email protected]>> Date: Friday, February 27, 2015 at 1:51 PM To: John Jenkins <[email protected]<mailto:[email protected]>> Cc: Ke Wang <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Sughosh Divanji <[email protected]<mailto:[email protected]>> Subject: Re: [codes-ross-users] Help needed in running codes. Hi Jonathon, Thanks for reply. I have built the example in doc/example directory. However when i run it, i get the following: raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross1/codes-base/doc/example$ ./example --codes-config=./example.conf ./example --codes-config=./example.conf Fri Feb 27 13:48:37 2015 ROSS Revision: c04babe513a0c570ce64db9b5dd939324b118311 tw_net_start: Found world size to be 1 node: 0: error: /home/raghav/DIC_PROJECT/codesross1/ROSS/ross/rand-clcg4.c:289: RNG max streams exceeded: 2 > 1 application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0 I tried with mpirun as well. raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross1/codes-base/doc/example$ mpirun -np 1 ./example --codes-config=./example.conf ./example --codes-config=./example.conf Fri Feb 27 13:49:37 2015 ROSS Revision: c04babe513a0c570ce64db9b5dd939324b118311 tw_net_start: Found world size to be 1 node: 0: error: /home/raghav/DIC_PROJECT/codesross1/ROSS/ross/rand-clcg4.c:289: RNG max streams exceeded: 2 > 1 application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0 =================================================================================== = BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES = EXIT CODE: 1 = CLEANING UP REMAINING PROCESSES = YOU CAN IGNORE THE BELOW CLEANUP MESSAGES =================================================================================== I think there is some issue while running. Can you explain how to run it. Also is there any video tutorial on ROSS or codes through which we can understand these two frameworks better? Thanks, Raghav [https://mailfoogae.appspot.com/t?sender=acmthcG9vcjdAaGF3ay5paXQuZWR1&type=zerocontent&guid=63579678-ddcc-4e0b-804f-3d691ac79919]ᐧ On Fri, Feb 27, 2015 at 11:05 AM, Jenkins, Jonathan P. <[email protected]<mailto:[email protected]>> wrote: 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. John From: <Jenkins>, John Jenkins <[email protected]<mailto:[email protected]>> Date: Friday, February 27, 2015 at 10:28 AM To: Raghav Kapoor <[email protected]<mailto:[email protected]>> Cc: Ke Wang <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Sughosh Divanji <[email protected]<mailto:[email protected]>> Subject: Re: [codes-ross-users] Help needed in running codes. Hi Raghav, 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… 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. 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). John From: Raghav Kapoor <[email protected]<mailto:[email protected]>> Date: Friday, February 27, 2015 at 9:45 AM To: John Jenkins <[email protected]<mailto:[email protected]>> Cc: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Ke Wang <[email protected]<mailto:[email protected]>>, Sughosh Divanji <[email protected]<mailto:[email protected]>> Subject: Re: [codes-ross-users] Help needed in running codes. Hi Jonathon, 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. Even after giving the correct dependencies and include files and compiler, if i run this command, raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross/codes-base/doc/example$ 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 1. I had to change in many .h files to set the correct path etc. Second after using the above command, I get lot of undefined references like /tmp/ccle6WVw.o: In function `get_next_server': /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:403: undefined reference to `codes_mapping_get_lp_info' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:408: undefined reference to `codes_mapping_get_group_reps' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:411: undefined reference to `codes_mapping_get_lp_id' /tmp/ccle6WVw.o: In function `handle_ack_rev_event': The include files are there as i have specified in the above command. Not sure what is going wrong. Can you help. Regards, Raghav [https://mailfoogae.appspot.com/t?sender=acmthcG9vcjdAaGF3ay5paXQuZWR1&type=zerocontent&guid=81e8248b-e760-4f97-b774-032415c11b2e]ᐧ On Thu, Feb 26, 2015 at 8:37 PM, Sughosh Divanji <[email protected]<mailto:[email protected]>> wrote: Hi Jonathan, Thanks for the info. I have setup CODESBASE,CODESNET and ROSS environment variables and tried to run example.c. However, compiling is failing because of the following reason. sughosh@sughosh-Lenovo-G50-45:~/Desktop/IITC/CS597/codes-base/doc/example$ make make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found 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 make: I/home/sughosh/Desktop/IITC/CS597/codes-base/include: Command not found make: [example] Error 127 (ignored) bin directory is not prsent in my ROSS installation and the same with other errors as well. I tried compiling codes-base 0.3.0 but it was failing at 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, http://git.mcs.anl.gov/radix/codes-base and git.mcs.anl.gov/radix/codes-net<http://git.mcs.anl.gov/radix/codes-net> and was able to compile codes-base and codes-net succesfully. For ROSS I have downloaded source code from https://github.com/carothersc/ROSS. Thanks, Sughosh [https://mailfoogae.appspot.com/t?sender=ac2RpdmFuamlAaGF3ay5paXQuZWR1&type=zerocontent&guid=61f14e96-67f4-4a7e-8d58-e6881ace23a8]ᐧ On Thu, Feb 26, 2015 at 8:51 AM, Jenkins, Jonathan P. <[email protected]<mailto:[email protected]>> wrote: Hi Sughosh, 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. 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. John From: Sughosh Divanji <[email protected]<mailto:[email protected]>> Date: Wednesday, February 25, 2015 at 7:26 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Raghav Kapoor <[email protected]<mailto:[email protected]>>, Ke Wang <[email protected]<mailto:[email protected]>> Subject: [codes-ross-users] Help needed in running codes. Hi, 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. Thanks, Sughosh
Hi Jonathan, Thanks for your help. We are able to run sample programs for codes-base. But, I am not able to find any example program for codes-net. Could you point me to a sample program for codes-net and how to run it. Thanks, Sughosh ᐧ On Fri, Feb 27, 2015 at 2:25 PM, Jenkins, Jonathan P. <[email protected]> wrote:
Ah OK. So in general, it's recommended to either stick with releases (e.g., "git checkout v0.3.0" for codes-base, codes-net) with the ROSS hash listed in the INSTALL document, or work from the master branches in all three. Both projects are being actively developed, so changes in behavior between a snapshot and non-snapshot version can result in things like the RNG error you experienced earlier.
John
From: Raghav Kapoor <[email protected]> Date: Friday, February 27, 2015 at 2:15 PM
To: John Jenkins <[email protected]> Cc: Ke Wang <[email protected]>, "[email protected]" < [email protected]>, Sughosh Divanji < [email protected]> Subject: Re: [codes-ross-users] Help needed in running codes.
Hi Jonathan, For codes-base and codes-net, I used git repos: git clone git://git.mcs.anl.gov/radix/codes-base git clone git://git.mcs.anl.gov/radix/codes-net
For ross, first i cloned the ROSS git repo, git clone http://github.com/carothersc/ROSS.git then i did git checkout c04babe
Should I use the latest ROSS version for it to work correctly?
Regards, Raghav
ᐧ
On Fri, Feb 27, 2015 at 2:04 PM, Jenkins, Jonathan P. <[email protected]
wrote:
Hi Raghav,
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)?
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.
John
From: Raghav Kapoor <[email protected]> Date: Friday, February 27, 2015 at 1:51 PM To: John Jenkins <[email protected]>
Cc: Ke Wang <[email protected]>, "[email protected]" <[email protected]>, Sughosh Divanji < [email protected]> Subject: Re: [codes-ross-users] Help needed in running codes.
Hi Jonathon, Thanks for reply. I have built the example in doc/example directory.
However when i run it, i get the following:
*raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross1/codes-base/doc/example$ ./example --codes-config=./example.conf* *./example --codes-config=./example.conf *
*Fri Feb 27 13:48:37 2015*
*ROSS Revision: c04babe513a0c570ce64db9b5dd939324b118311*
*tw_net_start: Found world size to be 1 * *node: 0: error: /home/raghav/DIC_PROJECT/codesross1/ROSS/ross/rand-clcg4.c:289: RNG max streams exceeded: 2 > 1*
*application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0*
I tried with mpirun as well.
raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross1/codes-base/doc/example$ mpirun -np 1 ./example --codes-config=./example.conf ./example --codes-config=./example.conf
Fri Feb 27 13:49:37 2015
ROSS Revision: c04babe513a0c570ce64db9b5dd939324b118311
tw_net_start: Found world size to be 1 node: 0: error: /home/raghav/DIC_PROJECT/codesross1/ROSS/ross/rand-clcg4.c:289: RNG max streams exceeded: 2 > 1
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
=================================================================================== = BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES = EXIT CODE: 1 = CLEANING UP REMAINING PROCESSES = YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
I think there is some issue while running.
Can you explain how to run it.
Also is there any video tutorial on ROSS or codes through which we can understand these two frameworks better?
Thanks,
Raghav
ᐧ
On Fri, Feb 27, 2015 at 11:05 AM, Jenkins, Jonathan P. < [email protected]> wrote:
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.
John
From: <Jenkins>, John Jenkins <[email protected]> Date: Friday, February 27, 2015 at 10:28 AM To: Raghav Kapoor <[email protected]> Cc: Ke Wang <[email protected]>, "[email protected]" <[email protected]>, Sughosh Divanji < [email protected]>
Subject: Re: [codes-ross-users] Help needed in running codes.
Hi Raghav,
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…
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.
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).
John
From: Raghav Kapoor <[email protected]> Date: Friday, February 27, 2015 at 9:45 AM To: John Jenkins <[email protected]> Cc: "[email protected]" < [email protected]>, Ke Wang <[email protected]>, Sughosh Divanji <[email protected]> Subject: Re: [codes-ross-users] Help needed in running codes.
Hi Jonathon, 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.
Even after giving the correct dependencies and include files and compiler, if i run this command,
raghav@raghav-Lenovo-G505s :~/DIC_PROJECT/codesross/codes-base/doc/example$
*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*
1. I had to change in many .h files to set the correct path etc.
Second after using the above command, I get lot of undefined references like
/tmp/ccle6WVw.o: In function `get_next_server': /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:403: undefined reference to `codes_mapping_get_lp_info' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:408: undefined reference to `codes_mapping_get_group_reps' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:411: undefined reference to `codes_mapping_get_lp_id' /tmp/ccle6WVw.o: In function `handle_ack_rev_event':
The include files are there as i have specified in the above command.
Not sure what is going wrong.
Can you help.
Regards,
Raghav
ᐧ
On Thu, Feb 26, 2015 at 8:37 PM, Sughosh Divanji <[email protected]> wrote:
Hi Jonathan,
Thanks for the info. I have setup CODESBASE,CODESNET and ROSS environment variables and tried to run example.c. However, compiling is failing because of the following reason.
sughosh@sughosh-Lenovo-G50-45:~/Desktop/IITC/CS597/codes-base/doc/example$ make make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found 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 make: I/home/sughosh/Desktop/IITC/CS597/codes-base/include: Command not found make: [example] Error 127 (ignored)
bin directory is not prsent in my ROSS installation and the same with other errors as well.
I tried compiling codes-base 0.3.0 but it was failing at 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, http://git.mcs.anl.gov/radix/codes-base and git.mcs.anl.gov/radix/codes-net and was able to compile codes-base and codes-net succesfully. For ROSS I have downloaded source code from https://github.com/carothersc/ROSS.
Thanks, Sughosh ᐧ
On Thu, Feb 26, 2015 at 8:51 AM, Jenkins, Jonathan P. < [email protected]> wrote:
Hi Sughosh,
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.
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.
John
From: Sughosh Divanji <[email protected]> Date: Wednesday, February 25, 2015 at 7:26 PM To: "[email protected]" < [email protected]>, Raghav Kapoor < [email protected]>, Ke Wang <[email protected]> Subject: [codes-ross-users] Help needed in running codes.
Hi,
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.
Thanks, Sughosh
Hi Sughosh, The example program actually covers codes-net as well (the model-net functionality) - hence the extra Makefile for it. As for other programs using model-net, the programs and configurations in the tests subdirectory of codes-net show a basic configuration of the other networks. The programs aren't the cleanest (essentially a version of the codes-base example program that hasn't been cleaned up), but they work as a simple example. Thanks, John From: Sughosh Divanji <[email protected]<mailto:[email protected]>> Date: Monday, March 2, 2015 at 9:46 PM To: John Jenkins <[email protected]<mailto:[email protected]>> Cc: Raghav Kapoor <[email protected]<mailto:[email protected]>>, Ke Wang <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Re: [codes-ross-users] Help needed in running codes. Hi Jonathan, Thanks for your help. We are able to run sample programs for codes-base. But, I am not able to find any example program for codes-net. Could you point me to a sample program for codes-net and how to run it. Thanks, Sughosh [https://mailfoogae.appspot.com/t?sender=ac2RpdmFuamlAaGF3ay5paXQuZWR1&type=zerocontent&guid=78316dba-5c39-44d2-92c2-cd58f6e579ae]ᐧ On Fri, Feb 27, 2015 at 2:25 PM, Jenkins, Jonathan P. <[email protected]<mailto:[email protected]>> wrote: Ah OK. So in general, it's recommended to either stick with releases (e.g., "git checkout v0.3.0" for codes-base, codes-net) with the ROSS hash listed in the INSTALL document, or work from the master branches in all three. Both projects are being actively developed, so changes in behavior between a snapshot and non-snapshot version can result in things like the RNG error you experienced earlier. John From: Raghav Kapoor <[email protected]<mailto:[email protected]>> Date: Friday, February 27, 2015 at 2:15 PM To: John Jenkins <[email protected]<mailto:[email protected]>> Cc: Ke Wang <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Sughosh Divanji <[email protected]<mailto:[email protected]>> Subject: Re: [codes-ross-users] Help needed in running codes. Hi Jonathan, For codes-base and codes-net, I used git repos: git clone git://git.mcs.anl.gov/radix/codes-base<http://git.mcs.anl.gov/radix/codes-base> git clone git://git.mcs.anl.gov/radix/codes-net<http://git.mcs.anl.gov/radix/codes-net> For ross, first i cloned the ROSS git repo, git clone http://github.com/carothersc/ROSS.git then i did git checkout c04babe Should I use the latest ROSS version for it to work correctly? Regards, Raghav [https://mailfoogae.appspot.com/t?sender=acmthcG9vcjdAaGF3ay5paXQuZWR1&type=zerocontent&guid=0cd944f3-25ed-409a-98df-e65ef9525e94]ᐧ On Fri, Feb 27, 2015 at 2:04 PM, Jenkins, Jonathan P. <[email protected]<mailto:[email protected]>> wrote: Hi Raghav, 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)? 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. John From: Raghav Kapoor <[email protected]<mailto:[email protected]>> Date: Friday, February 27, 2015 at 1:51 PM To: John Jenkins <[email protected]<mailto:[email protected]>> Cc: Ke Wang <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Sughosh Divanji <[email protected]<mailto:[email protected]>> Subject: Re: [codes-ross-users] Help needed in running codes. Hi Jonathon, Thanks for reply. I have built the example in doc/example directory. However when i run it, i get the following: raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross1/codes-base/doc/example$ ./example --codes-config=./example.conf ./example --codes-config=./example.conf Fri Feb 27 13:48:37 2015 ROSS Revision: c04babe513a0c570ce64db9b5dd939324b118311 tw_net_start: Found world size to be 1 node: 0: error: /home/raghav/DIC_PROJECT/codesross1/ROSS/ross/rand-clcg4.c:289: RNG max streams exceeded: 2 > 1 application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0 I tried with mpirun as well. raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross1/codes-base/doc/example$ mpirun -np 1 ./example --codes-config=./example.conf ./example --codes-config=./example.conf Fri Feb 27 13:49:37 2015 ROSS Revision: c04babe513a0c570ce64db9b5dd939324b118311 tw_net_start: Found world size to be 1 node: 0: error: /home/raghav/DIC_PROJECT/codesross1/ROSS/ross/rand-clcg4.c:289: RNG max streams exceeded: 2 > 1 application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0 =================================================================================== = BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES = EXIT CODE: 1 = CLEANING UP REMAINING PROCESSES = YOU CAN IGNORE THE BELOW CLEANUP MESSAGES =================================================================================== I think there is some issue while running. Can you explain how to run it. Also is there any video tutorial on ROSS or codes through which we can understand these two frameworks better? Thanks, Raghav [https://mailfoogae.appspot.com/t?sender=acmthcG9vcjdAaGF3ay5paXQuZWR1&type=zerocontent&guid=63579678-ddcc-4e0b-804f-3d691ac79919]ᐧ On Fri, Feb 27, 2015 at 11:05 AM, Jenkins, Jonathan P. <[email protected]<mailto:[email protected]>> wrote: 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. John From: <Jenkins>, John Jenkins <[email protected]<mailto:[email protected]>> Date: Friday, February 27, 2015 at 10:28 AM To: Raghav Kapoor <[email protected]<mailto:[email protected]>> Cc: Ke Wang <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Sughosh Divanji <[email protected]<mailto:[email protected]>> Subject: Re: [codes-ross-users] Help needed in running codes. Hi Raghav, 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… 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. 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). John From: Raghav Kapoor <[email protected]<mailto:[email protected]>> Date: Friday, February 27, 2015 at 9:45 AM To: John Jenkins <[email protected]<mailto:[email protected]>> Cc: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Ke Wang <[email protected]<mailto:[email protected]>>, Sughosh Divanji <[email protected]<mailto:[email protected]>> Subject: Re: [codes-ross-users] Help needed in running codes. Hi Jonathon, 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. Even after giving the correct dependencies and include files and compiler, if i run this command, raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross/codes-base/doc/example$ 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 1. I had to change in many .h files to set the correct path etc. Second after using the above command, I get lot of undefined references like /tmp/ccle6WVw.o: In function `get_next_server': /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:403: undefined reference to `codes_mapping_get_lp_info' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:408: undefined reference to `codes_mapping_get_group_reps' /home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:411: undefined reference to `codes_mapping_get_lp_id' /tmp/ccle6WVw.o: In function `handle_ack_rev_event': The include files are there as i have specified in the above command. Not sure what is going wrong. Can you help. Regards, Raghav [https://mailfoogae.appspot.com/t?sender=acmthcG9vcjdAaGF3ay5paXQuZWR1&type=zerocontent&guid=81e8248b-e760-4f97-b774-032415c11b2e]ᐧ On Thu, Feb 26, 2015 at 8:37 PM, Sughosh Divanji <[email protected]<mailto:[email protected]>> wrote: Hi Jonathan, Thanks for the info. I have setup CODESBASE,CODESNET and ROSS environment variables and tried to run example.c. However, compiling is failing because of the following reason. sughosh@sughosh-Lenovo-G50-45:~/Desktop/IITC/CS597/codes-base/doc/example$ make make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found make: /home/sughosh/Desktop/IITC/CS597/ROSS/bin/ross-config: Command not found 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 make: I/home/sughosh/Desktop/IITC/CS597/codes-base/include: Command not found make: [example] Error 127 (ignored) bin directory is not prsent in my ROSS installation and the same with other errors as well. I tried compiling codes-base 0.3.0 but it was failing at 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, http://git.mcs.anl.gov/radix/codes-base and git.mcs.anl.gov/radix/codes-net<http://git.mcs.anl.gov/radix/codes-net> and was able to compile codes-base and codes-net succesfully. For ROSS I have downloaded source code from https://github.com/carothersc/ROSS. Thanks, Sughosh [https://mailfoogae.appspot.com/t?sender=ac2RpdmFuamlAaGF3ay5paXQuZWR1&type=zerocontent&guid=61f14e96-67f4-4a7e-8d58-e6881ace23a8]ᐧ On Thu, Feb 26, 2015 at 8:51 AM, Jenkins, Jonathan P. <[email protected]<mailto:[email protected]>> wrote: Hi Sughosh, 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. 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. John From: Sughosh Divanji <[email protected]<mailto:[email protected]>> Date: Wednesday, February 25, 2015 at 7:26 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Raghav Kapoor <[email protected]<mailto:[email protected]>>, Ke Wang <[email protected]<mailto:[email protected]>> Subject: [codes-ross-users] Help needed in running codes. Hi, 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. Thanks, Sughosh
participants (3)
-
Jenkins, Jonathan P. -
Raghav Kapoor -
Sughosh Divanji