Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Commit

Permalink
Create test_blas.R
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig authored Mar 9, 2019
1 parent 85991f9 commit 46eb86a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cuda/base/test_blas.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

N <- 2^13
system.time(
replicate(10,{
matrix(rnorm(N*N), nrow=N, ncol=N) %*%
matrix(rnorm(N*N), nrow=N, ncol=N)})
)


N <- 2^14
system.time(
matrix(rnorm(N*N), nrow=N, ncol=N) %*%
matrix(rnorm(N*N), nrow=N, ncol=N)
)
N <- 2^12
system.time({
M <- matrix(rnorm(N*N), nrow=N, ncol=N)
replicate(10, det(M))
})

0 comments on commit 46eb86a

Please sign in to comment.