Error when compile WRF 4.2.2 with nv 21.3

WRF 4.2.2

error msg
time mpif90 -o start_em.o -c -O3 -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /fast1/janhon/WRF/main -I/fast1/janhon/WRF/external/esmf_time_f90 -I/fast1/janhon/WRF/main -I/fast1/janhon/WRF/external/io_netcdf -I/fast1/janhon/WRF/external/io_int -I/fast1/janhon/WRF/frame -I/fast1/janhon/WRF/share -I/fast1/janhon/WRF/phys -I/fast1/janhon/WRF/wrftladj -I/fast1/janhon/WRF/chem -I/fast1/janhon/WRF/inc -I/ibm2/nv_2021.2/netcdf480/include -r4 -i4 start_em.f90
NVFORTRAN-F-0007-Subprogram too large to compile at this optimization level (start_em.f90: 2365)
NVFORTRAN/x86-64 Linux 21.3-0: compilation aborted
2.08user 0.10system 0:02.20elapsed 99%CPU (0avgtext+0avgdata 96216maxresident)k
12432inputs+72outputs (0major+32714minor)pagefaults 0swaps
make[2]: [start_em.o] Error 2 (ignored)
pgfortran-Fatal-/ibm2/pgi/pgi2021.3/Linux_x86_64/21.3/compilers/bin/tools/fort2 TERMINATED by signal 11
Arguments to /ibm2/pgi/pgi2021.3/Linux_x86_64/21.3/compilers/bin/tools/fort2
/ibm2/pgi/pgi2021.3/Linux_x86_64/21.3/compilers/bin/tools/fort2 /tmp/nvfortranIfLdMvZ5VN3e.ilm -fn …/phys/module_radiation_driver.f90 -opt 3 -terse 1 -inform severe -x 51 0x20 -x 119 0xa10000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 17 -x 19 0x400000 -x 28 0x40000 -x 120 0x10000000 -x 70 0x8000 -x 122 1 -x 125 0x20000 -quad -vect 56 -y 34 16 -x 34 0x8 -x 32 28835840 -y 19 8 -y 35 0 -x 42 0x30 -x 39 0x40 -x 39 0x80 -x 59 4 -x 129 2 -tp skylake -x 120 0x1000 -x 124 0x1400 -y 15 2 -x 57 0x3b0000 -x 58 0x48000000 -x 49 0x100 -astype 0 -x 121 1 -x 183 4 -x 121 0x800 -x 68 0x1 -x 8 0x40000000 -x 70 0x40000000 -x 56 0x10 -x 54 0x10 -x 249 110 -x 68 0x20 -x 70 0x40000000 -x 8 0x40000000 -x 164 0x800000 -x 85 0x2000 -x 85 0x4000 -x 34 0x40000000 -x 53 0x800000 -x 68 0x1 -x 39 4 -x 56 0x10 -x 26 0x10 -x 26 1 -x 56 0x4000 -x 124 1 -y 163 0xc0000000 -x 189 0x10 -y 189 0x4000000 -x 9 1 -x 72 0x1 -x 136 0x11 -x 37 0x480000 -x 9 1 -x 72 0x1 -x 136 0x11 -x 37 0x480000 -y 124 0x8 -cci /tmp/nvfortranYfLdwcoHsGhl.cci -cmdline ‘+pgfortran …/phys/module_radiation_driver.f90 -o …/phys/module_radiation_driver.o -c -O3 -Mvect=simd -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /fast1/janhon/WRF/main -I/fast1/janhon/WRF/external/esmf_time_f90 -I/fast1/janhon/WRF/main -I/fast1/janhon/WRF/external/io_netcdf -I/fast1/janhon/WRF/external/io_int -I/fast1/janhon/WRF/frame -I/fast1/janhon/WRF/share -I/fast1/janhon/WRF/phys -I/fast1/janhon/WRF/wrftladj -I/fast1/janhon/WRF/chem -I/fast1/janhon/WRF/inc -I/ibm2/nv_2021.2/netcdf480/include -r4 -i4 -I/ibm2/nv_2021.2a/openmpi410/include -I/ibm2/nv_2021.2a/openmpi410/lib’ -stbfile /tmp/nvfortrancfLdgv_lgyx3.stb -asm /tmp/nvfortrancfLdgCWKGj8T.ll
7.03user 0.53system 0:22.32elapsed 33%CPU (0avgtext+0avgdata 67168maxresident)k
24304inputs+349312outputs (8major+47061minor)pagefaults 0swaps
make[2]: […/phys/module_radiation_driver.o] Error 127 (ignored)

is ok when using nv 21.2 or nv 21.1
or Change -O3 to -O1,this ok

[janhon@hope3 phys]$ time mpif90 -o module_radiation_driver.o -c -O2 -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /fast1/janhon/wrf/WRF-4.2.2/main -I/fast1/janhon/wrf/WRF-4.2.2/external/esmf_time_f90 -I/fast1/janhon/wrf/WRF-4.2.2/main -I/fast1/janhon/wrf/WRF-4.2.2/external/io_netcdf -I/fast1/janhon/wrf/WRF-4.2.2/external/io_int -I/fast1/janhon/wrf/WRF-4.2.2/frame -I/fast1/janhon/wrf/WRF-4.2.2/share -I/fast1/janhon/wrf/WRF-4.2.2/phys -I/fast1/janhon/wrf/WRF-4.2.2/wrftladj -I/fast1/janhon/wrf/WRF-4.2.2/chem -I/fast1/janhon/wrf/WRF-4.2.2/inc -I/ibm2/nv_wrf2/netcdf480/include -r4 -i4 module_radiation_driver.f90
pgfortran-Fatal-/ibm2/pgi/pgi2021.3/Linux_x86_64/21.3/compilers/bin/tools/fort2 TERMINATED by signal 11
Arguments to /ibm2/pgi/pgi2021.3/Linux_x86_64/21.3/compilers/bin/tools/fort2
/ibm2/pgi/pgi2021.3/Linux_x86_64/21.3/compilers/bin/tools/fort2 /tmp/nvfortranW5UdqcWVP5uW.ilm -fn module_radiation_driver.f90 -opt 2 -terse 1 -inform severe -x 51 0x20 -x 119 0xa10000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 17 -x 19 0x400000 -x 28 0x40000 -x 120 0x10000000 -x 70 0x8000 -x 122 1 -x 125 0x20000 -quad -vect 56 -y 34 16 -x 34 0x8 -x 32 28835840 -y 19 8 -y 35 0 -x 42 0x30 -x 39 0x40 -x 39 0x80 -x 59 4 -x 129 2 -tp skylake -x 120 0x1000 -x 124 0x1400 -y 15 2 -x 57 0x3b0000 -x 58 0x48000000 -x 49 0x100 -astype 0 -x 121 1 -x 183 4 -x 121 0x800 -x 68 0x1 -x 8 0x40000000 -x 70 0x40000000 -x 56 0x10 -x 54 0x10 -x 249 110 -x 68 0x20 -x 70 0x40000000 -x 8 0x40000000 -x 164 0x800000 -x 85 0x2000 -x 85 0x4000 -x 34 0x40000000 -x 53 0x800000 -x 68 0x1 -x 39 4 -x 56 0x10 -x 26 0x10 -x 26 1 -x 56 0x4000 -x 124 1 -y 163 0xc0000000 -x 189 0x10 -y 189 0x4000000 -x 9 1 -x 72 0x1 -x 136 0x11 -x 37 0x480000 -x 9 1 -x 72 0x1 -x 136 0x11 -x 37 0x480000 -y 124 0x8 -cci /tmp/nvfortranW5UdquWfSduw.cci -cmdline ‘+pgfortran module_radiation_driver.f90 -o module_radiation_driver.o -c -O2 -Mvect=simd -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /fast1/janhon/wrf/WRF-4.2.2/main -I/fast1/janhon/wrf/WRF-4.2.2/external/esmf_time_f90 -I/fast1/janhon/wrf/WRF-4.2.2/main -I/fast1/janhon/wrf/WRF-4.2.2/external/io_netcdf -I/fast1/janhon/wrf/WRF-4.2.2/external/io_int -I/fast1/janhon/wrf/WRF-4.2.2/frame -I/fast1/janhon/wrf/WRF-4.2.2/share -I/fast1/janhon/wrf/WRF-4.2.2/phys -I/fast1/janhon/wrf/WRF-4.2.2/wrftladj -I/fast1/janhon/wrf/WRF-4.2.2/chem -I/fast1/janhon/wrf/WRF-4.2.2/inc -I/ibm2/nv_wrf2/netcdf480/include -r4 -i4 -I/ibm2/nv_2021.2a/openmpi410/include -I/ibm2/nv_2021.2a/openmpi410/lib’ -stbfile /tmp/nvfortranW5Udq2YlGDCe.stb -asm /tmp/nvfortranW5UdqERNEVgy.ll

real 0m14.664s
user 0m6.739s
sys 0m0.520s
[janhon@hope3 phys]$ time mpif90 -o module_radiation_driver.o -c -O1 -w -Mfree -byteswapio -I…/dyn_em -I…/dyn_nmm -module /fast1/janhon/wrf/WRF-4.2.2/main -I/fast1/janhon/wrf/WRF-4.2.2/external/esmf_time_f90 -I/fast1/janhon/wrf/WRF-4.2.2/main -I/fast1/janhon/wrf/WRF-4.2.2/external/io_netcdf -I/fast1/janhon/wrf/WRF-4.2.2/external/io_int -I/fast1/janhon/wrf/WRF-4.2.2/frame -I/fast1/janhon/wrf/WRF-4.2.2/share -I/fast1/janhon/wrf/WRF-4.2.2/phys -I/fast1/janhon/wrf/WRF-4.2.2/wrftladj -I/fast1/janhon/wrf/WRF-4.2.2/chem -I/fast1/janhon/wrf/WRF-4.2.2/inc -I/ibm2/nv_wrf2/netcdf480/include -r4 -i4 module_radiation_driver.f90

real 0m8.252s
user 0m7.287s
sys 0m0.412s

Thanks for the report janhonchentw!

I was able to reproduce the error here and have filed problem report TPR#30004 and sent it to engineering for further investigation.

-Mat

Hi, I have the same problem about compiling WRF 4.2 and 4.3 using nvidia compiler 21.3.
‘pgfortran-Fatal-/ibm2/pgi/pgi2021.3/Linux_x86_64/21.3/compilers/bin/tools/fort2 TERMINATED by signal 11
Arguments to /ibm2/pgi/pgi2021.3/Linux_x86_64/21.3/compilers/bin/tools/fort2’

So, is it already solved ??
If it is not solved, can anyone let me know how to solve this problem?

Thank you.

HyeonYeong Park

Yes, this was reported to us in the above post and we were able to provide a fix in the 21.5 release. You can download 21.5 at: https://developer.nvidia.com/nvidia-hpc-sdk-downloads

Note that the user confirmed that 21.5 does successfully compiler WRF-4.3 but is now getting a memory allocation error. It’s on my list to see if I can recreate this error.

-Mat