JuliaSmoothOptimizers / MUMPS.jl

A Julia Interface to MUMPS
Other
42 stars 14 forks source link

MPI_Comm_f2c #82

Open ricardofrantz opened 2 years ago

ricardofrantz commented 2 years ago

Hi, I am facing an error, but I can not find info about it....

% _mpirun -np 4 julia MUMPS.jl_                                        
*** The MPI_Comm_f2c() function was called before MPI_INIT was invoked.
*** This is disallowed by the MPI standard.

% mpirun --version HYDRA build details: Version: 4.0.2 Release Date: Thu Apr 7 12:34:45 CDT 2022 CC: clang
Configure options: '--disable-option-checking' '--prefix=/opt/homebrew/Cellar/mpich/4.0.2' '--disable-dependency-tracking' '--enable-fast=all,O3' '--enable-g=dbg' '--enable-romio' '--enable-shared' '--with-pm=hydra' 'FC=gfortran-11' 'FCFLAGS=-fallow-argument-mismatch ' 'F77=gfortran-11' '--disable-silent-rules' '--mandir=/opt/homebrew/Cellar/mpich/4.0.2/share/man' 'FFLAGS=-fallow-argument-mismatch ' 'CC=clang' 'CXX=clang++' '--cache-file=/dev/null' '--srcdir=.' 'CFLAGS= ' 'LDFLAGS=' 'LIBS=' 'CPPFLAGS= ' Process Manager: pmi Launchers available: ssh rsh fork slurm ll lsf sge manual persist Topology libraries available: hwloc Resource management kernels available: user slurm ll lsf sge pbs cobalt Demux engines available: poll select

Any ideas? R

dpo commented 2 years ago

What's in MUMPS.jl_? How did you install MUMPS? Does it work with the script in examples/?

ricardofrantz commented 2 years ago

Hi, I tried the suggested script and also reinstalling MPICH via brew and I think the problem is connected to MPI.jl

% mpirun -np 4 julia mpi_mumps.jl
┌ Warning: You appear to have run julia under a different mpiexec than the one used by MPI.jl. │ See the documentation for details. └ @ MPI ~/.julia/packages/MPI/08SPr/src/environment.jl:38 ┌ Warning: You appear to have run julia under a different mpiexec than the one used by MPI.jl. │ See the documentation for details. └ @ MPI ~/.julia/packages/MPI/08SPr/src/environment.jl:38 ┌ Warning: You appear to have run julia under a different mpiexec than the one used by MPI.jl. │ See the documentation for details. └ @ MPI ~/.julia/packages/MPI/08SPr/src/environment.jl:38 ┌ Warning: You appear to have run julia under a different mpiexec than the one used by MPI.jl. │ See the documentation for details. └ @ MPI ~/.julia/packages/MPI/08SPr/src/environment.jl:38 The MPI_Comm_f2c() function was called before MPI_INIT was invoked. This is disallowed by the MPI standard. Your MPI job will now abort. The MPI_Comm_f2c() function was called before MPI_INIT was invoked. This is disallowed by the MPI standard. Your MPI job will now abort. The MPI_Comm_f2c() function was called before MPI_INIT was invoked. This is disallowed by the MPI standard.

dpo commented 2 years ago

Sorry for the delay here. Is this on Linux?