- Dec 17 Wed 2008 19:15
-
shell scripts
- Jul 21 Mon 2008 20:45
-
PC Cluster
http://www3.stat.sinica.edu.tw/io/statcluster.htm
Example for Frotran programs: 將Fortran程式Compile成執行檔(如testpgm, 檔名可自取), 指令如后:
pgf77 -o testpgm testpgm.f (for Fortran 77 program)
pgf90 -o testpgm testpgm.f90 (for Fortran 90 program)如果要 link nag library 則需執行以步驟:
pgf77 -o testpgm testpgm.f -lnag (for Fortran 77 program)
pgf90 -o testpgm testpgm.f90 -lnag (for Fortran 90 program)如果要 link imsl library 則需執行以步驟:
. /usr/local/vni/CTT4.0/ctt/bin/cttsetup.sh
$FC $FFLAGS –o testpgm testpgm.f $LINK_FNL_STATIC (for Fortran 77 program)
$F90 $F90FLAGS –o testpgm testpgm.f90 $LINK_F90_STATIC (for Fortran 90 program)編輯一個shell file (如test.sh, 檔名可自取), 內容如后:
#!/bin/sh
#PBS -l walltime=9999:00:00
cd $PBS_O_WORKDIR
./testpgm Submit Job, 指令如后:
qsub -l nodes=1 test.sh
執行後, 螢幕會立即顯示訊息 XXX.node00.cluster (XXX 為Job number ID)程式執行完畢後, Screen Output 會存成 test.sh.oXXX (XXX 為Job number ID), 存放於目前的目錄
Example for Frotran programs: 將Fortran程式Compile成執行檔(如testpgm, 檔名可自取), 指令如后:
pgf77 -o testpgm testpgm.f (for Fortran 77 program)
pgf90 -o testpgm testpgm.f90 (for Fortran 90 program)如果要 link nag library 則需執行以步驟:
pgf77 -o testpgm testpgm.f -lnag (for Fortran 77 program)
pgf90 -o testpgm testpgm.f90 -lnag (for Fortran 90 program)如果要 link imsl library 則需執行以步驟:
. /usr/local/vni/CTT4.0/ctt/bin/cttsetup.sh
$FC $FFLAGS –o testpgm testpgm.f $LINK_FNL_STATIC (for Fortran 77 program)
$F90 $F90FLAGS –o testpgm testpgm.f90 $LINK_F90_STATIC (for Fortran 90 program)編輯一個shell file (如test.sh, 檔名可自取), 內容如后:
#!/bin/sh
#PBS -l walltime=9999:00:00
cd $PBS_O_WORKDIR
./testpgm Submit Job, 指令如后:
qsub -l nodes=1 test.sh
執行後, 螢幕會立即顯示訊息 XXX.node00.cluster (XXX 為Job number ID)程式執行完畢後, Screen Output 會存成 test.sh.oXXX (XXX 為Job number ID), 存放於目前的目錄
- Jun 12 Thu 2008 12:56
-
talk to somone
這篇文章受密碼保護,請輸入密碼後查看內容。
- May 06 Tue 2008 21:35
-
keep
沈從文傳(金介甫)
紅樓夢
雙城記
戰爭與和平
亞細亞的孤兒
山居筆記 文化苦旅 台灣演講 掩卷沉思 霜冷長河
浪淘沙
韭菜花
由加利樹林裡 (芹田騎郎)
林培瑞(大陸文學)
北京夜話
文學的功用
伴洋隨筆
"老子探義"
紅樓夢
雙城記
戰爭與和平
亞細亞的孤兒
山居筆記 文化苦旅 台灣演講 掩卷沉思 霜冷長河
浪淘沙
韭菜花
由加利樹林裡 (芹田騎郎)
林培瑞(大陸文學)
北京夜話
文學的功用
伴洋隨筆
"老子探義"
- Apr 29 Tue 2008 17:41
-
fortran Web
http://140.136.191.181/html/frank/document/fortran/handout/index.htm 作者:輔仁大學 技士及兼任講師林其盛
some useful information:
http://tlcheng.twbbs.org/tlcheng/Fortran/
teaching
http://cbliao.wre.fcu.edu.tw/ (廖清標)
http://ccandrew.myweb.hinet.net/contains.html (visual fortran)
http://www.geocities.com/SiliconValley/Vista/8177/tutorial/nehe.html (教opengl的網站)
some useful information:
http://tlcheng.twbbs.org/tlcheng/Fortran/
teaching
http://cbliao.wre.fcu.edu.tw/ (廖清標)
http://ccandrew.myweb.hinet.net/contains.html (visual fortran)
http://www.geocities.com/SiliconValley/Vista/8177/tutorial/nehe.html (教opengl的網站)
- Apr 29 Tue 2008 17:16
-
makefile
FC=ifort
CFLAG=-O2 -xW -unroll
SRCPATH=/home/hchsiao/mklexamples/
LIB=/usr/lib/
INC=/opt/intel/mkl/10.0/include/
MKLLIB=/opt/intel/mkl/10.0/lib/32
CFLAG=-O2 -xW -unroll
SRCPATH=/home/hchsiao/mklexamples/
LIB=/usr/lib/
INC=/opt/intel/mkl/10.0/include/
MKLLIB=/opt/intel/mkl/10.0/lib/32
- Apr 29 Tue 2008 16:51
-
編譯器
FORTRAN 編譯器(LINUX)
http://www3.intel.com/cd/software/products/apac/zho/343156.htm
free
http://www.download.com/Silverfrost-FTN77/3000-2069_4-10537937.html?cdlPid=10537938
(ALL)
http://www.intel.com/cd/software/products/apac/zho/295361.htm
(other)
http://www.personal.psu.edu/faculty/h/d/hdk/fortran.html
http://www3.intel.com/cd/software/products/apac/zho/343156.htm
free
http://www.download.com/Silverfrost-FTN77/3000-2069_4-10537937.html?cdlPid=10537938
(ALL)
http://www.intel.com/cd/software/products/apac/zho/295361.htm
(other)
http://www.personal.psu.edu/faculty/h/d/hdk/fortran.html
- Apr 29 Tue 2008 16:36
-
inforamtion for MKL
mkl 使用手冊
(all) http://www.intel.com/cd/software/products/apac/zho/358630.htm
(windows 版本) http://softwarecommunity.intel.com/isn/downloads/softwareproducts/pdfs/347468.pdf
(linux :information )http://softwarecommunity.intel.com/isn/downloads/softwareproducts/pdfs/347460.pdf
8.0(
(all) http://www.intel.com/cd/software/products/apac/zho/358630.htm
(windows 版本) http://softwarecommunity.intel.com/isn/downloads/softwareproducts/pdfs/347468.pdf
(linux :information )http://softwarecommunity.intel.com/isn/downloads/softwareproducts/pdfs/347460.pdf
8.0(
- Apr 29 Tue 2008 12:52
-
BLAS of MKL
?yyzzz : ? would be s,d,c,z
s ,real,*4
d,real,*8
c,complex,*8
z,complex,*16
------------------------------------------------------------------------------------------------
yy could be
--------------
In BLAS level 2 and 3,
ge general matrix
gb general band matrix
sy symmetric matrix
sp symmetric matrix (packed storage)
sb symmetric band matrix
he Hermitian matrix
hp Hermitian matrix (packed storage)
hb Hermitian band matrix
tr triangular matrix
tp triangular matrix (packed storage)
tb triangular band matrix.
ge general
gb general band
gt general tridiagonal
po symmetric or Hermitian positive-definite
pp symmetric or Hermitian positive-definite (packed storage)
pb symmetric or Hermitian positive-definite band
pt symmetric or Hermitian positive-definite tridiagonal
sy symmetric indefinite
sp symmetric indefinite (packed storage)
he Hermitian indefinite
hp Hermitian indefinite (packed storage)
tr triangular
tp triangular (packed storage)
tb triangular band
--------------------
BLAS level 1
c conjugated vector
u unconjugated vector
g Givens rotation
-------------------
BLAS level 2
mv matrix-vector product
sv solving a system of linear equations with matrix-vector operations
r rank-1 update of a matrix
r2 rank-2 update of a matrix.
------------------
BLAS level 3
mm matrix-matrix product
sm solving a system of linear equations with matrix-matrix operations
rk rank-k update of a matrix
r2k rank-2k update of a matrix
------------------------------------------------------------------------------------------------
-------------------
The examples below illustrate how to interpret BLAS routine names:
ddot <d> <dot>: double-precision real vector-vector dot product
60
2 Intel® Math Kernel Library Reference Manual
cdotc <c> <dot> <c>: complex vector-vector dot product, conjugated
<sc> <asum>: sum of magnitudes of vector elements, single precision
real output and single precision complex input
scasum
cdotu <c> <dot> <u>: vector-vector dot product, unconjugated, complex
sgemv <s> <ge> <mv>: matrix-vector product, general matrix, single precision
<z> <tr> <mm>: matrix-matrix product, triangular matrix,
double-precision complex.
--------------------------------
------------------------------------------------------------------------------------------------
zzz could be
---------------------
BLAS Level3
trf form a triangular matrix factorization
3 Intel® Math Kernel Library Reference Manual
trs solve the linear system with a factored matrix
con estimate the matrix condition number
rfs refine the solution and compute error bounds
tri compute the inverse matrix using the factorization
equ equilibrate a matrix.
------------------------
For example, the sgetrf routine performs the triangular factorization of general real matrices
in single precision; the corresponding routine for complex matrices is cgetrf.
For driver routines, the names can end with -sv (meaning a simple driver), or with -svx (meaning an expert driver).
Names of the LAPACK computational and driver routines for Fortran 95 interface in Intel MKL are the same as Fortran 77 names but without the first letter that indicates the data type. For example, the name of the routine that performs triangular factorization of general real matrices in Fortran 95 interface is getrf. Different data types are handled through defining a specific internal parameter that refers to a module block with named constants for single and double precision.
s ,real,*4
d,real,*8
c,complex,*8
z,complex,*16
------------------------------------------------------------------------------------------------
yy could be
--------------
In BLAS level 2 and 3,
ge general matrix
gb general band matrix
sy symmetric matrix
sp symmetric matrix (packed storage)
sb symmetric band matrix
he Hermitian matrix
hp Hermitian matrix (packed storage)
hb Hermitian band matrix
tr triangular matrix
tp triangular matrix (packed storage)
tb triangular band matrix.
ge general
gb general band
gt general tridiagonal
po symmetric or Hermitian positive-definite
pp symmetric or Hermitian positive-definite (packed storage)
pb symmetric or Hermitian positive-definite band
pt symmetric or Hermitian positive-definite tridiagonal
sy symmetric indefinite
sp symmetric indefinite (packed storage)
he Hermitian indefinite
hp Hermitian indefinite (packed storage)
tr triangular
tp triangular (packed storage)
tb triangular band
--------------------
BLAS level 1
c conjugated vector
u unconjugated vector
g Givens rotation
-------------------
BLAS level 2
mv matrix-vector product
sv solving a system of linear equations with matrix-vector operations
r rank-1 update of a matrix
r2 rank-2 update of a matrix.
------------------
BLAS level 3
mm matrix-matrix product
sm solving a system of linear equations with matrix-matrix operations
rk rank-k update of a matrix
r2k rank-2k update of a matrix
------------------------------------------------------------------------------------------------
-------------------
The examples below illustrate how to interpret BLAS routine names:
ddot <d> <dot>: double-precision real vector-vector dot product
60
2 Intel® Math Kernel Library Reference Manual
cdotc <c> <dot> <c>: complex vector-vector dot product, conjugated
<sc> <asum>: sum of magnitudes of vector elements, single precision
real output and single precision complex input
scasum
cdotu <c> <dot> <u>: vector-vector dot product, unconjugated, complex
sgemv <s> <ge> <mv>: matrix-vector product, general matrix, single precision
<z> <tr> <mm>: matrix-matrix product, triangular matrix,
double-precision complex.
--------------------------------
------------------------------------------------------------------------------------------------
zzz could be
---------------------
BLAS Level3
trf form a triangular matrix factorization
3 Intel® Math Kernel Library Reference Manual
trs solve the linear system with a factored matrix
con estimate the matrix condition number
rfs refine the solution and compute error bounds
tri compute the inverse matrix using the factorization
equ equilibrate a matrix.
------------------------
For example, the sgetrf routine performs the triangular factorization of general real matrices
in single precision; the corresponding routine for complex matrices is cgetrf.
For driver routines, the names can end with -sv (meaning a simple driver), or with -svx (meaning an expert driver).
Names of the LAPACK computational and driver routines for Fortran 95 interface in Intel MKL are the same as Fortran 77 names but without the first letter that indicates the data type. For example, the name of the routine that performs triangular factorization of general real matrices in Fortran 95 interface is getrf. Different data types are handled through defining a specific internal parameter that refers to a module block with named constants for single and double precision.