Navigation :
Top/Intel C++ and Fortan for Linux
Intel C++ and Fortan for Linux
- 追加された行はこの色です。
- 削除された行はこの色です。
- Intel C++ and Fortan for Linux へ行く。
- Intel C++ and Fortan for Linux の差分を削除
[[Programing]]
* Install [#w35497ab]
** Installの前に [#m279b73a]
webで登録し,シリアル番号を頂く.その後,登録したメールアドレスにライセンスファイルが送られてくる.
- シリアル番号
- ライセンスファイル
** 手順 [#y6e2c33b]
遅ればせながらIntel Compilerを入れる。
+ www.intel.comで名前を登録し、メールが送られて来るのを待つ。
+ 添付メールを/opt/intel/licensesの下に保存
+ 添付メールにあるアドレスからファイルをダウンロード
+ ファイルを伸張する。
+ ./install.shを実行
+ 後は、指示に従うだけ。
** Ubuntu 12.10 [#p2b9061e]
特に特別な設定はない.
- 以下のライブラリーが必要
-- zlib
** Ubuntu 10.4 [#k7b8d763]
Ubuntu9.10からlibstdc++のバージョンが6にあがり、Intel Compilerが必要とするlibstd++5がなくなった.これは困った.
*** Step 1 [#ob3ea9ed]
- apt-get install g++
*** Step 2 [#b3ea5475]
- 以下の2つをダウンロード.細かいバージョンは問わない.
-- libstdc++5_3.3.6-18_amd64.deb
-- libstdc++5_3.3.6-18_i386.deb
- 64bitのlibraryを入れる.
dpkg -i libstdc++5_3.3.6-18_amd64.deb
- 32bitの方も入れる.こっちは/usr/lib32に入れたいので,手で解凍して移動.
dpkg --extract libstdc++5_3.3.6-18_i386.deb ./
cd usr/lib
cp libstdc++.so.5.0.7 /usr/lib32
cd /usr/lib32
ln -s libstdc++.so.5.0.7 libstdc++.so.5
*** Step 3 [#p322a994]
- l_cproc_p_xxx, l_cprof_p_xxxのinstall.shを実行
- glibcが無いといわれるが無視してインストールを進める.
** 参照 [#z4df66d2]
- http://software.intel.com/en-us/articles/using-intel-compilers-for-linux-with-ubuntu/
* 設定 [#mb8d0164]
** 一般 [#s2b9063e]
*** /opt/intel/composer_xe_2013.1.117 [#h19f65ca]
-csh/tcsh の場合:
$ source install-dir/bin/compilervars.csh intel64
-bash の場合:
$ source install-dir/bin/compilervars.sh intel64
-コンパイラーの起動コマンドは次の通りです。
C++ の場合: icpc
C の場合: icc
Fortran の場合: ifort
- ヘルプは、-help オプションまたは man コマンドを使用して表示します。
- 次のファイルにドキュメントの一覧があります。
-- install-dir/Documentation/en_US/get_started_lf.htm
** 直接書く場合のサンプル [#yea37cfd]
***.bashrc [#h4b8a35d]
# intel compiler
export INTELROOT=/opt/intel/composer_xe_2013.1.117/
source $INTELROOT/bin/compilervars.sh intel64
* Tips [#c652b7ee]
- ちゃんと他では動くのにSegmentation faults forrtl (174)がでる
++ 可能性1:stack size
ulimit -s unlited
++ 可能性2:compiler option
-heap-arrays
--- これでだめだとフルチェックオプションを試す。但し実効速度は遅い
-heap-arrays -check all
--- 配列の領域外参照を検出
-heap-arrays -check bounds -O3
--- debugerでチェック後、プログラムを修正。"-check"optionを外す
-- http://software.intel.com/en-us/forums/topic/268867