Changes between Version 8 and Version 9 of YMU110509/Lab2
- Timestamp:
- May 9, 2011, 3:24:19 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
YMU110509/Lab2
v8 v9 10 10 }}} 11 11 12 == 編譯環境檢驗 Compiler Version Check == 13 12 14 * GCC 4.2 以上版本就有支援 OpenMP 了....用 "gcc '''-fopenmp'''" 就可以編譯 13 14 == Example 1 : !HelloWorld ==15 16 * 首先從 [https://computing.llnl.gov/tutorials/openMP/exercise.html OpenMP Exercise] 下載 omp_hello.c17 {{{18 ~$ wget https://computing.llnl.gov/tutorials/openMP/samples/C/omp_hello.c19 }}}20 15 * 確認目前 gcc 版本,須大於 4.2 以後的版本 21 16 {{{ … … 26 21 Thread model: posix 27 22 gcc version 4.4.5 (Debian 4.4.5-8) 23 }}} 24 25 == Example 1 : !HelloWorld == 26 27 * 首先從 [https://computing.llnl.gov/tutorials/openMP/exercise.html OpenMP Exercise] 下載 omp_hello.c 28 {{{ 29 ~$ wget https://computing.llnl.gov/tutorials/openMP/samples/C/omp_hello.c 28 30 }}} 29 31 * 使用 GCC 編譯 omp_hello.c