How do we enable OpenMP to use multiple cores — glintenet

萝らか妹 提交于 2019-12-08 11:00:08

问题


I want to use glinternet a R function that implements a feature extraction methodology developed by the Stanford professor Trevor Hastie and a PhD student.

The function has an argument numCores. According to the user manual:

numCores Number of threads to run. For this to work, the package must be installed with OpenMP enabled. Default is 1 thread.

I don't know though how to enable OpenMP. I have Windows 8.

Your advice will be appreciated.


回答1:


Here is the answer of the glinternet package maintainer about this issue : "Unfortunately, R does not support openmp on windows. If you have access to a linux machine, you will likely be able to use the parallelism there."



来源:https://stackoverflow.com/questions/44363939/how-do-we-enable-openmp-to-use-multiple-cores-glintenet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!