1

在集群上安装 rstan 时,应该如何选择用于构建的核心数量(在文档Sys.setenv(MAKEFLAGS = "-j4"中描述的行中)?如果集群中的每个节点都有 16 个核心,那么将值设置为 16 是否有意义?如果用户想使用 MPI 跨多个节点运行 stan 怎么办?或者在任何情况下将值保持在 4 是否最有意义,因为大多数人无论如何都会并行运行不超过 4 个链?我非常感谢有关此设置的任何建议。

4

1 回答 1

3

For completeness, I answered John's question when he posted it on the Stan-users mailing list. In short, it does not matter how many cores are used at build time, you can use any number of cores at run time using any parallel scheme supported by R (or any of the other interfaces to Stan).

于 2015-01-19T03:45:21.343 回答