GSI Fundamentals (1): Setup and Compilation...Donald’Stark’...
Transcript of GSI Fundamentals (1): Setup and Compilation...Donald’Stark’...
![Page 1: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/1.jpg)
Donald Stark Na-onal Center for Atmospheric Research (NCAR)
The Developmental Testbed Center (DTC) Tuesday 11 August, 2015
GSI Fundamentals (1): Setup and Compilation
![Page 2: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/2.jpg)
Outline � GSI fundamentals (1): Setup and Compilation
� Where to get the code � Directory structure � Unpacking, setup, & build � Por-ng build to new plaKorms
� GSI fundamentals (2): Run and Namelist � GSI fundamentals (3): Diagnos-cs � GSI fundamentals (4): Applica-ons
This talk is tailored based on Chapter 2 of the GSI User’s Guide for Community Release V3.4
2
![Page 3: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/3.jpg)
Downloading the Source Code � All of the GSI source code can be obtained from:
� hRp://www.dtcenter.org/com-‐GSI/users/downloads/index.php
3
![Page 4: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/4.jpg)
Downloading Source code
4
![Page 5: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/5.jpg)
5
![Page 6: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/6.jpg)
Known Issues & Fixes
6
![Page 7: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/7.jpg)
Unpack Downloads � Two tar files
� comGSIv3.4-‐EnKFv1.0.tar.gz � CRTM_Coefficients-‐2.1.3.tar.gz
� Unpack source code & CRTM coefficients � gunzip *.tar.gz � tar –xvf comGSIv3.4-‐EnKFv1.0.tar � tar –xvf CRTM_Coefficients-‐2.1.3.tar
7
![Page 8: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/8.jpg)
Tour of the Directory Structure Inside the top level of the comGSIv3.4-‐EnKFv1.0/ directory are four scripts and five directories.
� arch/ � clean � compile � configure � fix/ � makefile � run/ � src/ � u-l/
8
![Page 9: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/9.jpg)
Build Infrastructure � Uses DTC Build system � /arch directory contains rules & scripts for build.
� /arch/Config.pl perl script for parsing system info & combining together configure.gsi file.
� /arch/preamble: uniform requirements for the code, such as word size, etc.
� /arch/configure.defaults default plaKorm secngs � /arch/postamble: standard make rules & dependencies
� ./clean script to clean the build. � ./configure script to create configura-on file configure.gsi; contains info on compiler, MPI, & paths.
� ./compile script to compile executable. � ./makefile top level makefile for build.
9
![Page 10: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/10.jpg)
The rest � fix/ directory containing fixed parameter files
� Background error covariance and observa-on errors � Observa-on data control files � BUFR tables for Prepbufr files
� run/ � run_gsi_regional.ksh sample run script for regional analysis � run_gsi_global.ksh sample run script for global analysis � gsi.exe executable
� src/ source directory � libs/ supplemental library source code � main/ main GSI source code
� u:l/ addi-onal community tools
10
![Page 11: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/11.jpg)
Supplemental Libraries (libs/) � bacio/ NCEP BACIO library � bufr/ NCEP BUFR library � crtm_2.1.3/ JCSDA Commuity Radia-ve Transfer Model � gsdcloud/ GSD Cloud Analysis � misc/ Misc addi-onal libraries � nemsio/ Support for NEMS I/O � sfcio/ NCEP GFS surface file I/O module � sigio/ NCEP GFS atmospheric file I/O module � sp/ NCEP spectral-‐grid transforms (global applica-on only) � W3emc_v2.0.5/ NCEP W3 library (date/-me manipula-on, GRIB)
� W3nco_v2.0.6/ NCEP W3 library (date/-me manipula-on, GRIB)
11
![Page 12: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/12.jpg)
12
Building GSI
![Page 13: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/13.jpg)
System Requirements/Libraries � FORTRAN 90+ compiler � C compiler � Perl � Gnu Make � NetCDF V3.6+, & V4+ � Linear algebra library (ESSL, MKL or LAPACK/BLAS)
� MPI V1.2+ & OpenMP � WRF V3.4.1+
13
![Page 14: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/14.jpg)
Supported Platforms/Compilers Platform F90 compiler C compiler IBM* xlf xlc Linux Intel (ifort) Intel (icc)
Intel (ifort) Gnu (gcc) PGI (pgf90) PGI (pgcc) PGI (pgf90) Gnu (gcc)
Mac* PGI (pgf90) PGI (pgcc) * Legacy support provided on plaKorms no longer available for tes-ng 14
![Page 15: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/15.jpg)
Building GSI � Build sequence
� ./clean –a � Set library paths
� setenv WRF_DIR Location_of_WRF_directory � setenv LAPACK_PATH (typically only needed for Linux w/ ifort or gfortran).
� ./configure � Customize file configure.gsi if necessary
� ./compile
� Successful compila-on will produce: � comGSIv3.4-‐EnKFv1.0/run/gsi.exe
15
![Page 16: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/16.jpg)
Clean Compilation � To remove all object files and executables, type:
clean � To remove all built files, including the configure file, type: clean –a � A clean all needed if:
� Compila-on failed � Want to change configura-on file
16
![Page 17: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/17.jpg)
17
Diagnosing Build Issues
• How the build system works • What to do when the build fails
![Page 18: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/18.jpg)
How the build works � Running ./configure creates file configure.gsi by: � Running the Perl script /arch/Config.pl � Script Config.pl queries the system & selects the appropriate entry from /arch/configure.defaults
� Results are saved to configure.gsi.
18
![Page 19: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/19.jpg)
GSI Build System
./src/
makefile
src/libs/
makefile
src/libs/lib1/
makefile
src/libs/lib2/
makefile
src/main/
makefile_DTC
./makefile ./configure
./configure.gsi
Configuration stage Compiling stage
! Run ./configure • Generate local compile op-ons • Saves values in configure.gsi
! Run ./compile • Runs top level ./makefile • Which in turn runs ./src/makefile, • Which runs ./src/main/makefile
19
![Page 20: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/20.jpg)
Identifying Build Errors � Most build or run problems must be diagnosed by use of the log files.
� For build errors pipe the standard out and standard error into a log file with a command such as (for csh) ./compile |& tee build.log
� Search the log file for any instance of the word "Error." Its presence indicates a build error. Be certain to use the exact spelling with a capital "E."
� If the build fails, but the word "Error" is not present in the log file, it typically indicates a failure in link the phase. Informa-on on the failed linking phase will be present at the very end of the log file.
20
![Page 21: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/21.jpg)
Fixing Build Issues � Most build problems are due to non-‐standard ins-lla-on of one of the following: � compiler, � mpi, � or support libraries.
� Edit paths in the file configure.gsi to correctly reflect your system.
� When the build succeeds, modify file arch/configure.defaults to include new secngs.
� Please report issues to gsi_help so they can be addressed in next release.
21
![Page 22: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/22.jpg)
22
configure.gsi SHELL = /bin/sh # Lis-ng of op-ons that are usually independent of machine type. # When necessary, these are over-‐ridden by each architecture. #### Architecture specific secngs #### # Secngs for Linux x86_64, Intel compiler (ifort & icc) (dmpar,op-mize)# LDFLAGS = -‐Wl,-‐rpath,/glade/apps/opt/netcdf/4.3.0/intel/12.1.5/lib -‐openmp COREDIR = /glade/scratch/stark/GSI/src/intel/release_V3.4 INC_DIR = $(COREDIR)/include SFC = ifort SF90 = ifort -‐free SCC = icc INC_FLAGS = -‐module $(INC_DIR) -‐I $(INC_DIR) -‐I /glade/apps/opt/netcdf/4.3.0/intel/12.1.5/include
![Page 23: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/23.jpg)
23
configure.gsi SHELL = /bin/sh # Lis-ng of op-ons that are usually independent of machine type. # When necessary, these are over-‐ridden by each architecture. #### Architecture specific secngs #### # Secngs for Linux x86_64, Intel compiler (ifort & icc) (dmpar,op-mize)# LDFLAGS = -‐Wl,-‐rpath,/glade/apps/opt/netcdf/4.3.0/intel/12.1.5/lib -‐openmp COREDIR = /glade/scratch/stark/GSI/src/intel/release_V3.4 INC_DIR = $(COREDIR)/include SFC = ifort SF90 = ifort -‐free SCC = icc INC_FLAGS = -‐module $(INC_DIR) -‐I $(INC_DIR) -‐I /glade/apps/opt/netcdf/4.3.0/intel/12.1.5/include
![Page 24: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/24.jpg)
24
configure.gsi SHELL = /bin/sh # Lis-ng of op-ons that are usually independent of machine type. # When necessary, these are over-‐ridden by each architecture. #### Architecture specific secngs #### # Secngs for Linux x86_64, Intel compiler (ifort & icc) (dmpar,op-mize)# LDFLAGS = -‐Wl,-‐rpath,/glade/apps/opt/netcdf/4.3.0/intel/12.1.5/lib -‐openmp COREDIR = /glade/scratch/stark/GSI/src/intel/release_V3.4 INC_DIR = $(COREDIR)/include SFC = ifort SF90 = ifort -‐free SCC = icc INC_FLAGS = -‐module $(INC_DIR) -‐I $(INC_DIR) -‐I /glade/apps/opt/netcdf/4.3.0/intel/12.1.5/include
![Page 25: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/25.jpg)
25
configure.gsi SHELL = /bin/sh # Lis-ng of op-ons that are usually independent of machine type. # When necessary, these are over-‐ridden by each architecture. #### Architecture specific secngs #### # Secngs for Linux x86_64, GNU compilers (gfortran & gcc) (dmpar,op-mize)# LDFLAGS = -‐Wl,-‐noinhibit-‐exec COREDIR = /glade/scratch/stark/GSI/src/intel/release_V3.4 INC_DIR = $(COREDIR)/include SFC = ifort SF90 = ifort –free SCC = icc INC_FLAGS = -‐I $(INC_DIR) -‐I /usr/local/netcdf3-‐ifort/include
![Page 26: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/26.jpg)
26
configure.gsi Fortran Build Flags: FFLAGS_i4r4 = -‐integer-‐size 32 -‐real-‐size 32 FFLAGS_i4r8 = -‐integer-‐size 32 -‐real-‐size 64 FFLAGS_i8r8 = -‐integer-‐size 64 -‐real-‐size 64 FFLAGS_DEFAULT = -‐fp-‐model precise -‐assume byterecl -‐fpe0 -‐uz -‐convert big_endian FFLAGS_DEBUG = -‐O0 -‐g -‐traceback -‐check bounds -‐warn errors -‐fpstkchk -‐mp FFLAGS_OPT = -‐O3 FFLAGS = -‐O3 $(FFLAGS_DEFAULT) $(INC_FLAGS) $(LDFLAGS) -‐DLINUX
![Page 27: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/27.jpg)
27
configure.gsi # Library build flags FFLAGS_BACIO = -‐O3 $(FFLAGS_DEFAULT) ARFLAGS_BACIO = FFLAGS_BUFR = -‐O3 $(FFLAGS_DEFAULT) $(FFLAGS_i4r8) CFLAGS_BUFR = -‐O3 -‐DUNDERSCORE ARFLAGS_BUFR = FFLAGS_CLOUD = -‐O3 $(FFLAGS_DEFAULT) FFLAGS_CRTM = -‐O2 $(FFLAGS_DEFAULT) LFLAGS_CRTM = FFLAGS_GFSIO = -‐O3 $(FFLAGS_DEFAULT) $(FFLAGS_i4r4) ARFLAGS_GFSIO = FFLAGS_SFCIO = -‐O3 $(FFLAGS_DEFAULT) $(FFLAGS_i4r4) FFLAGS_SIGIO = -‐O3 $(FFLAGS_DEFAULT) $(FFLAGS_i4r4) ARFLAGS_SIGIO = FFLAGS_SP = -‐O3 $(FFLAGS_DEFAULT) $(FFLAGS_i4r8) FFLAGS_W3 = -‐O3 $(FFLAGS_DEFAULT)
![Page 28: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/28.jpg)
28
./configure
----------------------------------------------------------------------- !Please select from among the following supported platforms.
!Linux x86_64, PGI compilers (pgf90 & pgcc) (dmpar,optimize) !2. Linux x86_64, PGI compilers (pgf90 & gcc) (dmpar,optimize) !3. Linux x86_64, GNU compilers (gfortran & gcc) (dmpar,optimize) !4. Linux x86_64, Intel/gnu compiler (ifort & gcc) (dmpar,optimize) !5. Linux x86_64, Intel compiler (ifort & icc) (dmpar,optimize) !6. Linux x86_64, Intel compiler (ifort & icc), IBM POE (EXPERIMENTAL) (dmpar,optimize) !7. Linux x86_64, Intel compiler (ifort & icc), SGI MPT (EXPERIMENTAL) (dmpar,optimize) !!Enter selection [1-7] : !!
![Page 29: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/29.jpg)
29
./configure
----------------------------------------------------------------------- !Please select from among the following supported platforms.
!Linux x86_64, PGI compilers (pgf90 & pgcc) (dmpar,optimize) !2. Linux x86_64, PGI compilers (pgf90 & gcc) (dmpar,optimize) !3. Linux x86_64, GNU compilers (gfortran & gcc) (dmpar,optimize) !4. Linux x86_64, Intel/gnu compiler (ifort & gcc) (dmpar,optimize) !5. Linux x86_64, Intel compiler (ifort & icc) (dmpar,optimize) !6. Linux x86_64, Intel compiler (ifort & icc), IBM POE (EXPERIMENTAL) (dmpar,optimize) !7. Linux x86_64, Intel compiler (ifort & icc), SGI MPT (EXPERIMENTAL) (dmpar,optimize) !!Enter selection [1-7] : !!
![Page 30: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/30.jpg)
30
configure.gsi
CPP = cpp CPP_FLAGS = -‐C -‐P -‐D_REAL8_ -‐DWRF -‐DLINUX CPP_F90FLAGS = -‐tradi-onal-‐cpp # MPI compiler wrappers DM_FC = mpif90 -‐f90=$(SFC) DM_F90 = mpif90 -‐free -‐f90=$(SFC) DM_CC = icc
![Page 31: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/31.jpg)
31
./configure
----------------------------------------------------------------------- !Please select from among the following supported platforms.
!Linux x86_64, PGI compilers (pgf90 & pgcc) (dmpar,optimize) !2. Linux x86_64, PGI compilers (pgf90 & gcc) (dmpar,optimize) !3. Linux x86_64, GNU compilers (gfortran & gcc) (dmpar,optimize) !4. Linux x86_64, Intel/gnu compiler (ifort & gcc) (dmpar,optimize) !5. Linux x86_64, Intel compiler (ifort & icc) (dmpar,optimize) !6. Linux x86_64, Intel compiler (ifort & icc), IBM POE (EXPERIMENTAL) (dmpar,optimize) !7. Linux x86_64, Intel compiler (ifort & icc), SGI MPT (EXPERIMENTAL) (dmpar,optimize) !!Enter selection [1-7] : !!
![Page 32: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/32.jpg)
32
configure.gsi
CPP = cpp CPP_FLAGS = -‐C -‐P -‐D_REAL8_ -‐DWRF -‐DLINUX CPP_F90FLAGS = -‐tradi-onal-‐cpp # MPI compiler wrappers DM_FC = mpif90 DM_F90 = mpif90 -‐free DM_CC = icc
![Page 33: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/33.jpg)
33
configure.gsi
CFLAGS = -‐O0 -‐DLINUX -‐DUNDERSCORE CFLAGS2 = -‐DLINUX -‐Dfunder -‐DFortranByte=char -‐DFortranInt=int -‐DFortranLlong='long long' MYLIBsys = -‐L$(LAPACK_PATH) -‐mkl=sequen-al NETCDF_PATH =
![Page 34: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/34.jpg)
34
Alternatively MYLIBsys = -‐llapack -‐lblas NETCDF_PATH = /usr/local/netcdf3-‐ifort/lib The main library path of interest is the one to the LAPACK and BLAS libraries. Common issues are that: � library names are incorrect � library paths are incorrect � or both Check that your system has libraries in the specified path and with the specified names.
![Page 35: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/35.jpg)
35
configure.gsi # Macros, these should be generic for all machines LN = ln -‐sf MAKE = make -‐i -‐r RM = /bin/rm -‐f CP = /bin/cp AR = ar MKDIR = /bin/mkdir –p On plaDorms such as the IBM it is someGmes necessary to modify these paths to point to the gnu version of the Unix tools rather than the XLF version.
![Page 36: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/36.jpg)
36
configure.gsi Library Paths NETCDFPATH = /usr/local/netcdf3-‐ifort NETCDFLIBS = -‐L$(NETCDFPATH) -‐lnetcdff -‐lnetcdf WRF_DIR = /d1/stark/WRF/intel/release_3-‐5-‐1 Check that your system has libraries in the specified path and with the specified names.
![Page 37: GSI Fundamentals (1): Setup and Compilation...Donald’Stark’ Naonal’Center’for’Atmospheric’Research’(NCAR)’ The’Developmental’Testbed’Center’(DTC)’ Tuesday(11(August,(2015](https://reader033.fdocuments.net/reader033/viewer/2022041616/5e3b9da47adbd9667e0c9ae0/html5/thumbnails/37.jpg)
Getting Help � For more detailed informa-on on installa-on see: GSI User’s Guide, chapter 2 � www.dtcenter.org/com-‐GSI/users/docs/index.php
� Check the FAQ � www.dtcenter.org/com-‐GSI/users/support/faqs/index.php
� Check the Known Issues � www.dtcenter.org/com-‐GSI/users/support/known_issues/index_v3.4.php
� For further assistance contact: � [email protected]
37