Reputation: 1727
I'm trying to statically link the Nasa Parallel Benchmarks (NPB). My goal is to avoid installing the fortran compiler (mpif77) on the cluster nodes.
I don't see any static linking options in the mpif77 documentation.
Upvotes: 0
Views: 606
Reputation: 60078
OpenMPI can be built as a static library. Try linking with -static
. See https://gcc.gnu.org/onlinedocs/gcc-4.4.4/gfortran/Option-Summary.html#Option-Summary for more options.
See http://www.open-mpi.org/faq/?category=building#static-build if the static library is not built and contact your tech support or do it yourself if you are an admin.
Upvotes: 1