Fortran compiler on workstation in the Saito group

For new tube

  1. /home/skel/cshrc (which is symbolic linked to /home1/skel/cshrc-newtube) should be read in ~/.cshrc
  2. For superuser, when you make a newtube machine, set /home/skel/cshrc like
    # cd /home
    # mkdir skel
    # cd skel
    # ln -s /home1/skel/cshrc-newtube cshrc
    (Do not copy cshrc-newtube there, since we will fix it each time.)
  3. A typical example of the command is as follows.
    cp /rsaito/for/Jugyo/zheev.f90 .
    ifort zheev.f90 -o a.out -O3 -xS -L$MKLROOT/lib/em64t -I$MKLROOT/include -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_lapack -lmkl -lmkl_core -lmkl_p4n -lguide -lpthread
    or
    ifort zheev.f90 -o a.out -L$MKLROOT/lib/em64t -lmkl_em64t -lmkl_core -lguide -lpthread
    ./a.out
  4. A typical example of Makefile is as follows
    (Please make an example)
(sample.1 by eguchi)
#-----------------------------------------------------------
%.o : %.f90
	$(FC) -c $(FFLAGS) $< -o $@
%.o : %.f
	$(FC) -c $(FFLAGS) $< -o $@
#-----------------------------------------------------------
FC     = ifort
FFLAGS = -O3 -xS
OBJS = contain-stropt.o contain-strrel.o swnt-elphmx.o
LIBNAME = libswntelphmx.a
MODNAME = contain-stropt.mod swntelphmx.mod
MKLROOT = /opt/intel/mkl/10.1
#LAPACK = -L/opt/intel/mkl721/lib/32 -lmkl_lapack -lmkl_ia32 -lguide -lpthread
MOD = -I$(HOME)/lib
LIB = -L$(HOME)/lib -lswnttbtube -lswntfctube -lswntelphmx
# for WIRE
ifeq (${HOST}, wire)
#  LAPACK = -llapack -lblas -lg2c
#  LAPACK = -L/opt/intel/mkl721/lib/64 -lmkl_lapack -lmkl_ipf -lguide -lpthread
  LAPACK = -L/opt/intel/mkl/8.0/lib/64 -lmkl_lapack -lmkl_ipf -lguide -lpthread
endif
# for TUBE21
ifeq (${HOST}, tube21)
#  LAPACK = -llapack -lblas -lg2c
#  LAPACK = -L/opt/intel/mkl721/lib/64 -lmkl_lapack -lmkl_ipf -lguide - lpthread
  LAPACK = -L/opt/intel/mkl/10.1.1.019/lib/32 -lmkl_lapack -lmkl_ipf -lguide -lpthread
endif
# for TUBE23
ifeq (${HOST}, tube23)
  LAPACK = -L$(MKLROOT)/lib/em64t -I$(MKLROOT)/include -lmkl_intel_lp64 - lmkl_intel_thread -lmkl_lapack -lmkl -lmkl_core -lmkl_p4n -lguide -lpthread
endif
#-------------------------------------------------------------------------
3DgDos1:
	$(FC) 3DgDos1.f -o 3DgDos1.out $(FFLAG) $(LAPACK)
#-------------------------------------------------------------------------
If you want to use this Makefile , you need enter the following command when you compile some files on tube23.
$ source /home1/skel/cshrc-newtube
(*ske'l'(small 'L') is not ske'1'(one))
I try to compile only tube23.
  1. -xS option of ifort is a special option for CPU new features which makes fast!
  2. ifort -V will give you what kind intel compiler is used
  3. library is for em64t, (we can not use 64)
  4. we can use gcc lapac, and 32bit compiler, too. We have checked to run this.
  5. However we will not show how to use gcc lapack and 32bit compiler here.

For flex


Front page   New Page list Search Recent changes   Help   RSS of recent changes