Page 35 of 39

Parallel RNG and distributed MC

Posted: August 10th, 2012, 11:49 pm
by Alan
Thanks -- I haven't signed up at amazon, but it is clearly time to bite that bullet. Will report back ..

Parallel RNG and distributed MC

Posted: August 11th, 2012, 4:49 pm
by Alan
Pretty good progress. Signed up, installed tools, installed boost (many warnings, took 90 minutes), transferred pmc.zip, unzipped and compiled.Trying to run, got the following:----------------------------------------------------------------------------------------------------------------- [ec2-user@ip-10-252-48-151 build]$ makeScanning dependencies of target parallel_monte_carlo[100%] Building CXX object CMakeFiles/parallel_monte_carlo.dir/parallel_monte_carlo.cpp.oLinking CXX executable parallel_monte_carlo[100%] Built target parallel_monte_carlo[ec2-user@ip-10-252-48-151 build]$ ./parallel_monte_carlo./parallel_monte_carlo: error while loading shared libraries: libboost_thread.so.1.50.0: cannot open shared object file: No such file or directory[ec2-user@ip-10-252-48-151 build]$ lsCMakeCache.txt CMakeFiles cmake_install.cmake Makefile parallel_monte_carlo ---------------------------------------------------------------------------------------------------------p.s. Earlier, after the boost install completetd, tried that sudo idconfig but got:...updated 10646 targets...[ec2-user@ip-10-252-48-151 boost_1_50_0]$ sudo idconfigsudo: idconfig: command not found

Parallel RNG and distributed MC

Posted: August 11th, 2012, 5:00 pm
by Alan
I must be in the wrong directory or something for that; keep getting:sudo: idconfig: command not found

Parallel RNG and distributed MC

Posted: August 11th, 2012, 5:05 pm
by Alan
Ok, it took that, but same error:[ec2-user@ip-10-252-48-151 build]$ sudo ldconfig[ec2-user@ip-10-252-48-151 build]$ ./parallel_monte_carlo./parallel_monte_carlo: error while loading shared libraries: libboost_thread.so.1.50.0: cannot open shared object file: No such file or directory

Parallel RNG and distributed MC

Posted: August 11th, 2012, 5:07 pm
by Alan
Success! (Added your other suggestion, too):[ec2-user@ip-10-252-48-151 build]$ export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH[ec2-user@ip-10-252-48-151 build]$ [ec2-user@ip-10-252-48-151 build]$ [ec2-user@ip-10-252-48-151 build]$ ./parallel_monte_carloresult=0.244632 err=0.00102233 threads=10 jobs=100 samples=200000 seconds=3.11344

Parallel RNG and distributed MC

Posted: August 11th, 2012, 5:16 pm
by Alan
Well, should we create an ami? I understand I can just let this instance run for a year, but what if amazon goes down?Then, would have to repeat the installs?