DCPAM ビルドログ @ pifront with gnu コンパイラ + HPE MPI (旧 SGI MPT)

  • 作業日 2021/09/24
  • 作業者 高橋芳幸

DCPAM を π-computer で動かす.

このページは, gnu コンパイラ + HPE MPI (旧 SGI MPT) を用いた場合.

環境

  • π-computer
  • Red Hat Enterprise Linux release 8.2 (Ootpa)
  • gcc version 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC)
  • HPE MPI

準備

環境の準備

$ module load mpt

ライブラリのビルド

必要なファイルの取得

必要なファイル

ビルド

DCPAM

ここでは dcpam5-20170306.tgz を使って説明.

$ wget http://www.gfd-dennou.org/library/dcpam/dcpam5/dcpam5-20170306.tgz
$ tar xvf dcpam5-20170306.tgz

$ cd dcpam5-20170306

$ export FC=mpiifort
$ export FFLAGS="-march=core-avx2 -qopenmp -DSLTT2D1DMONOTONIC -DKDONLY"


$ ./configure \
  --with-netcdf=/home/G50002/yot/local/netcdf-c-4.8.0-fortran-4.5.3-intel/lib/libnetcdf.a \
  --with-netcdff=/home/G50002/yot/local/netcdf-c-4.8.0-fortran-4.5.3-intel/lib/libnetcdff.a \
  --with-netcdf-include=/home/G50002/yot/local/netcdf-c-4.8.0-fortran-4.5.3-intel/include/netcdf.inc \
  --with-ispack=/home/G50002/yot/local/ispack-1.0.4-intel/lib/libisp.a \
  --with-gtool5=/home/G50002/yot/local/gtool5-20160613-intel/lib/libgtool5.a \
  --with-spml=/home/G50002/yot/local/spml-0.8.0-intel/lib/libspml-omp.a \
  --enable-mpi

$ make

... だめだ. 下のエラーが出て上手く行かない.

mpiifort -o sltt.o -c -march=core-avx2 -qopenmp -DSLTT2D1DMONOTONIC -DKDONLY -I../../include -I/home/G50002/yot/local/spml-0.8.0-intel/include -I/home/G50002/yot/local/gtool5-20160613-intel/include -I/home/G50002/yot/local/netcdf-c-4.8.0-fortran-4.5.3-intel/include  -DLIB_MPI sltt.F90
sltt.F90(867): catastrophic error: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report.  Note: File and line given may not be explicit cause of this error.
compilation aborted for sltt.F90 (code 1)
make[2]: *** [../../rules.make:23: sltt.o] Error 1
make[2]: Leaving directory '/home/G50002/yot/work/dcmodel/dcpam/dcpam5-20170306/src/sltt'
make[1]: *** [Makefile:36: lib] Error 1
make[1]: Leaving directory '/home/G50002/yot/work/dcmodel/dcpam/dcpam5-20170306/src'
make: *** [Makefile:52: all] Error 2

困った.

ここから下は昔のコピー.

DCPAM の実行

DCPAM を実行する際は, 以下のようにジョブスクリプトを実行した.

$ qsub ./vizfront_dcpam_script.sh

ジョブスクリプトの中身は以下の通り.

#!/bin/bash

#PBS -N S14001500
##PBS -N serial
##PBS -q uv-test
#PBS -q uv-large
#PBS -o stdout.log
#PBS -e stderr.log
#PBS -l select=1:ncpus=4:mpiprocs=4
##PBS -l select=1:ncpus=1
cd ${PBS_O_WORKDIR}
mpiexec_mpt -np 4 dplace -s1 ./bin/dcpam_main -N=./conf/dcpam_E_T21L26.conf

また, 実行中のジョブを確認する場合は以下のように行った.

$ qstat -a

ジョブスクリプトの中身やその他詳細は pi-VizStudio 利用者マニュアルを参照すること.