= OpenMP Usage = == OpenMP Installation == Env: '''Debian 4.0 amd64 2.6.20-krg SMP with Kerrighed 2.3.0''' [[BR]] Step1: rider@hd05:~$ wget http://www.hpcc.jp/Omni/ftp/Omni/Omni-1.6.tar.gz [[BR]] Step2: rider@hd05:~$ tar zxvf Omni-1.6.tar.gz[[BR]] Step3: rider@hd05:~$ cd Omni-1.6[[BR]] Step4: rider@hd05:~$ ./configure --prefix=/opt/openmp[[BR]] Step5: rider@hd05:~$ make & make install[[BR]] Step6: rider@hd05:~$ export OMPC_NUM_PROCS=16 (Kerrighed_machines: node0~node4) [[BR]] Step7: rider@hd05:~$ export OMPC_BIND_PROCS=true [[BR]] OpenMP e-Learning: https://computing.llnl.gov/tutorials/openMP/ [[BR]] OpenMP Exercise: https://computing.llnl.gov/tutorials/openMP/exercise.html [[BR]] Directions: -- The environment variable OMPC_NUM_PROCS specifies the number of threads to execute the program. For example, you want to use 4 threads, setenv OMPC_NUM_PROCS 4 -- If the environment variable OMPC_NUM_PROCS is not set, check the number of physical processors in your platform. The same number of threads are created as the number of physical processor. In Linux and Solaris platforms, the runtime system checks the number of processors. Otherwise, the current version uses a compile-time constant N_PROC_DEFALUT (currently 4) in "ompclib.h" as the number of threads. [[BR]] -- If the environment variable OMP_NUM_THREADS is set and its value is greater than the number of threads described above, the value of OMP_NUM_THREADS is used as the max number of threads. == Intel C++ Compiler Installation == Step1: Download the Intel C++ Compiler from http://www.intel.com/cd/software/products/asmo-na/eng/340679.htm [[BR]] Step2: rider@hd05:~$ tar zxvf l_cc_p_10.1.015_intel64.tar.gz (ver: Intel(R)64) [[BR]] Step3: rider@hd05:~$ cd l_cc_p_10.1.015_intel64 [[BR]] Step4: rider@hd05:~$ ./install.sh ( Follow the installation steps -> Free code: NZCR-FZ66ZWWD [[BR]] Step5: Confirm your installation path: /opt/intel/cce/10.1.015/ [[BR]] Step6: source /opt/intel/cce/10.1.015/bin/iccvars.sh or export PATH=$PATH:/opt/intel/cce/10.1.015/bin to your /etc/profile [[BR]] Step7: icc -help (If it works fine than it's done) [[BR]] == Intel Fortran Compiler Installation == Step1: Download the Intel Fortran Compiler from http://www.intel.com/cd/software/products/asmo-na/eng/340679.htm [[BR]] Step2: rider@hd05:~$ tar zxvf l_fc_p_10.1.015_intel64.tar.gz [[BR]] Step3: rider@hd05:~$ cd l_fc_p_10.1.015_intel64 [[BR]] Step4: rider@hd05:~$ ./install.sh ( Follow the installation steps -> Free code: NRDN-29Z6K5WT [[BR]] Step5: Confirm your installation path: /opt/intel/fce/10.1.015/ [[BR]] Step6: source /opt/intel/fce/10.1.015/bin/ifortvars.sh or export PATH=$PATH:/opt/intel/fce/10.1.015/bin [[BR]] Step7: ifort -help (If it works fine than it's done) [[BR]] == Intel Threading Analysis Tool == Step1: Donwload the Intel Threading Analysis Tool from https://registrationcenter.intel.com/RegCenter/AutoGen.aspx?ProductID=893&AccountID=&ProgramID=&RequestDt=&rm=EVAL&lang= [[BR]] Step2: rider@hd05:~$ tar zxvf Tcheck3.1_009cli_lin.tar.gz [[BR]] Step3: rider@hd05:~$ sudo chmod -R a+rx Tcheck3.1_009cli_lin [[BR]] Step4: rider@hd05:~$ cd Tcheck3.1_009cli_lin [[BR]] Step5: rider@hd05:~$ ./install.sh [[BR]] Step6: Confirm your installation path: /opt/intel/itt [[BR]] Step7: source /opt/intel/itt/tcheck/bin/32e/tcheckvars.sh [[BR]] Step8: tcheck_cl -help (If it works fine than it's done) [[BR]]