请教cuda 2.2的独占设备模式

full0house 2009-12-02 10:08:59
请问这个模式怎么设置?
如果一张显卡既显示又计算,同时计算的时候设置独占模式,会出现什么情况?
...全文
155 4 打赏 收藏 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
full0house 2009-12-03
  • 打赏
  • 举报
回复
原来新闻也忽悠人...
  • 打赏
  • 举报
回复
LZ说的是下面的computeMode吧.

computeMode is the compute mode that the device is currently in. Available modes are as follows:
cudaComputeModeDefault: Default mode - Device is not restricted and multiple threads can use cudaSetDevice() with this device.
cudaComputeModeExclusive: Compute-exclusive mode - Only one thread will be able to use cudaSetDevice() with this device.
cudaComputeModeProhibited: Compute-prohibited mode - No threads can use cudaSetDevice() with this device. Any errors from calling cudaSetDevice() with an exclusive (and occupied) or prohibited device will only show up after a non-device management runtime function is called. At that time, cudaErrorNoDevice will be returned.
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 full0house 的回复:]
cuda2.2新特性里面描述的
独占设备模式,可允许软件独占使用一颗GPU的全部资源,保证其运算能力100%应用在该程序上
不知道是不是你说的这个.
如果要设置这模式,是不是使用cudaSetDeviceFlag,并且在setDevice之前调用?
[/Quote]

来源是新闻?忘了他吧.

好像还没找到设置方法.呵呵.
full0house 2009-12-02
  • 打赏
  • 举报
回复
cuda2.2新特性里面描述的
独占设备模式,可允许软件独占使用一颗GPU的全部资源,保证其运算能力100%应用在该程序上
不知道是不是你说的这个.
如果要设置这模式,是不是使用cudaSetDeviceFlag,并且在setDevice之前调用?

231

社区成员

发帖
与我相关
我的任务
社区描述
CUDA on Windows XP
社区管理员
  • CUDA on Windows XP社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧