1
0
mirror of https://github.com/andre-wojtowicz/blas-benchmarks synced 2024-12-22 12:30:29 +01:00

markdown: added improvements to read-files

This commit is contained in:
Andrzej Wójtowicz 2016-05-25 13:34:12 +02:00
parent 81163d3d40
commit d4eab9c1b4

View File

@ -52,6 +52,8 @@ for (hostname in HOSTNAMES)
data.frame(Host= hostname,
CPU = dr[1],
GPU = ifelse(length(dr)==3, dr[3], NA)))
} else {
warning(paste("File", fp, "does not exist"))
}
}
@ -66,6 +68,10 @@ for (host in hosts.info$Host)
{
for (lib in LIBRARIES)
{
if (lib=="cublas" && is.na(hosts.info[which(hosts.info$Host==host),
"GPU"]))
next
fp = file.path(RESULTS.DIR, gsub("<HOST>", host, (
gsub("<LIBRARY>", lib, (
gsub("<BENCHMARK>", benchmark, BENCHMKAR.PATTERN)))))
@ -97,6 +103,8 @@ for (host in hosts.info$Host)
Library=lib, Test=db$name,
Runs=runs, Size=size,
Time=db$time))
} else {
warning(paste("File", fp, "does not exist"))
}
}
}