Greetings and Salutations,
I would suggest the following modifications:
1. Use the Rcpp omp plugin
// [[Rcpp::plugins(openmp)]
Instead of using set flags. (assuming you are on Rcpp >= 0.10.5 )
2. Modify the function parameters to include: int cores
This allows you to specify cores during run
On 26 May 2015 at 17:53, Saurabh B wrote:
| Hi there,
|
| I am using gradient descent to reduce a large matrix of users and items. For
| this I am trying to use all 40 available cores but unfortunately my
performance
| is no better than when I was using just one. I am new to openMP and
| RcppArm
Hi there,
I am using gradient descent to reduce a large matrix of users and items.
For this I am trying to use all 40 available cores but unfortunately my
performance is no better than when I was using just one. I am new to openMP
and RcppArmadillo so pardon my ignorance.
The main loop is -
#prag
On 26 May 2015 at 15:32, Charles Determan wrote:
| I have seen in the archives a discussion of converting a boost ublas matrix to
| Rcpp (http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2011-June/
| 002402.html) but I didn't see anything about passing an R matrix in to a ublas
| object. T
I have seen in the archives a discussion of converting a boost ublas matrix
to Rcpp (
http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2011-June/002402.html)
but I didn't see anything about passing an R matrix in to a ublas object.
There doesn't appear to be an 'as' method for it (unless I h