As I understand, -Bstatic is used for small memory size program. My mm5.mpp has 3 domains with high resolution and even input objects are larger than 2G. So, I use -mcmodel=medium and -Mlarge_arrays together for both compiler (-FFLAGS) and link (-LDFLAGS) flags
This is correct for the 6.0 release. With 6.1, we were able to create static libraries (those in libso) which can be linked with “-mcmodel=medium”.
One more question, what the maximum size (?GB) of the output file object can be created if -mcmodel=medium and -Mlarge_array are used for making executable objects?
Off hand I don’t know, but I’m guessing it’s rather large. I’ll try to find an answer for you, though.
The error still exist. I don’t know why? Anyone have ever been met this kind of problem? Is there bugs in pgi/linux86-64/6.0/?
It’s not a bug. Your application simply can’t find one of it’s dynamic libraries. Since the actual error changed, my guess is that by setting the LD_LIBRARY_PATH, your application was able to find libpgf90.so, but now can’t find a different library. From one of the nodes, use the ‘ldd’ utility to determine the application’s dependencies, i.e. 'ldd '. Next, find where the missing libraries are located and add this path to your LD_LIBRARY_PATH.