Doc: Add performance chart to webpage
authorAdrian-Ken Rueegsegger <ken@codelabs.ch>
Tue, 10 Jan 2012 10:51:10 +0000 (11:51 +0100)
committerAdrian-Ken Rueegsegger <ken@codelabs.ch>
Tue, 10 Jan 2012 10:52:18 +0000 (11:52 +0100)
README
doc/.gitignore
doc/Makefile
doc/index
doc/performance-chart.png [new file with mode: 0644]

diff --git a/README b/README
index 341ffb4983522012df89a95363e3e5455fe77abd..a3886227e506a957503b20baadc11bbc0c98f680 100644 (file)
--- a/README
+++ b/README
@@ -72,7 +72,7 @@ CUDA/Ada provides benchmarking code that measures matrix addition and
 multiplication in Ada, CUDA/Ada and native CUDA C. The benchmarks can be run by
 issuing the following command:
 
-  $ make perf COUNT=10
+  $ make perf COUNT=20
 
-This will print the cumulated execution times of ten successive matrix
-operations for the three different implementations.
+This will print the cumulated execution times of twenty successive matrix
+operations for the different implementations.
index f36aa72e5f537c8464a218285180669bfdc1d0d5..1936cc1d441e479bc8fb17da77ec6f06e477f286 100644 (file)
@@ -1,2 +1 @@
-html/*.html
-html/*.css
+html
index 6dfc2cbb4425c15ac6e7235fecb096283f035707..26a0e52099f09b225f0a620901e96460a7fc39f0 100644 (file)
@@ -14,7 +14,8 @@ ASCIIDOC_OPTS = \
        -a disable-javascript \
        -o -
 
-all: $(DESTDIR)/asciidoc.css $(DESTDIR)/index.html
+all: $(DESTDIR)/asciidoc.css $(DESTDIR)/index.html \
+       $(DESTDIR)/performance-chart.png
 
 $(DESTDIR)/asciidoc.css: asciidoc.css
        cp $< $@
@@ -22,6 +23,9 @@ $(DESTDIR)/asciidoc.css: asciidoc.css
 $(DESTDIR)/index.html: index page.conf ../README ../src/add.adb
        asciidoc $(ASCIIDOC_OPTS) $< > $@
 
+$(DESTDIR)/performance-chart.png: performance-chart.png
+       cp $< $@
+
 article: $(DOCNAME).pdf
 
 $(DOCNAME).pdf: $(DOC)
@@ -30,5 +34,6 @@ $(DOCNAME).pdf: $(DOC)
 clean:
        @rm -f $(DESTDIR)/*.html
        @rm -f $(DESTDIR)/*.css
+       @rm -f $(DESTDIR)/*.png
 
 .PHONY: clean
index fb11a33a26668e5b53bc6b36c50c7e8da26c0f76..ea2c214d78c92db6b1c5d22c618c79e763182145 100644 (file)
--- a/doc/index
+++ b/doc/index
@@ -1,5 +1,11 @@
 include::../README[]
 
+image:performance-chart.png[alt="CUDA/Ada performance"]
+
+The chart shows the cumulated execution times of performing a matrix
+multiplication operation on a 512 by 512 matrix 20 times. All CUDA
+implementations used the same kernel, a grid size of 32 and a block size of 16.
+
 Example
 -------
 [source,ada]
diff --git a/doc/performance-chart.png b/doc/performance-chart.png
new file mode 100644 (file)
index 0000000..6535036
Binary files /dev/null and b/doc/performance-chart.png differ