microsoft / microsoft-r-open

Microsoft R Open Source
212 stars 74 forks source link

Build R4.1.1 with MKL multithreading #130

Open mmekarnia opened 2 years ago

mmekarnia commented 2 years ago

Hi Guys

I am trying to build R4.1.1 with MKL multithreading.We already have in place R3.6.3 using MKL multithreading without any issue .However trying to build new Package using R4.1.1 all went ok hoiwever the Multithreading is not working its like we have only one processor working.

In my case i have R 3.6.3 that was build outside the box using docker and brought to the server because of root restrictions .The mkl is configured on this version and multithreading is working fine see below.

sessionInfo() R version 3.6.3 (2020-02-29) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Red Hat Enterprise Linux Server 7.9 (Maipo)

Matrix products: default BLAS/LAPACK: /app/r/lib64/R/lib/libRblas.so

locale: [1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8 [5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8 [7] LC_PAPER=en_CA.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C

attached base packages: [1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached): [1] compiler_3.6.3 tools_3.6.3

I build a new version R4.1.1 but the mkl multithreading is not working see below.

sessionInfo() R version 4.1.1 (2021-08-10) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Red Hat Enterprise Linux Server 7.9 (Maipo)

Matrix products: default BLAS: /app/R4/lib64/R/lib/libRblas.so LAPACK: /app/R4/lib64/R/lib/libRlapack.so

locale: [1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8 [5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8 [7] LC_PAPER=en_CA.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C

attached base packages: [1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached): [1] compiler_4.1.1 tools_4.1.1