cilkview/gnuplot errors on Cilk++ SDK for Linux

cilkview/gnuplot errors on Cilk++ SDK for Linux

imagem de David Biesack

I built the sqort example for the Intel Cilk++ SDK and it runs fine, but when I run

cilkview qsort gnuplot qsort.plt I get an error; it looks like the qsort.csv file is incomplete. gnuplot reports: gnuplot> plot [0:16] [0:16] x title "parallelism" lt 2, 2.012881 notitle lt 2, "qsort.csv" using 1:2 title "burdened speedup" with lines lt 1, "qsort.csv" using 1:4 with points pt 1 title "trials"
^
"qsort.plt", line 10: no data point found in specified file Is there a fix for this?
David Biesack SAS Institute Advanced Computing Lab
6 posts / 0 new
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.
imagem de William Leiserson (Intel)
Quoting - David Biesack I built the sqort example for the Intel Cilk++ SDK and it runs fine, but when I run cilkview qsort gnuplot qsort.plt I get an error; it looks like the qsort.csv file is incomplete. gnuplot reports: gnuplot> plot [0:16] [0:16] x title "parallelism" lt 2, 2.012881 notitle lt 2, "qsort.csv" using 1:2 title "burdened speedup" with lines lt 1, "qsort.csv" using 1:4 with points pt 1 title "trials"
^
"qsort.plt", line 10: no data point found in specified file Is there a fix for this?

Hi David,

Did gnuplot generate a graph in spite of this, or did it die from the error? If it generated the graph, it is a warning that there was no data in the trials column (i.e., you didn't run any trials for qsort). The .csv file is only incomplete insofar as cilkview could have generated more data: e.g., "% cilkview -trials all ./qsort". I'm sorry for the ugly gnuplot output, though.

If it is dying from the error, could you post your .csv output file, please?

imagem de William Leiserson (Intel)
Ah, also if it is dying, would you also include the .plt file and the version of gnuplot you are using so I can reproduce it?

Thanks, David.

imagem de David Biesack
Quoting - William Leiserson (Intel) Ah, also if it is dying, would you also include the .plt file and the version of gnuplot you are using so I can reproduce it?

Thanks, David.

Thanks, William.

gnuplot was dying and not generating a plot. It turns out that this was because I had omitted the -trials all option. When I add that, then I no longer get the errors that I reported. Inspecting the Cilk++ Programmers Guide, I see the default is -trials none: "Do not run any benchmark trials. This is the default." However, this still generates the .csv and .plt file, which threw me off. Perhaps it should not generate the .csv file unless one uses -trials one [k], -trials log [k], or -trials all [k]. When I run cilkview qsort I get this invalid qsort.csv file # cilkview format version, 1
# n workers, weighted parallelism, trials, speedup, ideal parallelism
1, 1., , , 1.999151
2, 1.08087, , , 1.999151
3, 1.110814, , , 1.999151
4, 1.126417, , , 1.999151
5, 1.135991, , , 1.999151
6, 1.142465, , , 1.999151
7, 1.147134, , , 1.999151
8, 1.150661, , , 1.999151
9, 1.153419, , , 1.999151
10, 1.155636, , , 1.999151
11, 1.157455, , , 1.999151
12, 1.158976, , , 1.999151
13, 1.160266, , , 1.999151
14, 1.161374, , , 1.999151
15, 1.162336, , , 1.999151
16, 1.163179, , , 1.999151 Here is qsort.plt #set terminal png size 600, 600
#set output "qsort.png"
set datafile separator ","
set size square 1.0, 1.0
set title "Trial results for 'qsort'"
set xlabel "Worker Count" 0.0,0.0
set ylabel "Speedup" 0.0,0.0
set key left top box
set pointsize 1.8
plot [0:16] [0:16] x title "parallelism" lt 2, 1.999151 notitle lt 2, "qsort.csv" using 1:2 title "burdened speedup" with lines lt 1, "qsort.csv" using 1:4 with points pt 1 title "trials" Here is my gnuplot version (on RHEL) # gnuplot --version
gnuplot 4.0 patchlevel 0
David Biesack SAS Institute Advanced Computing Lab
imagem de William Leiserson (Intel)
Okay, thanks Dave. Yeah, the default is no trials (since they tend to add a goodly amount of time). It should work without them, though.

I haven't downloaded gnuplot 4.0 to test it, but I'm running gnuplot 4.2 patchlevel 4 on my computer and your data plots fine (albeit with a warning that gnuplot is skipping the trial data column). If you don't want to run the trials every time, see if that version of gnuplot works. I'll see if I can get the requirements on cilkview updated.

imagem de Guy Tel-Zur

I have a problem with cilkview on linux. it generates an empty  <program_name>.cv.out file (0 size) and not csv or plt files.

I would appreciate any help.

Guy

Faça login para deixar um comentário.