Changes between Version 3 and Version 4 of openmp_programming
- Timestamp:
- May 5, 2008, 4:32:31 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
openmp_programming
v3 v4 1 1 = OpenMP Usage = 2 2 == OpenMP Installation == 3 Env: Debian 4.0 amd64 2.6.20-krg SMP with Kerrighed 2.3.0[[BR]]3 Env: '''Debian 4.0 amd64 2.6.20-krg SMP with Kerrighed 2.3.0''' [[BR]] 4 4 Step1: rider@hd05:~$ wget http://www.hpcc.jp/Omni/ftp/Omni/Omni-1.6.tar.gz [[BR]] 5 5 Step2: rider@hd05:~$ tar zxvf Omni-1.6.tar.gz[[BR]] … … 9 9 Step6: rider@hd05:~$ export OMPC_NUM_PROCS=16 (Kerrighed_machines: node0~node4) [[BR]] 10 10 Step7: rider@hd05:~$ export OMPC_BIND_PROCS=true [[BR]] 11 12 Directions: 13 14 -- The environment variable OMPC_NUM_PROCS specifies the number of 15 threads to execute the program. For example, you want to use 4 threads, 16 17 setenv OMPC_NUM_PROCS 4 18 19 -- If the environment variable OMPC_NUM_PROCS is not set, check the 20 number of physical processors in your platform. The same number of 21 threads are created as the number of physical processor. 22 In Linux and Solaris platforms, the runtime system checks the number 23 of processors. Otherwise, the current version uses a compile-time 24 constant N_PROC_DEFALUT (currently 4) in "ompclib.h" as the number of threads. 25 [[BR]] 26 -- If the environment variable OMP_NUM_THREADS is set and its value 27 is greater than the number of threads described above, the value of 28 OMP_NUM_THREADS is used as the max number of threads. 29 11 30 == Intel C++ Compiler Installation == 12 31 Step1: Download the Intel C++ Compiler from http://www.intel.com/cd/software/products/asmo-na/eng/340679.htm [[BR]]