I need to use the mcmodel=medium flag in my main program.
With this flag, my calls to the NetCDF routine nf90_get_var returns only 0s
Without the flag, it returns the correct values.
I saw the post: https://forums.developer.nvidia.com/t/usr-bin-ld-share-liblam-libs-liblam-so-no-s/130411/1
and I tried to compile NetCDF with the following env:
env CC=pgcc CXX=pgCC FC=pgf90 F90=pgf90 CFLAGS=" -O2 -fpic -Mlarge_arrays" CXXFLAGS=" -fpic -Mlarge_arrays" FFLAGS=" -O2 -w -fpic -Mlarge_arrays" F90FLAGS=" -O2 -w -fpic -Mlarge_arrays"
Unfortunately, It was unsuccessful.
Perhaps someone can help me.
pgf90 6.2-5 64-bit target on x86-64 Linux
(Got the same results with 7.0-4)