Re: [Rcpp-devel] RcppArmadillo with -fopenmp: Not using all available cores

2024-03-02 Thread Robin Liu
uot;] Thanks for your help! On Sat, Feb 24, 2024 at 9:17 AM Dirk Eddelbuettel wrote: > > On 24 February 2024 at 11:44, Robin Liu wrote: > | Thank you Dirk for the response. > | > | I called RcppArmadillo::armadillo_get_number_of_omp_threads() on both > machines > | and correctl

Re: [Rcpp-devel] RcppArmadillo with -fopenmp: Not using all available cores

2024-02-24 Thread Robin Liu
buettel wrote: > > On 23 February 2024 at 09:35, Robin Liu wrote: > | Hi all, > | > | Here is an R script that uses Armadillo to decompose a large matrix and > print > | the first 10 eigenvalues. > | > | library(RcppArmadillo) > | library(Rcpp) > |

[Rcpp-devel] RcppArmadillo with -fopenmp: Not using all available cores

2024-02-23 Thread Robin Liu
Hi all, Here is an R script that uses Armadillo to decompose a large matrix and print the first 10 eigenvalues. library(RcppArmadillo) library(Rcpp) src <- r"(#include // [[Rcpp::depends(RcppArmadillo)]] // [[Rcpp::export]] arma::vec getEigenValues(arma::mat M) { return arma::eig_sym(M);