Skip to content

Commit 2777a7f

Browse files
committed
disable NaN checks before BLAS calls dsolve.R (shorter config part)
1 parent b70fd23 commit 2777a7f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

benchmark/scripts/R/dsolve.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
argv <- commandArgs(trailingOnly = TRUE)
44

5-
if (!is.null(options("matprod")[[1]])) {
6-
options(matprod = "blas")
7-
}
5+
if (!is.null(options("matprod")[[1]])) options(matprod = "blas")
86

97
nfrom <- 128
108
nto <- 2048
@@ -42,11 +40,10 @@ while (n <= nto) {
4240
solve(A, B)
4341
})
4442

45-
mflops <- (2.0/3 * n * n * n + 2 * n * n * n) * loops/ (z[3] * 1e6)
43+
mflops <- (2.0/3 * n * n * n + 2 * n * n * n) * loops/ (z[3] * 1e+06)
4644

4745
st <- sprintf("%.0fx%.0f :", n, n)
4846
cat(sprintf("%20s %10.2f MFlops %10.6f sec\n", st, mflops, z[3]))
4947

5048
n <- n + nstep
5149
}
52-

0 commit comments

Comments
 (0)