SERVING THE QUANTITATIVE FINANCE COMMUNITY

 
User avatar
Alan
Posts: 9868
Joined: December 19th, 2001, 4:01 am
Location: California
Contact:

Parallel RNG and distributed MC

August 10th, 2012, 11:49 pm

Thanks -- I haven't signed up at amazon, but it is clearly time to bite that bullet. Will report back ..
Last edited by Alan on August 10th, 2012, 10:00 pm, edited 1 time in total.
 
User avatar
Alan
Posts: 9868
Joined: December 19th, 2001, 4:01 am
Location: California
Contact:

Parallel RNG and distributed MC

August 11th, 2012, 4:49 pm

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
Last edited by Alan on August 10th, 2012, 10:00 pm, edited 1 time in total.
 
User avatar
Alan
Posts: 9868
Joined: December 19th, 2001, 4:01 am
Location: California
Contact:

Parallel RNG and distributed MC

August 11th, 2012, 5:00 pm

I must be in the wrong directory or something for that; keep getting:sudo: idconfig: command not found
 
User avatar
Alan
Posts: 9868
Joined: December 19th, 2001, 4:01 am
Location: California
Contact:

Parallel RNG and distributed MC

August 11th, 2012, 5:05 pm

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
 
User avatar
Alan
Posts: 9868
Joined: December 19th, 2001, 4:01 am
Location: California
Contact:

Parallel RNG and distributed MC

August 11th, 2012, 5:07 pm

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
 
User avatar
Alan
Posts: 9868
Joined: December 19th, 2001, 4:01 am
Location: California
Contact:

Parallel RNG and distributed MC

August 11th, 2012, 5:16 pm

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?
ABOUT WILMOTT

PW by JB

Wilmott.com has been "Serving the Quantitative Finance Community" since 2001. Continued...


Twitter LinkedIn Instagram

JOBS BOARD

JOBS BOARD

Looking for a quant job, risk, algo trading,...? Browse jobs here...


GZIP: On