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

Segmentation Fault in hypre_MPI_Bcast #1205

Open
kumarvrai opened this issue Jan 14, 2025 · 1 comment
Open

Segmentation Fault in hypre_MPI_Bcast #1205

kumarvrai opened this issue Jan 14, 2025 · 1 comment

Comments

@kumarvrai
Copy link

Hello,
I am trying to run a CFD code (https://github.com/Nek5000/Nek5000) that uses Hypre preconditioners.
Everything compiles well bit I get segmentation fault during run time (log attached). There is some problem during hypre_MPI_Bcast call.
I am not sure about the cause, but the same code runs on a different cluster flawlessly. So, I guess there must be some issue with compilers/environment etc.

Any help is appreciated.

Vishal

Currently Loaded Modules:

  1. ucx/1.16.0-gcc 2) openmpi/5.0.5-gcc 3) gcc/12.3.0 4) cmake/3.25.1 5) bsc/1.0

*HYPRE_Int
hypre_MPI_Bcast( void buffer,
HYPRE_Int count,
hypre_MPI_Datatype datatype,
HYPRE_Int root,
hypre_MPI_Comm comm )
{
return (HYPRE_Int) MPI_Bcast(buffer, (hypre_int)count, datatype,
(hypre_int)root, comm);
}

/ proc 0 has the first row and col /
if (myid==0)
{
info[0] = ilower;
info[1] = jlower;
}
hypre_MPI_Bcast(info, 2, HYPRE_MPI_INT, 0, comm);


Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0 0x7f7a23b0edef in ???
#1 0x7f7a2417e891 in ???
#2 0x61ef2f in hypre_MPI_Bcast
|\\\\at /home/bsc/bsc021712/Trunk-NEK-19/Nek5000_RANS/3rd_party/hypre/hypre/src/utilities/mpistubs.c:994
#3 0x562c87 in HYPRE_IJMatrixCreate
|\\\\at /home/bsc/bsc021712/Trunk-NEK-19/Nek5000_RANS/3rd_party/hypre/hypre/src/IJ_mv/HYPRE_IJMatrix.c:115
#4 0x52aaaa in fem_assembly
|\\\\at /home/bsc/bsc021712/Trunk-NEK-19/Nek5000_RANS/core/experimental/fem_amg_preco.c:409
#5 0x52c1ea in fem_amg_setup_
|\\\\at /home/bsc/bsc021712/Trunk-NEK-19/Nek5000_RANS/core/experimental/fem_amg_preco.c:93
#6 0x437393 in prinit_
|\\\\at /home/bsc/bsc021712/Trunk-NEK-19/Nek5000_RANS/core/drive2.f:1801
#7 0x42f0b0 in nek_init_
|\\\\at /home/bsc/bsc021712/Trunk-NEK-19/Nek5000_RANS/core/drive1.f:116
#8 0x405c73 in nekton
|\\\\at /home/bsc/bsc021712/Trunk-NEK-19/Nek5000_RANS/core/drive.f:7
#9 0x405c73 in main
|\\\\at /home/bsc/bsc021712/Trunk-NEK-19/Nek5000_RANS/core/drive.f:11

@victorapm
Copy link
Contributor

@kumarvrai this seems to be an issue with your environment. Could you provide full instructions to reproduce your problem?

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