compile MPAS 6.1 using PGI 18.4 & netcdf 4.6.1

79 views
Skip to first unread message

Zhifeng Yang

unread,
Aug 27, 2018, 10:45:47 AM8/27/18
to MPAS-Atmosphere Help
Hi all,

I got an error while compiling MPAS 6.1 using PGI 18.4 and netcdf 4.6.1. Here is the error.

mpif90 -D_MPI -DUNDERSCORE -DCORE_ATMOSPHERE -DMPAS_NAMELIST_SUFFIX=atmosphere -DMPAS_EXE_NAME=atmosphere_model -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=unknown -O3 -byteswapio -Mfree -r8 -c mpas_io.F -I/home/vy57456/application/pgi/18.4/ParallelIO-pio1_7_1/include -I/home/vy57456/application/pgi/18.4/parallel-netcdf-1.8.1/include -I/home/vy57456/application/pgi/18.4/netcdf-4.6.1/include -I/home/vy57456/application/pgi/18.4/ParallelIO-pio1_7_1/include -I/home/vy57456/application/pgi/18.4/parallel-netcdf-1.8.1/include -I/home/vy57456/application/pgi/18.4/netcdf-4.6.1/include -I../external/esmf_time_f90
PGF90-S-0087-Non-constant expression where constant expression required (mpas_io.F: 30)
PGF90-S-0155-Intrinsic not supported in initialization: achar (mpas_io.F: 31)
PGF90-S-0087-Non-constant expression where constant expression required (mpas_io.F: 44)
  0 inform,   0 warnings,   3 severes, 0 fatal for mpas_io
PGF90-S-0038-Symbol, nf_fill_char, has not been explicitly declared (mpas_io.F)


I know it's related to netcdf. In order to make sure netcdf work, I add 

use netcdf

in the file src/framework/mpas_io.F

But it still did not work. Any ideas on it? Please see attached file for detail

Thank you
Zhifeng

MPAS-Model-6.1.log

MPAS-Atmosphere Help

unread,
Sep 5, 2018, 4:32:46 PM9/5/18
to MPAS-Atmosphere Help
Hi, Zhifeng.

Sorry for the late reply. I know this doesn't directly address your issue, but is there any possibility to simply use other compilers? I suggest this, because I've been unable to build MPAS-Atmosphere v6.1 with the PGI 17.9 compilers, which are the most recent that I have available.

Best regards,
Michael

Zhifeng Yang

unread,
Sep 5, 2018, 4:52:20 PM9/5/18
to mpas-atmos...@googlegroups.com
Hi Michael,

Thank you for your reply. Actually I solved this problem later on. It was caused by inconsistent compilation of hdf5 and netcdf (parallel netcdf)

We are using PGI (18.4) compiler, since we want to run MPAS on GPU using openACC. Now I am trying to revise the code (radiation) and run it using PGPROF which can help us to analyze the code, and tell us where we should add directives. Do you have any experiences on this or do you know who else are expert on it? Thank you very much.

Best,
Zhifeng


--
You received this message because you are subscribed to the Google Groups "MPAS-Atmosphere Help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpas-atmosphere-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages