Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOSでmpprismを実行した時、linuxと異なるエラーが出る。 #6

Open
Seky17 opened this issue May 11, 2020 · 5 comments

Comments

@Seky17
Copy link
Collaborator

Seky17 commented May 11, 2020

ubuntuでprism_mp_linux.bin、macOSでprism_mp_darwin.binをビルドした後、mpprismを実行した時、ほぼ同様のテキストがターミナルに出力されるが、macOSでは加えて

*** Error: getline(): not interactive, use stdio.

というエラーが出力される。

@Seky17
Copy link
Collaborator Author

Seky17 commented May 11, 2020

ubuntuでの出力テキストの抜粋

PRISM 2.3, (C) Sato Lab, Tokyo Institute of Technology, August, 2017
B-Prolog Version 7.8b1, All rights reserved, (C) Afany Software 1994-2012.

This edition of B-Prolog is for evaluation, learning, and non-profit
research purposes only, and a license is needed for any other uses.
Please visit http://www.probp.com/license.htm for the detail.

***  PRISM ERROR: batch file not specified
Aborted by exception -- errorThe system is aborted by Rank #1.
The system is aborted by Rank #2.
The system is aborted by Rank #3.
(existence_error(prism_file,unknown),$pp_batch/1)
The system is aborted by Rank #0.
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 2 in communicator MPI_COMM_WORLD
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------

@Seky17
Copy link
Collaborator Author

Seky17 commented May 11, 2020

macOSでの出力テキストの抜粋

B-Prolog Version 7.8b1, All rights reserved, (C) Afany Software 1994-2012.

This edition of B-Prolog is for evaluation, learning, and non-profit
research purposes only, and a license is needed for any other uses.
Please visit http://www.probp.com/license.htm for the detail.


Type 'help' for usage.

*** Error: getline(): not interactive, use stdio.
The system is aborted by Rank #0.

*** Error: getline(): not interactive, use stdio.
The system is aborted by Rank #3.

*** Error: getline(): not interactive, use stdio.
The system is aborted by Rank #2.

*** Error: getline(): not interactive, use stdio.
The system is aborted by Rank #1.
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 2 in communicator MPI_COMM_WORLD
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------

@Seky17
Copy link
Collaborator Author

Seky17 commented May 11, 2020

bp4prism-linux.a と bp4prism-darwin.a との差異に起因している可能性が有る。

@kojima-r
Copy link
Collaborator

kojima-r commented Jun 2, 2020

mpprismの実行はファイルを指定する必要がある。以下のスクリプトでテストをするのが良い。
https://github.com/prismplp/prism/blob/master/testing/test_mp.sh
mac OSの方はprismが起動できていないのでprologディレクトリの方のインストールに失敗している可能性もあり

@Seky17
Copy link
Collaborator Author

Seky17 commented Jun 4, 2020

すみません。macOSで /src/prolog での make/make install を実行するのを忘れてしまっていました。docker版だとイメージ作成時にそこは勝手に行われて/src/cでの作業のみしていたので、その流れで忘れてしまっていたようです。お騒がせしました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants