STEP 3 : 新バージョンのインストール
|
① ダウンロードしたファイルの展開 |
インストールは、 root 権限で実行してください。ダウンロードしたpgilinux-2018-17*-x86_64.tar.gz (64bit用) ファイルを /tmp 配下におきます。 /tmp/pgi 配下にテンポラリな pgi のファイルを展開します。1.0 GB 以上のサイズで展開されますので、必ず、/tmp エリア内に展開してください。
|
PGI 2017 リリースから 64bit 版のソフトウェアのみの提供となりました。
(64bit 版ソフトウェア)
% tar zxvf pgilinux-2018-17*-x86-64.tar.gz
|
(以下、64bit版ソフトウェアの場合のコマンド例)
# cd /tmp
# ftp .... to get pgilinux-2018-18x-x86-64.tar.gz file
# mkdir pgi
# cd pgi
# tar zxvf ../pgilinux-2018-18x-x86-64.tar.gz
(展開されます)
|
② インストール時のシェルの言語モードの確認 (重要) |
PGI コンパイラのインストールは、環境変数 LANG が英語モードの環境で行う必要があります。 'env' コマンド等で、現在の環境変数 LANG の値を確認してください。もし、日本語モードの場合は、以下のように root
ユーザ上で、環境変数 LANG を英語モードに設定してください。なお、環境変数 LANG は、設定したコンソールのみ有効ですので、同じコンソールにて
PGI コンパイラのインストール(install コマンドの実行)を行なって下さい。 (この設定を行わずインストールした場合、コンパイラは動作しません)
|
sh、bash の場合
# export LANG=C(または、export LANG=en_US)
Ubuntu Linux の場合は、以下の変数もセットしてください。
# export LC_ALL=C
csh、tcsh の場合
# setenv LANG C(または、setenv LANG en_US)
Ubuntu Linux の場合は、以下の変数もセットしてください。
# setenv LC_ALL C
|
③ インストール・スクリプトの実行 |
展開された配下に、" install "と言うスクリプト・ファイルが存在します。これを実行して、PGI 2018 をインストールを実行します。
|
# ./install
|
ライセンス許諾に関する質問に対して承諾(Accept)した後、以下のような「インストール手法」に関する問いが現れますので、これは、1 の 「Single system install」 をお選びください。
次に、PGIコンパイラを実装するルート・ディレクトリの確認メッセージが表示されますので、変更がなければそのままEnterキーを押します。ここで表示されるデフォルト・ディレクトリは「/opt/pgi」です。もしここでインストール・ディレクトリを変更したい場合はディレクトリ名をフルパスで入力し、enterキーを押して下さい。
|
A network installation will save disk space by having only onecopy of the compilers and most of the
libraries for all systems on the network, and the main installation needs to be done once
for all systems on the network.
1. Single system install
2. Network install
Please choose install option(1-2):
1 <enter> ← (1と入力してenterキーを押します)
Please specify the directory path under which the software will be
installed. The default directory is /opt/pgi, but you may
install anywhere you wish, assuming you have permission to do so.
Installation directory? [/opt/pgi]
|
次に、NVIDIA社のCUDA ソフトウェアのNVIDIA社の使用許諾契約書が画面に現れます。利用許諾に acceptしてください。 |
**********************************************************
CUDA Toolkit
**********************************************************
This release contains a subset of NVIDIA's CUDA 8.0, CUDA 9.0, and CUDA 9.1
toolkits configured for use by the PGI OpenACC and CUDA Fortran
compilers and required by the PGI profiler.
(中略)
Press enter to continue...
In order to install the CUDA software, please read and accept the following license.
End User License Agreement
(中略)
Do you accept these terms? (accept,decline) accept
← (内容に同意の場合、acceptと入力してenterキーを押します)
|
次に、JAVA JRAの利用許諾を行います。 |
***********************************************************
JRE
***********************************************************
This release of PGI software includes the JAVA JRE. PGI's graphical
debugger and profiler use components from this package.
Press enter to continue...
Oracle社の使用許諾契約書が画面に現れます。(省略)
For inquiries please contact: Oracle America, Inc., 500 Oracle
Parkway, Redwood Shores, California 94065, USA.
Last updated 02 April 2013
Do you accept these terms? (accept,decline) accept
← (内容に同意の場合、acceptと入力してenterキーを押します)
|
OpenACC Unified Memory Evaluationの利用許諾を行います。
|
***********************************************************
OpenACC Unified Memory Evaluation Package
***********************************************************
This release contains the PGI OpenACC Unified Memory Evaluation package
which enables limited use of CUDA Unified Memory from within OpenACC.
Press enter to continue...
(省略)
Rev 2018-Jan
Do you accept these terms? (accept,decline) accept
← (内容に同意の場合、acceptと入力してenterキーを押します)
|
PGI コンパイラの本体部分が以下のメッセージとともに、インストールが始まります。しばらく時間が必要です。コンパイラが正常にインストールされると、以下のように "Making symbolic links ***" と言うメッセージが記録されます。32bit Linux の場合は、"Making symbolic links in /opt/pgi/linux86/2018" と言う記録となります。なお、このメッセージの前に、"Error ”のメッセージが出ている場合は、「インストールが失敗しています」ので、適用している Linux の確認をお願いいたします。
|
Installing software into /opt/pgi (this may take some time).
#################################################
(インストール・エラーがある場合は、ここにエラーメッセージが表示される)
If you use the 2018 directory in your path, you may choose to
update the links in that directory to point to the 18.x directory.
Do you wish to update/create links in the 2018 directory? (y/n) y (yとする)
代表ディレクトリの作成を行います。yとしてください。
Making symbolic links in /opt/pgi/linux86-64/2018
Making symbolic links in /opt/pgi/linux86-64-llvm/2018
外部パッケージが実装されます。
nstalling PGI JAVA components into /opt/pgi/linux86-64/2018
Installing PGI JAVA components into /opt/pgi/linux86-64-llvm/2018
Installing examples into /opt/pgi/linux86-64/2018
Installing examples into /opt/pgi/linux86-64-llvm/2018
Installing PGI CUDA components into /opt/pgi/linux86-64/2018
####################### (100%)
Installing PGI CUDA components into /opt/pgi/linux86-64-llvm/2018
####################### (100%)
|
次に、Open MPI ライブラリのインストールを行います。”enter”を押して続けて下さい。
その後、ソフトウェアの全ての実装が終わります
PGI コンパイラとともにインストールされた Open MPI 使用法に関しては、こちらのページに説明しております。
|
**********************************************************
MPI
**********************************************************
This release contains version 2.1.2 of the Open MPI library.
Press enter to continue...
Do you want to install Open MPI onto your system? (y/n) y (インストールする場合 y)
Do you want to enable NVIDIA GPU support in Open MPI? (y/n) n (Open MPI の CUDA-aware 機能を使用する場合 y)
※ 上記の問いは NVIDIA GPUdirect 機能を使用する場合だけ y とするが、一般的には n として使わない方を選ぶ
Installing package openmpi-2.1.2-2018-x86-64
(略)
Installing package openmpi-2.1.2-2018-x86-64-llvm
(略)
Installing module files for PGI version(s): 16.10 16.9 17.1 2017 2018
Done
|
これにて、PGIソフトウェアの実装インストールは終了します。
次に、ライセンスキーの取得に関して、以下の設問が画面に現れます。 |
NOTICE: A STARTER 18.1 license key is available at:
/opt/pgi/license.dat-STARTER-18.1
Copy to /opt/pgi/license.dat to use by default,
or point to it with PGROUPD_LICENSE_FILE or LM_LICENSE_FILE.
(中略)
Do you wish to obtain permanent license key or configure license service? (y/n) n
後で、手動でライセンスキーファイルを入手するため、n を選択
(中略)
Do you want the files in the install directory to be read-only? [y,n]
n
|
これで、2018 バージョンのインストールが終了します。ライセンスキーの設定等は未了ですので、次の STEP4 にお進み下さい。
インストールが終了したら ダウンロードしたファイルとテンポラリな directory を消去してください。
|
# rm -rf /tmp/pgi
|
画面トップへ
|