-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parallelised Kmeans_rcpp with OpenMP #19
Comments
Hi @alazarolop, I'm glad you find ClusterR helpful for your tasks. I totally forgot to remove this line from the documentation when in version 1.0.8 I removed the threads parameter from the Kmeans_rcpp function. Thanks for making me aware of the mistake in the documentation. I'll upload an updated version of the package on Github and I'll fix it in the next version on CRAN. |
Hi @mlampros , no worries, you're welcome. Thank you for the quick fix. That's what I thought and I even tried to use the parameter threads (which just raised an error). I don't know much about Armadillo to be honest, but I understand what you mean. Could it be possible to force the function to parallelize it? I've got the impression my installation of Armadillo (from Homebrew) it's not using OpenMP, because even with high dimension matrix it just run in a single core. |
HI @alazarolop, the Kmeans_rcpp function will run on a single core, there is no possibility to force the parallelization of the initializations. On the other hand the Armadillo functions that the Kmeans_rcpp calls internally will be parallelized if OpenMP is enabled for these internal functions. |
Ah ok, that was exactly my thought. Thank you a lot for the explanation and thank you again for your effort on the package. |
Hi,
After following your advice, I was able to build the package with OpenMP support. So far, Clara_Medoids and all the functions with the variable threads defined parallelize its computation, which is awesome!.
Reading your vignette, I found this information for Kmeans_rcpp and parallelization.
But I can't get it working. If I also try the threads variable, it's said it's unused.
How could I get Kmeans_rcpp and MiniBatchKmeans to run its initializations in parallel?
Thank you in advance and congratulations for a great package.
The text was updated successfully, but these errors were encountered: