檢視cpu使用率 top --> '1'
檢視已安裝子產品
module avail
module load ****
screen 遠端執行任務
screen #create a new screen session
OR screen -S session_name
ctrl+A, then d, #save and exit session if work pending
screen -ls #list all screen sessions
screen -x #回到最近的session
exit #退出session
ctrl+A, '[' #輸出到上層目錄
gnuplot 使用小結
some good reference ...
http://www.duke.edu/~hpgavin/gnuplot.html
http://dsec.pku.edu.cn/dsectest/dsec_cn/gnuplot/
intput file tricks
logscale y 2
use "-1" to take place of blank input cells. (out of y-axis range)
one script example:
set terminal postscript enhanced "Helvetica"11 #11 could control the font size
set pointsize 0.7
set key right bottom
set logscale x 2
set term postscript color
set xrange [1:128]
set xlabel "number of nodes (MPI Procs)"
set xtics("1" 1,"2" 2,"4" 4,"8" 8,"16" 16,"32" 32,"64" 64)
set grid xtics ytics mxtics mytics
set style line 1 lt 1 lw 3 pt 4
set style line 2 lt 1 lw 3 pt 4
set style line 3 lt 2 lw 3 pt 6
set style line 4 lt 2 lw 3 pt 6
set style line 5 lt 3 lw 3 pt 8
set style line 6 lt 4 lw 3 pt 1
set style line 7 lt 5 lw 3 pt 2
set style line 8 lt 6 lw 3 pt 3
set style line 9 lt 7 lw 3 pt 5
set output 'MKL_Strong_Scalability.eps'
set multiplot layout 2,2
set logscale y 2
set yrange [1:]
set title "MKL Strong Scalability (time/s)"
set ylabel "comp.time (log)"
plot "input_sc_hpl_mkl_tm.txt" using 1:2 title '64K-sc' with lp ls 7,\
"input_sc_hpl_mkl_tm.txt" using 1:3 title '32K-sc' with lp ls 2,\
"input_sc_hpl_mkl_tm.txt" using 1:4 title '16K-sc' with lp ls 5
set title "MKL Strong Scalability (Gflops)"
set ylabel "Performance (log)"
plot "input_sc_hpl_mkl_gflops.txt" using 1:2 title '64K-sc' with lp ls 7,\
"input_sc_hpl_mkl_gflops.txt" using 1:3 title '32K-sc' with lp ls 2,\
"input_sc_hpl_mkl_gflops.txt" using 1:4 title '16K-sc' with lp ls 5
unset logscale y
set yrange [0:]
set title "MKL Strong Scalability (time/s)"
set ylabel "comp.time"
plot "input_sc_hpl_mkl_tm.txt" using 1:2 title '64K-sc' with lp ls 7,\
"input_sc_hpl_mkl_tm.txt" using 1:3 title '32K-sc' with lp ls 2,\
"input_sc_hpl_mkl_tm.txt" using 1:4 title '16K-sc' with lp ls 5
set title "MKL Strong Scalability (Gflops)"
set ylabel "Performance"
plot "input_sc_hpl_mkl_gflops.txt" using 1:2 title '64K-sc' with lp ls 7,\
"input_sc_hpl_mkl_gflops.txt" using 1:3 title '32K-sc' with lp ls 2,\
"input_sc_hpl_mkl_gflops.txt" using 1:4 title '16K-sc' with lp ls 5
unset multiplot
gsview/gs. eps <-->png
Windows
将jpeg,png,gif轉換為eps格式,推薦使用bmeps指令行工具
eps ---> jpeg ...
gswin32c -dBATCH -dEPSCrop -sDEVICE=png256 -sOutputFile=tiger.png tiger.eps
Linux
png --> eps (Imagemagik)
sudo apt-get install imagemagik
convert tiger.png tiger.eps
eps --> png (GhostScript)
gs -dBATCH -dEPSCrop -sDEVICE=png256 -sOutputFile=tiger.png tiger.eps
epstopdf (better choice, higher resolution)
epstopdf MKL_Strong_Scalability.eps (default output the same file name with pdf extension, *.pdf)
旋轉儲存pdf檔案
ctrl + shift + r --> save #或者虛拟pdf列印,選擇橫向視圖