** Fortran compiler on workstation in the Saito group [#ucd4a28b]

*** For new tube [#v7e67b62]

+ /home/skel/cshrc (which is symbolic linked to /home1/skel/cshrc-newtube) should be read in ~/.cshrc
+ 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.)
+ 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
+ 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.

+ -xS option of ifort is a special option for CPU new features which makes fast!
+ ifort -V will give you what kind intel compiler is used 
+ library is for em64t, (we can not use 64)
+ we can use gcc lapac, and 32bit compiler, too. We have checked to run this.
+ However we will not show how to use gcc lapack and 32bit compiler here.

*** For flex [#q9760a89]

- Flex is used for NFS, Web, and mail server.
- It is generally allowed to use flex for running a program, but it must be a very short program (less than 1min).
- A typical example of the command is as follows. 
 ifort zheev.f90 -L/opt/intel/mkl/9.1.023/lib/32 -lmkl_lapack -lmkl_ia32 -lguide -lpthread
 ./a.out



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