Skip to content

Commit 64768e0

Browse files
committed
explicit use of gputools::, no more SVD on gpu
1 parent 9125e96 commit 64768e0

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

R/benchmark.R

+7-7
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ matmultBenchmark <- function(N, n, trim=0.1) {
3333

3434
matmultBenchmarkgputools <- function(N, n, trim=0.1) {
3535
a <- getMatrix(N)
36-
traw <- replicate(n, system.time(gpuMatMult(a,a))[3])
36+
traw <- replicate(n, system.time(gputools::gpuMatMult(a,a))[3])
3737
tmean <- mean(traw,trim=trim)
3838
}
3939

@@ -51,7 +51,7 @@ qrBenchmark <- function(N, n, trim=0.1) {
5151

5252
qrBenchmarkgputools <- function(N, n, trim=0.1) {
5353
a <- getMatrix(N)
54-
traw <- replicate(n, system.time(gpuQr(a))[3])
54+
traw <- replicate(n, system.time(gputools::gpuQr(a))[3])
5555
tmean <- mean(traw,trim=trim)
5656
}
5757

@@ -74,11 +74,11 @@ svdBenchmark <- function(N, n, trim=0.1) {
7474
## tmean <- mean(traw,trim=trim)
7575
## }
7676

77-
svdBenchmarkgputools <- function(N, n, trim=0.1) {
78-
a <- getMatrix(N)
79-
traw <- replicate(n, system.time(gpuSvd(a))[3])
80-
tmean <- mean(traw,trim=trim)
81-
}
77+
#svdBenchmarkgputools <- function(N, n, trim=0.1) {
78+
# a <- getMatrix(N)
79+
# traw <- replicate(n, system.time(gputools::gpuSvd(a))[3])
80+
# tmean <- mean(traw,trim=trim)
81+
#}
8282

8383
luBenchmark <- function(N, n, trim=0.1) {
8484
a <- getMatrix(N)

man/benchmark.Rd

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
\alias{qrBenchmark}
77
\alias{qrBenchmarkgputools}
88
\alias{svdBenchmark}
9-
\alias{svdBenchmarkgputools}
9+
%\alias{svdBenchmarkgputools}
1010
\alias{luBenchmark}
1111
\alias{luBenchmarkgputools}
1212
\title{Benchmarking functions for GPU/CPU Benchmarking}
@@ -20,7 +20,7 @@
2020
qrBenchmark(N, n, trim=0.1)
2121
qrBenchmarkgputools(N, n, trim=0.1)
2222
svdBenchmark(N, n, trim=0.1)
23-
svdBenchmarkgputools(N, n, trim=0.1)
23+
% svdBenchmarkgputools(N, n, trim=0.1)
2424
luBenchmark(N, n, trim=0.1)
2525
luBenchmarkgputools(N, n, trim=0.1)
2626
}
@@ -44,8 +44,8 @@
4444

4545
\code{svdBenchmark} times the cost of a Singular Value Decomposition
4646
(SVD) of a matrix of the given size, repeated as specified and returns
47-
the trimmed mean of the elapsed times. \code{svdBenchmarkgputools}
48-
does the same using the \strong{gputools} package.
47+
the trimmed mean of the elapsed times. %\code{svdBenchmarkgputools}
48+
%does the same using the \strong{gputools} package.
4949

5050
\code{luBenchmark} times the cost of a LU Decomposition of a matrix of
5151
the given size, repeated as specified and returns the trimmed mean of

0 commit comments

Comments
 (0)