Hello, I’m a bit new to the world of PGI, so I will try to explain this the best I can. I’m working with Mac OS 10.9.5 and PGI 15.1. I’m trying to compile, but I keep getting this error that I can’t seem to chase down.
I installed the PGI software with default options. Here are the environment vars I’m using:
ld: warning: directory not found for option '-L/proj/ta/libraries/mpich-3.1.3/osx86-64/pgi/15.1/Darwin-10.8.0-i386-64bit/lib'
I’ve tried quite a few different environment variable settings, but I keep ending up stuck with the above error. I have no idea where this option is coming from. It just seems to be limited to 15.1 for me- I try with 14.10 (and change the appropriate environment vars), and it compiles and runs fine.
Anyone have any idea what might be causing the issue or how I can chase it down?
The path for the installed mpi (that comes with pgi) is under /opt/pgi/osx86-64/2015/mpi/mpich - as set in .bashrc. I’ve checked that LD_LIBRARY_PATH for mpich is correct. Note that pgf90 seems to search in the wrong directory. I’m setting softlinks now.
In the interim, you can potentially work around this issue in a simpler way by setting the $MPIDIR environment variable to the location where the PGI-provided MPICH is installed, when invoking -Mmpi=mpich.
For example:
export MPIDIR=/opt/pgi/osx86-64/2015/mpi/mpich
The driver will use the value of $MPIDIR when passing -Mmpi=mpich, if $MPIDIR is set.