mirror of
https://github.com/andre-wojtowicz/blas-benchmarks
synced 2024-12-22 22:10:29 +01:00
markdown: added improvements to read-files
This commit is contained in:
parent
81163d3d40
commit
d4eab9c1b4
@ -52,6 +52,8 @@ for (hostname in HOSTNAMES)
|
|||||||
data.frame(Host= hostname,
|
data.frame(Host= hostname,
|
||||||
CPU = dr[1],
|
CPU = dr[1],
|
||||||
GPU = ifelse(length(dr)==3, dr[3], NA)))
|
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)
|
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, (
|
fp = file.path(RESULTS.DIR, gsub("<HOST>", host, (
|
||||||
gsub("<LIBRARY>", lib, (
|
gsub("<LIBRARY>", lib, (
|
||||||
gsub("<BENCHMARK>", benchmark, BENCHMKAR.PATTERN)))))
|
gsub("<BENCHMARK>", benchmark, BENCHMKAR.PATTERN)))))
|
||||||
@ -97,6 +103,8 @@ for (host in hosts.info$Host)
|
|||||||
Library=lib, Test=db$name,
|
Library=lib, Test=db$name,
|
||||||
Runs=runs, Size=size,
|
Runs=runs, Size=size,
|
||||||
Time=db$time))
|
Time=db$time))
|
||||||
|
} else {
|
||||||
|
warning(paste("File", fp, "does not exist"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user