Navigation :
Top/netcdf with Intel Fortan for Linux
- バックアップ一覧
- 差分 を表示
- ソース を表示
- バックアップ を表示
- netcdf with Intel Fortan for Linux へ行く。
- 追加された行はこの色です。
- 削除された行はこの色です。
** netcdf with Intel Fortran for Linux [#q50a9c38] netcdf with Intel Fortran for Linux [#q50a9c38] *** netcdf with Intel Fortran 10.0 for Linux [#veb0742f] + netcdf-3.6.2をダウンロ−ドして展開.コンパイル×(libstdc+xx) + netcdf-3.6.1をダウンロ−ドして展開. * netcdf-4.0.X [#xe728b3b] + netcdf-4.0をダウンロ−ドして展開 + netcdf-4.0をダウンロ−ドして展開 + 以下の環境を設定し, setenv FC ifort setenv FC90 ifort setenv CC icc setenv CXX icpc setenv FFLAGS "-g -O2 -mp -recursive" setenv CFLAGS "-g -O" setenv CXXFLAGS "-g" setenv CPPFLAGS "-DpgiFortran" -- ./configure --prefix=/usr/local/netcdf-ifort_10.0 -- ./configure --prefix=/usr/local/netcdf4-ifort_10.0 -- make check -- mkdir /usr/local/netcdf-ifort --- エラーが無いか確認 -- make install - インストール後の環境設定 setenv NETCDF /usr/local/netcdf-ifort setenv NETCDF /usr/local/netcdf4-ifort setenv NCHOME $NETCDF setenv NETCDFHOME $NETCDF setenv NETCDF_LIBDIR $NETCDF/lib setenv NETCDF_INCDIR $NETCDF/include setenv PATH $NETCDF/bin:"$PATH" setenv LD_LIBRARY_PATH $NETCDF/lib:"$LD_LIBRARY_PATH" *** netcdf with Intel Fortran 9.0 for Linux [#n7ed6bac] + netcdf 3.6.0ではコンパイルできなかった. + netcdf-3.6.1をダウンロ−ドして展開. * netcdf-3.6.X [#x17782ea] ** netcdf with Intel Fortran 10.0 for Linux [#veb0742f] + netcdf-3.6.Xをダウンロ−ドして展開.コンパイル×(libstdc+xx) + netcdf-3.6.Xをダウンロ−ドして展開. + 以下の環境を設定し, -- ./configure --prefix=/usr/local/netcdf-ifort -- make check (netcdf-3.6.0まではmake testだった) -- mkdir /usr/local/netcdf-ifort -- make install setenv FC ifort setenv FC90 ifort setenv CC icc setenv CXX icpc setenv FFLAGS "-g -O2 -mp -recursive" setenv CFLAGS "-g -O" setenv CXXFLAGS "-g" setenv CPPFLAGS "-DpgiFortran" -- ./configure --prefix=/usr/local/netcdf-ifort_10.0 -- make check -- mkdir /usr/local/netcdf-ifort -- make install - インストール後の環境設定 setenv NETCDF /usr/local/netcdf-ifort setenv NCHOME $NETCDF setenv NETCDFHOME $NETCDF setenv NETCDF_LIBDIR $NETCDF/lib setenv NETCDF_INCDIR $NETCDF/include setenv PATH $NETCDF/bin:"$PATH" setenv LD_LIBRARY_PATH $NETCDF/lib:"$LD_LIBRARY_PATH" *** netcdf with Intel Fortran 8.1 for Linux [#d5d1d316] source /opt/intel_fc_80/bin/ifortvars.csh setenv FC "ifort" setenv FFLAGS "-g -O2 -mp -recursive" setenv CPPFLAGS "-DNDEBUG -DpgiFortran" setenv CC gcc setenv CXX g++ setenv CFLAGS "-g -O2 -march=pentium3" netcdfを展開する。 ./configure --prefix=/usr/local/netcdf - [[参考:http://www.unidata.ucar.edu/software/netcdf/docs/other-builds.html#pg6]] *** netcdf with Intel Fortran 7.0 for Linux [#x7863c15] g77用のnetcdfと共存してIFC(F90)用のnetcdf環境を構築。 * Archive [#dc984841] - [[netcdf/netcdf with Intel Fortran for Linux - 9.0]] - [[netcdf/netcdf with Intel Fortran for Linux - 8.0]] - [[netcdf/netcdf with Intel Fortran for Linux - 7.0]] + netcdf(3.5.1)をダウンロード + 以下の環境を設定。 -- 'CPPFLAGS=-DNAGf90Fortran'は重要。 # # intel C and Fortran Version 7.1 # setenv IA32ROOT '/opt/intel/compiler70/ia32' setenv FC $IA32ROOT/bin/ifc setenv FC90 $IA32ROOT/bin/ifc setenv CC $IA32ROOT/bin/icc setenv CXX $IA32ROOT/bin/icc setenv CPPFLAGS '-DNAGf90Fortran' setenv INTEL_FLEXLM_LICENSE /opt/intel/licenses/ set path = ( $path $IA32ROOT/bin ) set LIBRARY_PATH = ( $LD_LIBRARY_PATH $IA32ROOT/lib ) alias f77 'ifc -O3' alias f77o 'ifc -o \!* \!*.f -O3' - MakeしてCompile ./configure --prefix=/usr/local/netcdf-ifc make clean make make install g77用のnetcdfと混在させるため、libファイルの名前を変更 mv /usr/local/netcdf-ifc/lib/libnetcdf.a /usr/local/netcdf-ifc/lib/libnetcdf-ifc.a mv /usr/local/netcdf-ifc/lib/libnetcdf_c++.a /usr/local/netcdf-ifc/lib/libnetcdf-ifc_c++.a -最後に環境設定 emacs /etc/ld.so.confで以下の行を追加 - /usr/local/netcdf-ifc/lib /sbin/ldconfig -v * Link [#z30dbf9a] - [[参考:http://www.unidata.ucar.edu/software/netcdf/docs/other-builds.html#pg6]] - コンパイルの例 ifc -o TEST test.f90 -I/usr/local/netcdf-ifc/include -L/usr/local/netcdf-ifc/lib -lnetcdf-ifc