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

PGI compilation problem when MPI enabled #26

Open
jmrosinski opened this issue Jun 1, 2018 · 4 comments
Open

PGI compilation problem when MPI enabled #26

jmrosinski opened this issue Jun 1, 2018 · 4 comments

Comments

@jmrosinski
Copy link
Owner

I was confused before about sometimes PGI failing and sometimes succeeding. I now see the issue is "with MPI" fails and "without MPI" succeeds. From theia supercomputer, see attached configout.txt and makeout.txt, where mpicc runs pgcc and the MPI library is openmpi. As I recall, I get similar (maybe identical) on my home machine. I do not understand what is being complained about in make.output. Note that PGI+openmpi compiles and runs to successful completion in the old (pre-autotools) stuff.

configout.txt
makeout.txt

@jmrosinski
Copy link
Owner Author

Not shown is the fact that "make clean" was done in between "configure" and "make".

@jmrosinski
Copy link
Owner Author

Just checked and behavior on home Linux machine is the same: CC=pgcc works fine, but CC=mpicc (runs pgcc) fails with the same complaint.

@jmrosinski
Copy link
Owner Author

Per request in issue #25 attached are config.log and output from "make" which is failing in a way I don't understand. NOTE: This strange failure occurs ONLY with when enabling MPI (mpicc) and ONLY when attempting a shared library build with PGI.
config.log
out.make.mpicc_pgi.txt

@edhartnett
Copy link
Collaborator

This worked pre-autotools because you were only ever building static libraries. Now you are attempting shared libraries.

On the PGI compiler you are using, are shared libraries supported? Lots of HPC places and software automatically assume static-only. (Not a good idea, IMO, but common.)

If the mpicc is not built for shared, then only static libraries will work with that compiler.

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