2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Intel Parallel Studio XE のインストール

Posted at

What's this?

Intel Parallel Studio XE のインストールガイド
と言っても大した内容ではないけど.
環境は mac OS 10.14.6 Mojave で, Intel® Parallel Studio XE Composer Edition for C++ macOS (2020 Initial Release)Intel® Parallel Studio XE Composer Edition for Fortran macOS (2020 Initial Release) をインストールします.

Intel Parallel Studio XE Composer Edition for C++ のインストール

  1. Intel Developper Zoneのここから自分が使用しているOS(ここではmacOS)を選ぶ.(アカウントがない人は作ってください)
  2. C++ macOS を選ぶ.
  3. Full Package, Customizable Package のどちらでも好きな方をダウンロードする.このとき, Serial numberを控えておく.
  4. ダウンロードしたm_ccompxe_online_*.dmgを開いて, 指示に従ってインストールする.
    これでほぼ終わり(簡単).

Intel Parallel Studio XE Composer Edition for Fortran のインストール

今時Fortran使うの?って思うかもしれませんが, 実際使うことあるので一応ね...
「Fortranなんて使わんわ」って人は無視してください.
手順はIntel Parallel Studio XE Composer Edition for C++とほぼ同じです.

  1. Fortran macOS を選ぶ.
  2. Full Package, Customizable Package のどちらでも好きな方をダウンロードする.このとき, Serial numberを控えておく.
  3. ダウンロードしたm_fcompxe_online_*.dmgを開いて, 指示に従ってインストールする.

環境変数の設定

$HOME/.bash_profile を編集して, ターミナルを起動するたびに環境変数を読み込むようにする.
$HOME/.bash_profile に次の1行を追加(デフォルトの/opt/intel/にインストールしたものとする).

source /opt/intel/bin/compilervars.sh intel64

mkltbb を使う場合は次も追加する.

source /opt/intel/mkl/bin/mklvars.sh
source /opt/intel/tbb/bin/tbbvars.sh

これで全て完了.
c,c++ のソースコードをコンパイルする場合は

$ icc *.c
$ icpc *.cpp

Fortran のソースコードをコンパイルする場合は

$ ifort *.f90
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?