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

ENABLE_MPI causes undefined reference to `conduit::relay::mpi::send_using_schema(conduit::Node const&, int, int, int)' #813

Open
yurivict opened this issue Sep 16, 2021 · 4 comments

Comments

@yurivict
Copy link

/usr/local/bin/ld: ../../lib/libascent_mpi.so: undefined reference to `conduit::relay::mpi::send_using_schema(conduit::Node const&, int, int, int)'
/usr/local/bin/ld: ../../lib/libascent_mpi.so: undefined reference to `conduit::relay::mpi::max_all_reduce(conduit::Node const&, conduit::Node&, int)'
/usr/local/bin/ld: ../../lib/libascent_mpi.so: undefined reference to `conduit::relay::mpi::min_all_reduce(conduit::Node const&, conduit::Node&, int)'
/usr/local/bin/ld: ../../lib/libascent_mpi.so: undefined reference to `conduit::relay::mpi::recv_using_schema(conduit::Node&, int, int, int)'
/usr/local/bin/ld: ../../lib/libascent_mpi.so: undefined reference to `conduit::relay::mpi::broadcast_using_schema(conduit::Node&, int, int)'
/usr/local/bin/ld: ../../lib/libascent_mpi.so: undefined reference to `conduit::relay::mpi::size(int)'
/usr/local/bin/ld: ../../lib/libascent_mpi.so: undefined reference to `conduit::relay::mpi::recv(conduit::Node&, int, int, int)'
/usr/local/bin/ld: ../../lib/libascent_mpi.so: undefined reference to `conduit::relay::mpi::send(conduit::Node const&, int, int, int)'
/usr/local/bin/ld: ../../lib/libascent_mpi.so: undefined reference to `conduit::relay::mpi::rank(int)'
/usr/local/bin/ld: ../../lib/libascent_mpi.so: undefined reference to `conduit::relay::mpi::sum_all_reduce(conduit::Node const&, conduit::Node&, int)'
/usr/local/bin/ld: ../../lib/libascent_mpi.so: undefined reference to `conduit::relay::mpi::all_gather_using_schema(conduit::Node&, conduit::Node&, int)'

Version: 0.7.1
conduit-0.7.2
clang-11
FreeBSD 13

@cyrush
Copy link
Member

cyrush commented Sep 16, 2021

@yurivict thanks for the report, can you share how conduit was configured? It seems like conduit was not built with MPI support.
If this is the case I would have expected it ascent to fail at compile time, not link time - as in #812.

MPI in Ascent does require Conduit's MPI support. I could strengthen some of the cmake configure checks if that is not clear.

@yurivict
Copy link
Author

conduit was configured with -DENABLE_MPI=ON.

@cyrush
Copy link
Member

cyrush commented Sep 16, 2021

Thanks, is there is some why I can try to replicate easily?

@yurivict
Copy link
Author

I found this while creating the FreeBSD port.

So if you could install FreeBSD into a VM, and try to compile the port science/ascent with the MPI line removed - you should be able to reproduce the 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