11. [ option for ubuntu on Windows10 ]
1. Xserver install
a. VcXsrv (https://sourceforge.net/projects/vcxsrv/)
2. マウスでコピー&ペースト (ref)
a. ウィンドウタイトルバーで右クリック
b. メニューから編集
13. 並列計算とMPI (Message Passing Interface)
並列計算のメリット
1. 大規模数値計算
2. 高速化も期待
MPI : 並列コンピューティング利用するための標準化された規格
1. CPU間のデータの送受信などを規定
2. FreeFem++ にいくつかのコマンドを実装
3. よく使う変数:
a. mpisize : The total number of processes,
b. mpirank : the id-number of my current process in (0,..., mpisize-1)
14. parallel solver と DDM
matrix u=A^-1 * b を
分割実行
sub matrix
sub matrix
sub matrix
sub matrix
sub matrix
sub matrix
parallel solver
DDM
15. Parallel Solver
行列ソルバーを並列版に変更
1. direct solver
a. MUMPS (MUltifrontal Massively Parallel sparse direct Solver)
b. SuperLU (Supernodal LU)
2. Krylov (iterative) solver
a. pARMS (parallel Algebraic Recursive Multilevel Solvers)
b. HIPS (Hierarchical Iterative Parallel Solver)
c. HYPRE (Parallel solvers for sparse linear systems featuring multigrid methods)
● メリット:プログラムは殆どそのまま
● デメリット:メインプログラムのほとんどは並列化されない
行列計算のみ
メインプログラム
16. Names functions Libraries real complex Types misc
MUMPS (MUltifrontal
Massively Parallel Solver)
defaulttoMUMPS() MUMPS FreeFem mumps mumps direct a direct method based on a multifrontal
approach
SuperLU distributed realdefaulttoSuperL
UDist()
real_SuperLU_DIST
_FreeFem
SuperLU
_DIST
previous
solver
direct LU factorization
SuperLU distributed complexdefaulttoSu
perLUDist()
complex_SuperLU_
DIST_FreeFem
previous
solver
SuperLU
_DIST
direct LU factorization
Pastix (Parallel Sparse
matrix package)
realdefaulttopastix() real_pastix_FreeFe
m
pastix previous
solver
direct direct and block ILU(k) iterative
methods
Pastix (Parallel Sparse
matrix package)
complexdefaulttopa
stix()
complex_pastix_Fre
eFem
previous
solver
pastix direct direct and block ILU(k) iterative
methods
HIPS ( Hierarchical
Iterative Parallel Solver )
defaulttohips() hips_FreeFem hips previous
solver
iterative/
direct
multilevel ILU
HYPRE ( High Level
Preconditioner )
defaulttohypre() hypre_FreeFem hypre previous
solver
iterative AMG (Algebraic MultiGrid) and
Parasails (Parallel Sparse
Approximate Inverse)
pARMS ( parallel
Algebraic Multilevel
Solver )
defaulttoparms() parms_FreeFem parms previous
solver
iterative RAS (Restricted Additive Schwarz)
and Schur Complement type
preconditioner