Skip to content

Commit

Permalink
don't include callr overhead in timing
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig authored May 21, 2020
1 parent 68968a5 commit e727b20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/ml/nvblas.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
install.packages("callr")

system.time(

callr::r(function(){
system.time({
N <- 2^14
M <- matrix(rnorm(N*N), nrow=N, ncol=N)
M %*% M
})
}, env = c(LD_PRELOAD="libnvblas.so"))
)

Expand Down

0 comments on commit e727b20

Please sign in to comment.