检测Windows上的内核数 [英] Detect the number of cores on windows

查看:79
本文介绍了检测Windows上的内核数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在Linux或Mac上运行R,则可以使用multicore:::detectCores()检测可用内核的数量.但是,没有Windows版本的多核功能,因此我不能在Windows上使用此技术.

If I am running R on linux or on a mac, I can detect the number of available cores using multicore:::detectCores(). However, there's no windows version of the multicore functions, so I can't use this technique on windows.

如何从R内以编程方式检测Windows机器上的内核数?

How can I programmatically detect the number of cores on a windows machine, from within R?

推荐答案

并行包现在具有检测内核数的功能:parallel:::detectCores().

The parallel package now has a function to detect the number of cores: parallel:::detectCores().

这篇关于检测Windows上的内核数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆