-
Notifications
You must be signed in to change notification settings - Fork 7
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
Compilation problem "error: ‘MPI_part1d_forwardmodel’ was not declared in this scope" #3
Comments
Hello Volker
I am fairly certain the problem is that when you have compiled the underlying rj-MCMC library from (http://www.iearth.org.au/codes/rj-MCMC) you have not compiled it with MPI enabled.
On the Win10 emulator version of Ubuntu 20.04 I do the following
> mpicc –showme (to see where the openmpi include and lib paths are, which gives the following)
gcc -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include -pthread -L/usr/lib/x86_64-linux-gnu/openmpi/lib -lmpi
Note that these are then used in the build script below for the (--with-openmpi --with-openmpi-include-path --with-openmpi-lib-path)
#!/bin/bash
### RJMCMC-1.0.11 source code dir is: /mnt/c/Users/rossc/work/code/third_party/iearth/RJMCMC-1.0.11
### RJMCMC-1.0.11 install dir is: /mnt/c/Users/rossc/work/code/third_party/iearth/RJMCMC-1.0.11/ubuntu-win10/gnu
export LIBRJMCMC_ROOT=/mnt/c/Users/rossc/work/code/third_party/iearth/RJMCMC-1.0.11/ubuntu-win10/gnu
./configure --prefix=$LIBRJMCMC_ROOT --with-openmpi --with-openmpi-include-path=/usr/lib/x86_64-linux-gnu/openmpi/include --with-openmpi-lib-path=/usr/lib/x86_64-linux-gnu/openmpi/lib
make clean
make
make install
If your openmpi is set up nicely you may not need the --with-openmpi-include-path or --with-openmpi-lib-path but definitely use the --with-openmpi
If that’s successful you should then be able to go back and compile rjmcmcmt
I hope that helps.
Ross
From: Volker Rath ***@***.***>
Sent: Friday, 3 June 2022 4:45 AM
To: GeoscienceAustralia/rjmcmcmt ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [GeoscienceAustralia/rjmcmcmt] Compilation problem "error: ‘MPI_part1d_forwardmodel’ was not declared in this scope" (Issue #3)
Hi,
I'm compiling under ubuntu 20.04 with gcc 9.4, and openmpi 4.0.3. However I get the error:
../src/rjmcmcmt.cpp: In member function ‘int cRjMcMCMT::run()’:
../src/rjmcmcmt.cpp:319:30: error: ‘MPI_part1d_forwardmodel’ was not declared in this scope; did you mean ‘part1d_forwardmodel’?
319 | resultset1dfm_t* results = MPI_part1d_forwardmodel(burninsamples,
| ^~~~~~~~~~~~~~~~~~~~~~~
| part1d_forwardmodel
make: *** [rjmcmcmt.make:24: ../src/rjmcmcmt.o] Error 1
Can you help?
—
Reply to this email directly, view it on GitHub <#3> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABO456UVUYCZLEZDDY6WZULVND6MPANCNFSM5XV3TVVA> .
You are receiving this because you are subscribed to this thread. <https://github.com/notifications/beacon/ABO456VDSNVZ7MVC3QXVEDTVND6MPA5CNFSM5XV3TVVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4SYECJZQ.gif> Message ID: ***@***.*** ***@***.***> >
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm compiling under ubuntu 20.04 with gcc 9.4, and openmpi 4.0.3. However I get the error:
../src/rjmcmcmt.cpp: In member function ‘int cRjMcMCMT::run()’:
../src/rjmcmcmt.cpp:319:30: error: ‘MPI_part1d_forwardmodel’ was not declared in this scope; did you mean ‘part1d_forwardmodel’?
319 | resultset1dfm_t* results = MPI_part1d_forwardmodel(burninsamples,
| ^~~~~~~~~~~~~~~~~~~~~~~
| part1d_forwardmodel
make: *** [rjmcmcmt.make:24: ../src/rjmcmcmt.o] Error 1
Can you help?
The text was updated successfully, but these errors were encountered: