[Error]= [ 0] /lib/x86_64-linux-gnu/libc.so.6 when using mpirun

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
remit
Posts: 15
Joined: Mon Jun 21, 2021 12:40 pm
Location: bmkg

[Error]= [ 0] /lib/x86_64-linux-gnu/libc.so.6 when using mpirun

#1 Unread post by remit »

Dear community,

I managed to generate a romsM file after setting the bash file and setting the openmpi directory used.
But when I run the process using:

Code: Select all

mpirun -np 9 ./romsM roms_file.in
and of course i set NtileI as 3 and NtileJ as 3

I got the error:

Code: Select all

[LAPTOP-U4JKE22G:03951] *** Signal receiving process ***
[LAPTOP-U4JKE22G:03951] Signal: Segmentation fault (11)
[LAPTOP-U4JKE22G:03951] Signal code: Address not mapped (1)
[LAPTOP-U4JKE22G:03951] Failed at address: (nil)
[LAPTOP-U4JKE22G:03951] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f497abba520]
[LAPTOP-U4JKE22G:03951] *** End of error message ***
Segmentation fault
In case of romsS I managed to running roms with perfectly, but in the case of romsM I got problem like the above. Can someone help me to solve this problem?

robertson
Site Admin
Posts: 227
Joined: Wed Feb 26, 2003 3:12 pm
Location: IMCS, Rutgers University

Re: [Error]= [ 0] /lib/x86_64-linux-gnu/libc.so.6 when using mpirun

#2 Unread post by robertson »

make sure that the mpirun you are using is from the same openmpi directory that you compiled with. For example, if you are compiling with

Code: Select all

/self/compiled/openpmi/bin/mpif90
make sure that the command

Code: Select all

which mpirun
returns

Code: Select all

/self/compiled/opempi/bin/mpirun
and not something like

Code: Select all

/usr/bin/mpirun
If the paths to mpif90 and mpirun match then recompile with USE_DEBUG = on in your build_roms.sh. Then run the model with:

Code: Select all

mpirun -np 9 ./romsG roms_file.in
and see if you get a more useful error message.

remit
Posts: 15
Joined: Mon Jun 21, 2021 12:40 pm
Location: bmkg

Re: [Error]= [ 0] /lib/x86_64-linux-gnu/libc.so.6 when using mpirun

#3 Unread post by remit »

tks robertson,
My mistake was to let compile read openmpi in its default position, which is usr/bin/mpirun
Thanks for your suggestion

Post Reply