我们如何使OpenMP能够使用多个内核-Glintenet [英] How do we enable OpenMP to use multiple cores -- glintenet

查看:118
本文介绍了我们如何使OpenMP能够使用多个内核-Glintenet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用glinternet R函数来实现由斯坦福大学教授Trevor Hastie和一名博士生开发的特征提取方法.

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.

该函数有一个参数numCores.根据用户手册:

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

numCores要运行的线程数.为此,包装必须 在启用OpenMP的情况下安装.默认值为1个线程.

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

我不知道如何启用OpenMP.我有Windows8.

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

您的建议将不胜感激.

推荐答案

这是glinternet软件包维护者有关此问题的答案:很遗憾,R不支持Windows上的openmp.如果您可以访问linux计算机,您将可能在那里使用并行性."

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."

这篇关于我们如何使OpenMP能够使用多个内核-Glintenet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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