Changes between Version 11 and Version 12 of openmp_programming


Ignore:
Timestamp:
May 12, 2008, 5:25:19 PM (17 years ago)
Author:
rider
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • openmp_programming

    v11 v12  
    8282Step7: source /opt/intel/itt/tcheck/bin/32e/tcheckvars.sh [[BR]]
    8383Step8: tcheck_cl -help (If it works fine than it's done) [[BR]]
     84
     85== How to compile OpenMP C programs ? ==
     86=== GCC ===
     87Env: gcc version 4.2.3 (Debian 4.2.3-5) [[BR]]
     88Example: /home/rider/openmp/examples/omp_hello.c [[BR]]
     89rider@hd05:~/openmp/example$ gcc -fopenmp -g omp_hello.c -o hello [[BR]]
     90
     91=== icc (Intel® Compiler) ===
     92Env: icc version 10.1 [[BR]]
     93Example: /home/rider/openmp/examples/omp_hello.c [[BR]]
     94rider@hd05:~/openmp/example$ icc hello -openmp -o omp_hello.c [[BR]]
     95
     96== How to compile OpenMP Fortran programs ? ==
     97=== ifort (Intel® Compiler) ===
     98Env: ifort version 10.1 [[BR]]
     99Example: /home/rider/openmp/examples/omp_hello.c [[BR]]
     100rider@hd05:~/openmp/example$ ifort hello -openmp -o omp_hello.f [[BR]]
     101
     102Caution: [[BR]]
     103To activate the OpenMP extensions for C/C++ and Fortran, the compile-time flag '''-fopenmp''' must be specified. This enables the OpenMP directive #pragma omp in C/C++ and !$omp directives in free form, c$omp, *$omp and !$omp directives in fixed form, !$ conditional compilation sentinels in free form and c$, *$ and !$ sentinels in fixed form, for Fortran. The flag also arranges for automatic linking of the OpenMP runtime library. [[BR]]
     104
     105Reference: GCC 4.2.3 GNU OpenMP Manual -> http://gcc.gnu.org/onlinedocs/gcc-4.2.3/libgomp/ [[BR]]
     106 
     107