Version 10 (modified by rider, 17 years ago) (diff) |
---|
OpenMP Usage
OpenMP Installation
OpenMP Compilers: http://openmp.org/wp/openmp-compilers/
Omni OpenMP Compiler Installation
Env: Debian 4.0 amd64 2.6.20-krg SMP with Kerrighed 2.3.0
Step1: rider@hd05:~$ wget http://www.hpcc.jp/Omni/ftp/Omni/Omni-1.6.tar.gz
Step2: rider@hd05:~$ tar zxvf Omni-1.6.tar.gz
Step3: rider@hd05:~$ cd Omni-1.6
Step4: rider@hd05:~$ ./configure --prefix=/opt/openmp
Step5: rider@hd05:~$ make & make install
Step6: rider@hd05:~$ export OMPC_NUM_PROCS=16 (Kerrighed_machines: node0~node4)
Step7: rider@hd05:~$ export OMPC_BIND_PROCS=true
Step8: rider@hd05:~$ export OMPC_LOG=1 (for debug)
Omni OpenMP Compiler Installation with enable-Kerrighed patch
Step4: rider@hd05:~$ wget http://131.254.254.17/download/Omni-1.4-krg-0.72.patch (Need to make some changes - revising)
Step5: rider@hd05:~$ patch -p1 -d Omni1.6 < Omni-1.4-krg-0.72.patch
Step6: rider@hd05:~$ cd Omni-1.6
Step7: rider@hd05:~$ ./configure --with-thread=pthread --enable-kerrighed --enable-shmem --with-lock=mutex --prefix=/opt/openmp_1.6
Step8: rider@hd05:~$ make & make install
Step9: rider@hd05:~$ export OMPC_NUM_PROCS=16 (Kerrighed_machines: node0~node4)
Step10: rider@hd05:~$ export OMPC_BIND_PROCS=true
Step11: rider@hd05:~$ export OMPC_LOG=1 (for debug)
Directions Part1
OpenMP e-Learning: https://computing.llnl.gov/tutorials/openMP/
OpenMP Omni Environment Variables: http://phase.hpcc.jp/Omni/Omni-doc/environment.html
OpenMP Omni OpenMP C Compiler: http://phase.hpcc.jp/Omni/Omni-doc/omcc.html
OpenMP Omni OpenMP C Compile: http://phase.hpcc.jp/Omni/Omni-doc/ompcc.html
OpenMP Exercise: https://computing.llnl.gov/tutorials/openMP/exercise.html
Directions Part2
-- 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.
-- 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
Step2: rider@hd05:~$ tar zxvf l_cc_p_10.1.015_intel64.tar.gz (ver: Intel(R)64)
Step3: rider@hd05:~$ cd l_cc_p_10.1.015_intel64
Step4: rider@hd05:~$ ./install.sh ( Follow the installation steps -> Free code: NZCR-FZ66ZWWD
Step5: Confirm your installation path: /opt/intel/cce/10.1.015/
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
Step7: icc -help (If it works fine than it's done)
Intel Fortran Compiler Installation
Step1: Download the Intel Fortran Compiler from http://www.intel.com/cd/software/products/asmo-na/eng/340679.htm
Step2: rider@hd05:~$ tar zxvf l_fc_p_10.1.015_intel64.tar.gz
Step3: rider@hd05:~$ cd l_fc_p_10.1.015_intel64
Step4: rider@hd05:~$ ./install.sh ( Follow the installation steps -> Free code: NRDN-29Z6K5WT
Step5: Confirm your installation path: /opt/intel/fce/10.1.015/
Step6: source /opt/intel/fce/10.1.015/bin/ifortvars.sh or export PATH=$PATH:/opt/intel/fce/10.1.015/bin
Step7: ifort -help (If it works fine than it's done)
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=
Step2: rider@hd05:~$ tar zxvf Tcheck3.1_009cli_lin.tar.gz
Step3: rider@hd05:~$ sudo chmod -R a+rx Tcheck3.1_009cli_lin
Step4: rider@hd05:~$ cd Tcheck3.1_009cli_lin
Step5: rider@hd05:~$ ./install.sh
Step6: Confirm your installation path: /opt/intel/itt
Step7: source /opt/intel/itt/tcheck/bin/32e/tcheckvars.sh
Step8: tcheck_cl -help (If it works fine than it's done)
Attachments (1)
-
OpenMP.odp
(79.7 KB) -
added by rider 17 years ago.
OpenMP Intro Report
Download all attachments as: .zip