# # Included makefile for Intel ifort compiler and ifort-built openmpi on 64-bit HAO machines. # # Example machines and their unames: # - HAO 64-bit Linux system iris.hao.ucar.edu (one quad-core) # Linux iris 2.6.18-194.11.1.el5 #1 SMP Tue Aug 10 19:05:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux # - HAO 64-bit Linux system arc.hao.ucar.edu (two quad-cores) # Linux arc 2.6.18-194.26.1.el5 #1 SMP Tue Nov 9 12:54:20 EST 2010 x86_64 x86_64 x86_64 GNU/Linux # # To access the ifort compiler at hao, you should have the following in your ~/.cshrc file: # source /opt/local/intel/Compiler/11.1/072/bin/ifortvars.csh intel64 # # Compilers and flags: # F90 = ifort MPIF90 = /home/tgcm/intel/openmpi-1.4.3/bin/mpif90 MPIRUN = /home/tgcm/intel/openmpi-1.4.3/bin/mpirun FFLAGS = -r8 DBGFLAGS = -debug full # # Makefile will use OPTIM = -g if set debug=TRUE in job script. OPTIM = -O3 LIBS = -lcurl HOST = $(shell hostname) # # Library and Include file paths: # LIB_NETCDF = /home/tgcm/intel/netcdf-4.1.1/lib INC_NETCDF = /home/tgcm/intel/netcdf-4.1.1/include # # Make machines.ini file for MPI execution: # prereq: machines.ini mpirun.command machines.ini: export HN=$(HOST) machines.ini: export NP=$(NPROC) machines.ini: FORCE @echo "Making machines.ini.." @echo `hostname` > machines.ini @awk 'BEGIN{ for (i=2; i <= ENVIRON["NP"]; i++) print ENVIRON["HN"] }' >> machines.ini mpirun.command: FORCE @echo "Making mpirun.command: MPIRUN=$(MPIRUN)" @echo $(MPIRUN) > mpirun.command FORCE: