[sharp-discuss] using multiple CPUs -- openMP

Claus Flensburg claus at globalphasing.com
Sat Dec 3 14:58:56 GMT 2005


Hi Andy,

On Fri, Dec 02, 2005 at 02:45:04PM -0800, Andy Tsai wrote:
> Hi,
> 
> Do we have to setup anything or change settings to use the openMP capability
> in Sharp 2.2.0 ? Or it is being used by default ?

No, it's not used by default.

In $BDG_home/submit (or submit.local) uncomment the relevant lines
in the database files: restart.dat  resume.dat  start.dat

cd $BDG_home/submit.local
grep omp restart.dat resume.dat start.dat
restart.dat:#interactive:::BDG_exe_ext=omp;BDG_num_thread=2:Interactive parallel version (2 processors)
restart.dat:#interactive:::BDG_exe_ext=omp;BDG_num_thread=3:Interactive parallel version (3 processors)
restart.dat:#rsh:alpha:gauss:BDG_exe_ext=omp;BDG_num_thread=2:Parallel version (2 processors) on gauss
restart.dat:#dqs:::dqsbin=/usr/local/bin;dqsqueue=pauling;BDG_exe_ext=omp;BDG_num_thread=2:DQS at pauling parallel version (2 processors)
resume.dat:#interactive:::BDG_exe_ext=omp;BDG_num_thread=2:Interactive parallel version (2 processors)
resume.dat:#interactive:::BDG_exe_ext=omp;BDG_num_thread=3:Interactive parallel version (3 processors)
resume.dat:#rsh:alpha:gauss:BDG_exe_ext=omp;BDG_num_thread=2:Parallel version (2 processors) on gauss
resume.dat:#dqs:::dqsbin=/usr/local/bin;dqsqueue=pauling;BDG_exe_ext=omp;BDG_num_thread=2:DQS at pauling parallel version (2 processors)
start.dat:#interactive:::BDG_exe_ext=omp;BDG_num_thread=2:Interactive parallel version (2 processors)
start.dat:#interactive:::BDG_exe_ext=omp;BDG_num_thread=3:Interactive parallel version (3 processors)
start.dat:#rsh:alpha:gauss:BDG_exe_ext=omp;BDG_num_thread=2:Parallel version (2 processors) on gauss
start.dat:#dqs:::dqsbin=/usr/local/bin;dqsqueue=pauling;BDG_exe_ext=omp;BDG_num_thread=2:DQS at pauling parallel version (2 processors)

So to activate a two thread interactive method
uncomment the lines which have BDG_num_thread=2.

With best wishes,

ClAuS

PS. See:

http://www.globalphasing.com/fom-serve/cache/9.html

how to setup the submit.local directory.



More information about the sharp-discuss mailing list