stewid / SimInf

A framework for data-driven stochastic disease spread simulations
http://stewid.github.io/SimInf/
GNU General Public License v3.0
33 stars 14 forks source link

Multithreaded operations #42

Open xmusphlkg opened 2 years ago

xmusphlkg commented 2 years ago

Hi, I installed SimInf on my server (2 CPUs, 64 Cores, and 128 threads), but only half the threads worked when running the model. And parallel::detectCores() detected 128 cores. Here is my information: `R version 4.1.2 (2021-11-01) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale: [1] LC_COLLATE=Chinese (Simplified)_China.936 LC_CTYPE=Chinese (Simplified)_China.936
[3] LC_MONETARY=Chinese (Simplified)_China.936 LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.936
system code page: 65001

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

stewid commented 2 years ago

What output do you get from running (SimInf::set_num_threads(NULL))?

xmusphlkg commented 2 years ago

Thank you, set_num_threads is helpful in the Intel CPU server, however, the AMD CPU server seems not to help? The model still running on half of the threads (64/128).