From d4eab9c1b482de694b30bf229f313c5c5920678b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20W=C3=B3jtowicz?= Date: Wed, 25 May 2016 13:34:12 +0200 Subject: [PATCH] markdown: added improvements to read-files --- results.Rmd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/results.Rmd b/results.Rmd index 264a63e..ccb8690 100644 --- a/results.Rmd +++ b/results.Rmd @@ -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, ( gsub("", lib, ( gsub("", 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")) } } }