t-sakashita / rokko

Integrated Interface for libraries of eigenvalue decomposition
Boost Software License 1.0
10 stars 2 forks source link

Elementalのforkバージョンを用いる #610

Open t-sakashita opened 1 year ago

t-sakashita commented 1 year ago

Elementalは、forkされて、開発が継続されている。 https://github.com/LLNL/Elemental

t-sakashita commented 1 month ago

GPUを使わなくても、以下のライブラリのインストールが必要: https://github.com/LLNL/Aluminum

Aluminumのインストール方法

cmake -DCMAKE_BUILD_TYPE=Debug  -DCMAKE_CXX_COMPILER=mpicxx ~/aluminum
make
t-sakashita commented 1 month ago

Elementalのインストール

cmake -DCMAKE_BUILD_TYPE=Release  -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_C_COMPILER=mpicc -DCMAKE_Fortran_COMPILER=mpif90 -DCMAKE_CXX_FLAGS=-Wl,-ld_classic -DCMAKE_C_FLAGS=-Wl,-ld_classic -
DCMAKE_Fortran_FLAGS=-Wl,-ld_classic -DELEM_SHARED_LIBRARIES=ON -DCMAKE_SKIP_BUILD_RPATH=OFF -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_MACOSX_RPATH=1 -DEL_IGNORE_OSX_GCC_ALIGNMENT_PROBLEM=ON -DAluminum_DIR=~/Downloads/aluminum/build ..

DAluminum_DIRは、インストールディレクトリでもビルドディレクトリでも良い。

t-sakashita commented 1 month ago

サンプルプログラムの実行

mpirun -np 4 ./HermitianEig 

上記のビルド・実行は、Apple M3で成功した。

t-sakashita commented 1 month ago

インストールスクリプトを作る。