Commit 4f2093c3 authored by COULAUD Olivier's avatar COULAUD Olivier

New scripts to plot operators time and memory used in M2L steps

parent b58940fc
#
# used to plot the histogram of particles
# Read output.txt generated by statisticsOnOctree
# output the histogram in Histogram.eps file
#
clear
reset
at(file, row, col)=system( sprintf("%s | grep -v '^#\\|^$' | awk -v row=%d -v col=%d 'NR == row {print $col}'", (file[:1] eq '<') ? file[2:] :'cat '.file, row, col) )
set key off
set border 3
# Add a vertical dotted line at x=0 to show centre (mean) of distribution.
#set yzeroaxis
#
#
MB=1024*1024
FILEGEN='unitcube.txt'
#print at('unitcube.txt',1,1)
#'res-Cheb-openmp-unitcube-basic.out
print FILEBASIC
print FILETASK
#
set title TITLE
set ylabel "Memory (Mb)"
set xlabel "Number of core"
#
# OUTPUT
#set terminal postscript enhanced color 'Helvetica' 20
set terminal postscript enhanced color "times-roman,24"
set output FILEEPS
print FILEEPS
#
# PLOT
#
set key on inside left
#
#plot FILEBASIC using ($1):($7/MB) t "for"
plot FILEBASIC using ($1):($7/MB) t "for",FILETASK using ($1):($7/MB) t "task",FILEBALANCED using ($1):($7/MB) t "for balanced",FILESECTIONTASK using ($1):($7/MB) t "section task"
#!/bin/bash
#
#if ($#
filename=$1
gnuscript=~/mount/Plafrim1/Dev/src/ScalFMM/scalfmm/Utils/scripts/cmpAlgoMemoryPlot.gnu
FILEBASIC=`cat $filename | grep basic`
FILETASK=`cat $filename | grep "\-task"`
FILEBALANCED=`cat $filename | grep balanced `
FILESECTIONTASK=`cat $filename | grep section `
outputeps=`basename $filename txt`"eps"
TITLE=`basename $filename .txt`
echo "gnuplot" $outputeps
gnuplot -e "FILEEPS='$outputeps'; TITLE='$TITLE'; FILEBASIC='$FILEBASIC' ; FILETASK='$FILETASK'; FILEBALANCED='$FILEBALANCED'; FILESECTIONTASK='$FILESECTIONTASK' " $gnuscript
#
# used to plot the histogram of particles
# Read output.txt generated by statisticsOnOctree
# output the histogram in Histogram.eps file
#
clear
reset
set key off
set border 3
# Add a vertical dotted line at x=0 to show centre (mean) of distribution.
#set yzeroaxis
#
#
#
set title FILE
set ylabel "Time (s)"
set xlabel "Number of core"
#
# OUTPUT
#set terminal postscript enhanced color 'Helvetica' 20
#set terminal postscript enhanced color "times-roman,24"
#set output OUTPUT
#
# PLOT
#
set style data histograms
set style histogram rowstacked
#unset ytics
set boxwidth 0.75
set style fill solid 1.0 border
set xtics border ("4" 0, "8" 1, "12" 2, "16" 3, "20" 4, "24" 5)
plot FILE using 3 title "P2P+L2P", "" using 4 lc 4 title "M2L" , "" using ($2-$4-$3) lc 5 title "Remain operators"
#plot "RES-Cheb-openmp-unitsphere-basic.out" using 3, "" using 4 lc 4 , "" using ($2-$4-$3) lc 5
#!/bin/bash
#
#if ($#
filename=$1
gnuscript=~/mount/Plafrim1/Dev/src/ScalFMM/scalfmm/Utils/scripts/histTime1.gnu
FILEBASIC=`cat $filename | grep basic`
FILETASK=`cat $filename | grep "\-task"`
FILEBALANCED=`cat $filename | grep balanced `
FILESECTIONTASK=`cat $filename | grep section `
//
allfile=`cat $filename`
echo $allfile
for file in $allfile ;
do
outputeps=`basename $file .out`"Time.eps"
TITLE=`basename $filename .txt`
echo "gnuplot" $outputeps
gnuplot -e "FILEEPS='$outputeps'; TITLE='$TITLE'; FILE='$file' " $gnuscript
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment