Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 620 Bytes
#
# CPU-vs-GPU.R, 9 Jan 16
#
# Data from:
# Where is the Data? Why You Cannot Debate GPU vs. CPU Performance Without the Answer
# Chris Gregg and Kim Hazelwood
#
# Example from:
# Empirical Software Engineering using R
# Derek M. Jones
source("ESEUR_config.r")
bench=read.csv(paste0(ESEUR_dir, "benchmark/gtx480.csv.xz"), as.is=TRUE)
brew_col=rainbow_hcl(3)
barplot(t(as.matrix(bench[, 2:4])),
legend.text=c("Move data to GPU", "GPU matrix multiply", "Move result from GPU"),
args.legend=list(x="topleft", bty="n", cex=1.3),
names.arg=bench$N,
xlab="Matrix size (N x N)", ylab="Time (msec)\n",
col=brew_col)