[ 地球流体電脳倶楽部 / dcpam 公開領域 ] [ ディレクトリ管理の手引き / SIGEN ]

netcdf ビルドログ @ cps-whale03 with pgi compiler


  1. 準備
  2. ビルド

準備

必要なファイルの取得

必要なファイル

http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-3.6.3.tar.gz

ビルド

netcdf

ビルドは ~/tmp/netcdf で行う.

展開

% gzip -cd netcdf-3.6.3.tar.gz | tar -xvf -
% cd netcdf-3.6.3

環境変数の設定, configure, make

% setenv CC gcc
% setenv CFLAGS    '-O2'
% setenv CXX
% setenv CPPFLAGS  '-DNDEBUG -DpgiFortran'
% setenv CXXFLAGS
% setenv FC pgf90
% setenv F77 pgf90
% setenv F90 pgf90
% setenv FFLAGS    '-O2 -w -V -nofma'

なお, -nofma のオプションは, PGI コンパイラの bulldozer アーキテクチャ上での バグに対応するためである. しかし, netcdf のコンパイルにおいて必要になるか どうかは不明 (念の為に付けている).

% ./configure --prefix=/home/yot/local/netcdf-3.6.3-pgf-gnu |& tee zzz-config.log

% make | & tee zzz-make.log
% make check | & tee zzz-make_check.log
% make install | & tee zzz-make_install.log

DCPAM Development Group / GFD Dennou Staff dcstaff@gfd-dennou.org
Last Updated: unknown, Since: unknown