Dear list,

According to this presentation (
http://www.rinfinance.com/agenda/2010/MarkSeligman_Tutorial.pdf), gpuHclust
in the gputools package should be about 20x faster than clust, but after
some testing, I find it actually 4x slower. Here is the code:

test.data <- function(dim, num, seed=17) {
    set.seed(seed)
    matrix(rnorm(dim * num), nrow=num)
}
m <- test.data(1920, 9500)
library(gputools)
d <- gpuDist(m)                # Euclidean distance

system.time(gpuHclust(d))
   user  system elapsed
 28.230  41.283  69.727
system.time(hclust(d))
   user  system elapsed
  6.517   0.260   6.790

The gpu on my machine is Telsa C5020 from NVIDIA.


Best regards,

Kaiyin ZHONG
------------------------------
FMB, Erasmus MC
k.zh...@erasmusmc.nl
kindlych...@gmail.com

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to