I am trying to run a simple cilk plus program on MTL. The program runs both a serial (non-threaded) and a parallel (using cilk_spawn) version of the same code and reports the timing results for both versions.
I can compile it and run it on the login node, but it shows no speedup in the parallel version because it does not have access to multiple CPUs.
When I try to submit the job using qsub (hoping to get access to multiple cores), I get the following output file:
Warning: no access to tty (Bad file descriptor).
Thus no job control in this shell.
MANPATH: Undefined variable.
/home/knag/knag-s01/01/code/sol/stocks: error while loading shared libraries: libcilkrts.so.5: cannot open shared object file: No such file or directory
The first two errors (tty & MANPATH) I'd like to fix but, but am more concerned about the third error. How can I let whatever core is running my job know where the libbcilkrts.so is?
I can update my LD_LIBRARY_PATH to point to the right place (adding /opt/cilk/lib64) but this does not seem to help. (when *I* run the program, it already knew where the library was and does not give me this error in the first place). I'm not sure how to fix the problem when the job is submitted via qsub.
Any help much appreciated. Bonus points if you know what to do about the tty and MANPATH warnings. :)