[Wrf-users] WRF 2.2.1 intel compiler problems

Erick van Rijk vanrijk at apple.com
Tue Nov 13 15:58:34 MST 2007


Thanks Edu, the $(COREDEFS) took away my compile errors.
Unfortunatly I ran across another issue. When running the wrf.exe  
after a successful ideal.exe run for setting up the system.
I get this error:
Timing for Writing wrfout_d01_0001-01-01_00:00:00 for domain         
1:    0.08500 elapsed seconds.
Illegal instruction

So something crashed in the process. Any suggestions to track down  
the problem?

I ran the app against gdb and this is what the backtrace looks like  
for em_hill2d_x:

WRF V2.2.1 MODEL
DYNAMICS OPTION: Eulerian Mass Coordinate
med_initialdata_input: calling input_model_input
   STEPRA,STEPCU,STEPBL           1           1           1
Timing for Writing wrfout_d01_0001-01-01_00:00:00 for domain         
1:    0.07800 elapsed seconds.

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xbef85f5c
0x0016b0e6 in solve_em_ ()
(gdb) bt
#0  0x0016b0e6 in solve_em_ ()
#1  0x0012e5ad in solve_interface_ ()
#2  0x0000a8db in module_integrate_mp_integrate_. ()
#3  0x0000598f in module_wrf_top_mp_wrf_run_ ()
#4  0x00002392 in MAIN__ ()
#5  0x0000232a in main ()

Erick

	
On Nov 13, 2007, at 11:55 AM, Eduardo Penabad Ramos wrote:

>
> I think that if you add $(COREDEFS) to your ARCHFLAGS it should  
> properly
> include that variable within the Registry
>
> Edu
>
> ------------------------------------
> MeteoGalicia
> Eduardo Penabad Ramos
> Investigación e Predición Numérica
> edu.penabad at meteogalicia.es
> Area Central Local 31-C
> Poligono de Fontiñas s/n
> 15.703 Santiago de Compostela
> tel: +34 981 957 462
> fax: +34 981 957 466
> http://www.meteogalicia.es
> ------------------------------------
> -----Mensaje original-----
> De: wrf-users-bounces at ucar.edu [mailto:wrf-users-bounces at ucar.edu]  
> En nombre
> de Erick van Rijk
> Enviado el: martes, 13 de noviembre de 2007 20:21
> Para: wrf-users at ucar.edu
> Asunto: [Wrf-users] WRF 2.2.1 intel compiler problems
>
> Hi,
>
> I'm trying to build WRF 2.2.1 with intel ifort/icc using the intel
> supplied default configs.
> I get some compile errors (that are ignored) that seem to come from
> auxinput1_inname not being resolved correctly.
> I get the following error:
> *******
> ifort -c -O3  -switch fe_use_rtl_arg_copy_inout -
> mP2OPT_vec_xform_level=103 -FR -cm -w -I.  -convert big_endian -fp-
> model precise -traceback -openmp -fpp -auto -I../dyn_em -I../dyn_nmm
> -I ../main -I../external/io_netcdf -I../external/io_int -I../external/
> esmf_time_f90
> -I../frame -I../share -I../phys -I../inc -I../chem -real_size `expr 4
> \* 8`  mediation_integrate.f90
> fortcom: Error: mediation_integrate.f90, line 1151: This is not a
> field name that is defined in the encompassing structure.
> [AUXINPUT1_INNAME]
>         CALL construct_filename2a ( auxname , config_flags%
> auxinput1_inname, grid%id , 2 , timestr )
> ----------------------------------------------------------^
> compilation aborted for mediation_integrate.f90 (code 1)
> make[2]: [mediation_integrate.o] Error 1 (ignored)
> ******
>
> Does anyone have any idea why this would happen?
>
> Thanks,
>
> Erick
>
>
>
> This is the config i'm using to build it supplied by intel:
> # Settings for Darwin   ifort compiler (OpenMP)
> #
> OMP             =       -openmp -fpp -auto
> OMPCPP          =       -D_OPENMP
> FC              =       ifort
> LD              =       ifort
> CC              =       icc
> SCC             =       $(CC)
> SFC             =       $(FC)
> RWORDSIZE       =       $(NATIVE_RWORDSIZE)
> RSIZEBITS       =       `expr $(RWORDSIZE) \* 8`
> PROMOTION       =       -real_size $(RSIZEBITS)
> CFLAGS          =       -DMACOS
> FCOPTIM         =       -O3  -switch fe_use_rtl_arg_copy_inout -
> mP2OPT_vec_xform_level=103
> FCDEBUG         =       #-g
> FCBASEOPTS      =       -FR -cm -w -I. $(FCDEBUG) -convert big_endian
> -fp-model precise -traceback
> FCFLAGS         =       $(FCOPTIM) $(FCBASEOPTS) $(OMP)
> ARCHFLAGS       =       -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=$
> (RWORDSIZE) -DLWORDSIZE=4 \
>                           -DNETCDF -DGRIB1  \
>                          -DLIMIT_ARGS -DNOIFORT_KLUDGE
> # machine-specific flags needed to link in ESMF library (C++ run-time-
> library, etc.)
> ESMF_LIB_FLAGS  =
> ESMF_IO_LIB     =       -L../external/esmf_time_f90 -lesmf_time
> ESMF_IO_LIB_EXT =       -L../../external/esmf_time_f90 -lesmf_time
> INCLUDE_MODULES =       -I ../main -I../external/io_netcdf -I../
> external/io_int -I../external/esmf_time_f90 \
>                          -I../frame -I../share -I../phys -I../inc -
> I../chem
> PERL            =       perl
> REGISTRY        =       Registry
> LIB             =       -L../external/io_netcdf -lwrfio_nf -L/usr/
> local/lib -lnetcdf \
>                          -L../external/io_grib1 -lio_grib1 \
>                           \
>                          -L../external/io_grib_share -lio_grib_share \
>                          ../frame/module_internal_header_util.o ../
> frame/pack_utils.o -L../external/esmf_time_f90 -lesmf_time
> LDFLAGS         =       $(FCFLAGS) $(FCFLAGS) $(OMP)
> ENVCOMPDEFS     =
> WRF_CHEM        =       0
> CPP             =       /usr/bin/cpp  -C -P -traditional
> POUND_DEF       =       $(OMPCPP) $(COREDEFS) -DNONSTANDARD_SYSTEM -
> DCONFIG_BUF_LEN=$(CONFIG_BUF_LEN) -DMAX_DOMAINS_F=$(MAX_DOMAINS) - 
> DGRIB1
> CPPFLAGS        =       -I$(LIBINCLUDE) -C -P $(ARCHFLAGS) $
> (ENVCOMPDEFS) $(POUND_DEF)
> AR              =       ar ru
> M4              =       m4 -B 14000
> RANLIB          =       ranlib
> NETCDFPATH      =       /usr/local
> CC_TOOLS        =       $(CC)
>
> _______________________________________________
> Wrf-users mailing list
> Wrf-users at ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/wrf-users
>




More information about the Wrf-users mailing list