t-sakashita / rokko

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

test/mapping_1d/sizes_for_all_librariesがfailed #598

Closed t-sakashita closed 3 years ago

t-sakashita commented 3 years ago

test/mapping_1d/sizes_for_all_librariesが、1プロセスでもfailed

172: --------------------------------------------------------------------------
172: [==========] Running 1 test from 1 test suite.
172: [----------] Global test environment set-up.
172: [----------] 1 test from mapping_1d
172: [ RUN      ] mapping_1d.start_row
172: [       OK ] mapping_1d.start_row (1 ms)
172: [----------] 1 test from mapping_1d (1 ms total)
172: 
172: [----------] Global test environment tear-down
172: [==========] 1 test from 1 test suite ran. (1 ms total)
172: [  PASSED  ] 1 test.
172: *** The MPI_Comm_delete_attr() function was called after MPI_FINALIZE was invoked.
172: *** This is disallowed by the MPI standard.
172: *** Your MPI job will now abort.
172/521 Test #172: test_mapping_1d_sizes_for_all_libraries-1 ....................***Failed    1.20 sec

https://github.com/t-sakashita/rokko/runs/2904582877

t-sakashita commented 3 years ago

以下のエラーメッセージにあるように、MPIライブラリの問題か?

172: *** The MPI_Comm_delete_attr() function was called after MPI_FINALIZE was invoked.
172: *** This is disallowed by the MPI standard.
172: *** Your MPI job will now abort.

これは、OpenMPI固有の問題か? mpichでは起きないか?

main関数の戻り値resultも、調べてみる。

t-sakashita commented 3 years ago

Macでは、任意のプロセスで成功した。

t-sakashita commented 3 years ago

思い当たる原因はありますか? @wistaria

t-sakashita commented 3 years ago

とりあえず、Ubuntu18でmpichでビルドしてみるのが良いか?

t-sakashita commented 3 years ago

Ubuntu18@VirtualBoxで確かめた。 デフォルトのOpenMPIを使用

failedは、slepc-3.15.1の場合に、起きている。 Anasaziの場合には起きない。

t-sakashita commented 3 years ago
    solver.initialize(global_argc, global_argv);
    solver.finalize();

原因は、SlepcFinalizeが呼び出されていなかったこと。

  void finalize() { SlepcFinalize(); }
t-sakashita commented 3 years ago

1a3051e1ce5bbf509f73b546ed53a8162a6e324b

t-sakashita commented 3 years ago

6ee96aed0fbc1a01cd719a677d0874a3db2e3e5c

t-sakashita commented 3 years ago

ディレクトリtest/mapping_1dでctestを実行した時のエラーは、解消した。 https://github.com/t-sakashita/rokko/runs/2910761788